Files
codeql/ql/test/library-tests/ast/AstDesugar.expected

265 lines
14 KiB
Plaintext

calls/calls.rb:
# 66| [AssignExpr] ... = ...
# 66| getAnOperand/getLeftOperand: [LocalVariableAccess] var1
# 66| getAnOperand/getRightOperand: [AddExpr] ... + ...
# 66| getAnOperand/getLeftOperand: [LocalVariableAccess] var1
# 66| getAnOperand/getRightOperand: [MethodCall] call to bar
# 66| getReceiver: [Self] self
# 67| [AssignExpr] ... = ...
# 67| getAnOperand/getLeftOperand: [LocalVariableAccess] var1
# 67| getAnOperand/getRightOperand: [AddExpr] ... + ...
# 67| getAnOperand/getLeftOperand: [LocalVariableAccess] var1
# 67| getAnOperand/getRightOperand: [MethodCall] call to bar
# 67| getReceiver: [ConstantReadAccess] X
# 314| [SetterMethodCall] call to foo=
# 314| getReceiver: [Self] self
# 314| getNumberOfArguments: [IntegerLiteral] 1
# 314| getArgument: [IntegerLiteral] 10
# 315| [ElementReference, SetterMethodCall] ...[...]
# 315| getReceiver: [MethodCall] call to foo
# 315| getReceiver: [Self] self
# 315| getNumberOfArguments: [IntegerLiteral] 2
# 315| getArgument: [IntegerLiteral] 0
# 315| getArgument: [IntegerLiteral] 10
# 318| [StmtSequence] ...
# 318| getStmt: [SetterMethodCall] call to count=
# 318| getNumberOfArguments: [IntegerLiteral] 2
# 318| getReceiver: [LocalVariableAccess] __synth__0
# 318| getArgument: [LocalVariableAccess] __synth__1
# 318| getStmt: [AssignExpr] ... = ...
# 318| getAnOperand/getRightOperand: [Self] self
# 318| getAnOperand/getLeftOperand: [LocalVariableAccess] __synth__0
# 318| getStmt: [AssignExpr] ... = ...
# 318| getAnOperand/getRightOperand: [AddExpr] ... + ...
# 318| getAnOperand/getLeftOperand: [MethodCall] call to count
# 318| getReceiver: [LocalVariableAccess] __synth__0
# 318| getAnOperand/getRightOperand: [IntegerLiteral] 1
# 318| getAnOperand/getLeftOperand: [LocalVariableAccess] __synth__1
# 318| getStmt: [LocalVariableAccess] __synth__1
# 319| [StmtSequence] ...
# 319| getStmt: [AssignExpr] ... = ...
# 319| getAnOperand/getRightOperand: [MethodCall] call to foo
# 319| getReceiver: [Self] self
# 319| getAnOperand/getLeftOperand: [LocalVariableAccess] __synth__0
# 319| getStmt: [ElementReference, SetterMethodCall] ...[...]
# 319| getNumberOfArguments: [IntegerLiteral] 3
# 319| getReceiver: [LocalVariableAccess] __synth__0
# 319| getArgument: [LocalVariableAccess] __synth__1
# 319| getArgument: [LocalVariableAccess] __synth__2
# 319| getStmt: [AssignExpr] ... = ...
# 319| getAnOperand/getRightOperand: [IntegerLiteral] 0
# 319| getAnOperand/getLeftOperand: [LocalVariableAccess] __synth__1
# 319| getStmt: [AssignExpr] ... = ...
# 319| getAnOperand/getRightOperand: [AddExpr] ... + ...
# 319| getAnOperand/getLeftOperand: [ElementReference] ...[...]
# 319| getReceiver: [LocalVariableAccess] __synth__0
# 319| getArgument: [LocalVariableAccess] __synth__1
# 319| getAnOperand/getRightOperand: [IntegerLiteral] 1
# 319| getAnOperand/getLeftOperand: [LocalVariableAccess] __synth__2
# 319| getStmt: [LocalVariableAccess] __synth__2
# 320| [StmtSequence] ...
# 320| getStmt: [AssignExpr] ... = ...
# 320| getAnOperand/getRightOperand: [MethodCall] call to bar
# 320| getReceiver: [MethodCall] call to foo
# 320| getReceiver: [Self] self
# 320| getAnOperand/getLeftOperand: [LocalVariableAccess] __synth__0
# 320| getStmt: [ElementReference, SetterMethodCall] ...[...]
# 320| getNumberOfArguments: [IntegerLiteral] 5
# 320| getReceiver: [LocalVariableAccess] __synth__0
# 320| getArgument: [LocalVariableAccess] __synth__1
# 320| getArgument: [LocalVariableAccess] __synth__2
# 320| getArgument: [LocalVariableAccess] __synth__3
# 320| getArgument: [LocalVariableAccess] __synth__4
# 320| getStmt: [AssignExpr] ... = ...
# 320| getAnOperand/getRightOperand: [IntegerLiteral] 0
# 320| getAnOperand/getLeftOperand: [LocalVariableAccess] __synth__1
# 320| getStmt: [AssignExpr] ... = ...
# 320| getAnOperand/getRightOperand: [MethodCall] call to baz
# 320| getReceiver: [MethodCall] call to foo
# 320| getReceiver: [Self] self
# 320| getAnOperand/getLeftOperand: [LocalVariableAccess] __synth__2
# 320| getStmt: [AssignExpr] ... = ...
# 320| getAnOperand/getRightOperand: [AddExpr] ... + ...
# 320| getAnOperand/getLeftOperand: [MethodCall] call to boo
# 320| getReceiver: [MethodCall] call to foo
# 320| getReceiver: [Self] self
# 320| getAnOperand/getRightOperand: [IntegerLiteral] 1
# 320| getAnOperand/getLeftOperand: [LocalVariableAccess] __synth__3
# 320| getStmt: [AssignExpr] ... = ...
# 320| getAnOperand/getRightOperand: [MulExpr] ... * ...
# 320| getAnOperand/getLeftOperand: [ElementReference] ...[...]
# 320| getReceiver: [LocalVariableAccess] __synth__0
# 320| getArgument: [LocalVariableAccess] __synth__1
# 320| getArgument: [LocalVariableAccess] __synth__2
# 320| getArgument: [LocalVariableAccess] __synth__3
# 320| getAnOperand/getRightOperand: [IntegerLiteral] 2
# 320| getAnOperand/getLeftOperand: [LocalVariableAccess] __synth__4
# 320| getStmt: [LocalVariableAccess] __synth__4
control/loops.rb:
# 10| [AssignExpr] ... = ...
# 10| getAnOperand/getLeftOperand: [LocalVariableAccess] sum
# 10| getAnOperand/getRightOperand: [AddExpr] ... + ...
# 10| getAnOperand/getLeftOperand: [LocalVariableAccess] sum
# 10| getAnOperand/getRightOperand: [LocalVariableAccess] n
# 17| [AssignExpr] ... = ...
# 17| getAnOperand/getLeftOperand: [LocalVariableAccess] sum
# 17| getAnOperand/getRightOperand: [AddExpr] ... + ...
# 17| getAnOperand/getLeftOperand: [LocalVariableAccess] sum
# 17| getAnOperand/getRightOperand: [LocalVariableAccess] n
# 18| [AssignExpr] ... = ...
# 18| getAnOperand/getLeftOperand: [LocalVariableAccess] foo
# 18| getAnOperand/getRightOperand: [SubExpr] ... - ...
# 18| getAnOperand/getLeftOperand: [LocalVariableAccess] foo
# 18| getAnOperand/getRightOperand: [LocalVariableAccess] n
# 23| [AssignExpr] ... = ...
# 23| getAnOperand/getLeftOperand: [LocalVariableAccess] sum
# 23| getAnOperand/getRightOperand: [AddExpr] ... + ...
# 23| getAnOperand/getLeftOperand: [LocalVariableAccess] sum
# 23| getAnOperand/getRightOperand: [LocalVariableAccess] value
# 24| [AssignExpr] ... = ...
# 24| getAnOperand/getLeftOperand: [LocalVariableAccess] foo
# 24| getAnOperand/getRightOperand: [MulExpr] ... * ...
# 24| getAnOperand/getLeftOperand: [LocalVariableAccess] foo
# 24| getAnOperand/getRightOperand: [LocalVariableAccess] value
# 29| [AssignExpr] ... = ...
# 29| getAnOperand/getLeftOperand: [LocalVariableAccess] sum
# 29| getAnOperand/getRightOperand: [AddExpr] ... + ...
# 29| getAnOperand/getLeftOperand: [LocalVariableAccess] sum
# 29| getAnOperand/getRightOperand: [LocalVariableAccess] value
# 30| [AssignExpr] ... = ...
# 30| getAnOperand/getLeftOperand: [LocalVariableAccess] foo
# 30| getAnOperand/getRightOperand: [DivExpr] ... / ...
# 30| getAnOperand/getLeftOperand: [LocalVariableAccess] foo
# 30| getAnOperand/getRightOperand: [LocalVariableAccess] value
# 36| [AssignExpr] ... = ...
# 36| getAnOperand/getLeftOperand: [LocalVariableAccess] x
# 36| getAnOperand/getRightOperand: [AddExpr] ... + ...
# 36| getAnOperand/getLeftOperand: [LocalVariableAccess] x
# 36| getAnOperand/getRightOperand: [IntegerLiteral] 1
# 37| [AssignExpr] ... = ...
# 37| getAnOperand/getLeftOperand: [LocalVariableAccess] z
# 37| getAnOperand/getRightOperand: [AddExpr] ... + ...
# 37| getAnOperand/getLeftOperand: [LocalVariableAccess] z
# 37| getAnOperand/getRightOperand: [IntegerLiteral] 1
# 43| [AssignExpr] ... = ...
# 43| getAnOperand/getLeftOperand: [LocalVariableAccess] x
# 43| getAnOperand/getRightOperand: [AddExpr] ... + ...
# 43| getAnOperand/getLeftOperand: [LocalVariableAccess] x
# 43| getAnOperand/getRightOperand: [IntegerLiteral] 1
# 44| [AssignExpr] ... = ...
# 44| getAnOperand/getLeftOperand: [LocalVariableAccess] z
# 44| getAnOperand/getRightOperand: [AddExpr] ... + ...
# 44| getAnOperand/getLeftOperand: [LocalVariableAccess] z
# 44| getAnOperand/getRightOperand: [IntegerLiteral] 2
# 48| [AssignExpr] ... = ...
# 48| getAnOperand/getLeftOperand: [LocalVariableAccess] x
# 48| getAnOperand/getRightOperand: [AddExpr] ... + ...
# 48| getAnOperand/getLeftOperand: [LocalVariableAccess] x
# 48| getAnOperand/getRightOperand: [IntegerLiteral] 1
# 52| [AssignExpr] ... = ...
# 52| getAnOperand/getLeftOperand: [LocalVariableAccess] x
# 52| getAnOperand/getRightOperand: [AddExpr] ... + ...
# 52| getAnOperand/getLeftOperand: [LocalVariableAccess] x
# 52| getAnOperand/getRightOperand: [IntegerLiteral] 1
# 53| [AssignExpr] ... = ...
# 53| getAnOperand/getLeftOperand: [LocalVariableAccess] z
# 53| getAnOperand/getRightOperand: [SubExpr] ... - ...
# 53| getAnOperand/getLeftOperand: [LocalVariableAccess] z
# 53| getAnOperand/getRightOperand: [IntegerLiteral] 1
# 58| [AssignExpr] ... = ...
# 58| getAnOperand/getLeftOperand: [LocalVariableAccess] x
# 58| getAnOperand/getRightOperand: [AddExpr] ... + ...
# 58| getAnOperand/getLeftOperand: [LocalVariableAccess] x
# 58| getAnOperand/getRightOperand: [IntegerLiteral] 1
# 59| [AssignExpr] ... = ...
# 59| getAnOperand/getLeftOperand: [LocalVariableAccess] z
# 59| getAnOperand/getRightOperand: [SubExpr] ... - ...
# 59| getAnOperand/getLeftOperand: [LocalVariableAccess] z
# 59| getAnOperand/getRightOperand: [IntegerLiteral] 4
# 63| [AssignExpr] ... = ...
# 63| getAnOperand/getLeftOperand: [LocalVariableAccess] x
# 63| getAnOperand/getRightOperand: [SubExpr] ... - ...
# 63| getAnOperand/getLeftOperand: [LocalVariableAccess] x
# 63| getAnOperand/getRightOperand: [IntegerLiteral] 1
operations/operations.rb:
# 68| [AssignExpr] ... = ...
# 68| getAnOperand/getLeftOperand: [LocalVariableAccess] x
# 68| getAnOperand/getRightOperand: [AddExpr] ... + ...
# 68| getAnOperand/getLeftOperand: [LocalVariableAccess] x
# 68| getAnOperand/getRightOperand: [IntegerLiteral] 128
# 69| [AssignExpr] ... = ...
# 69| getAnOperand/getLeftOperand: [LocalVariableAccess] y
# 69| getAnOperand/getRightOperand: [SubExpr] ... - ...
# 69| getAnOperand/getLeftOperand: [LocalVariableAccess] y
# 69| getAnOperand/getRightOperand: [IntegerLiteral] 32
# 70| [AssignExpr] ... = ...
# 70| getAnOperand/getLeftOperand: [LocalVariableAccess] a
# 70| getAnOperand/getRightOperand: [MulExpr] ... * ...
# 70| getAnOperand/getLeftOperand: [LocalVariableAccess] a
# 70| getAnOperand/getRightOperand: [IntegerLiteral] 12
# 71| [AssignExpr] ... = ...
# 71| getAnOperand/getLeftOperand: [LocalVariableAccess] b
# 71| getAnOperand/getRightOperand: [DivExpr] ... / ...
# 71| getAnOperand/getLeftOperand: [LocalVariableAccess] b
# 71| getAnOperand/getRightOperand: [IntegerLiteral] 4
# 72| [AssignExpr] ... = ...
# 72| getAnOperand/getLeftOperand: [LocalVariableAccess] z
# 72| getAnOperand/getRightOperand: [ModuloExpr] ... % ...
# 72| getAnOperand/getLeftOperand: [LocalVariableAccess] z
# 72| getAnOperand/getRightOperand: [IntegerLiteral] 2
# 73| [AssignExpr] ... = ...
# 73| getAnOperand/getLeftOperand: [LocalVariableAccess] foo
# 73| getAnOperand/getRightOperand: [ExponentExpr] ... ** ...
# 73| getAnOperand/getLeftOperand: [LocalVariableAccess] foo
# 73| getAnOperand/getRightOperand: [LocalVariableAccess] bar
# 76| [AssignExpr] ... = ...
# 76| getAnOperand/getLeftOperand: [LocalVariableAccess] x
# 76| getAnOperand/getRightOperand: [LogicalAndExpr] ... && ...
# 76| getAnOperand/getLeftOperand: [LocalVariableAccess] x
# 76| getAnOperand/getRightOperand: [LocalVariableAccess] y
# 77| [AssignExpr] ... = ...
# 77| getAnOperand/getLeftOperand: [LocalVariableAccess] a
# 77| getAnOperand/getRightOperand: [LogicalOrExpr] ... || ...
# 77| getAnOperand/getLeftOperand: [LocalVariableAccess] a
# 77| getAnOperand/getRightOperand: [LocalVariableAccess] b
# 80| [AssignExpr] ... = ...
# 80| getAnOperand/getLeftOperand: [LocalVariableAccess] x
# 80| getAnOperand/getRightOperand: [LShiftExpr] ... << ...
# 80| getAnOperand/getLeftOperand: [LocalVariableAccess] x
# 80| getAnOperand/getRightOperand: [IntegerLiteral] 2
# 81| [AssignExpr] ... = ...
# 81| getAnOperand/getLeftOperand: [LocalVariableAccess] y
# 81| getAnOperand/getRightOperand: [RShiftExpr] ... >> ...
# 81| getAnOperand/getLeftOperand: [LocalVariableAccess] y
# 81| getAnOperand/getRightOperand: [IntegerLiteral] 3
# 82| [AssignExpr] ... = ...
# 82| getAnOperand/getLeftOperand: [LocalVariableAccess] foo
# 82| getAnOperand/getRightOperand: [BitwiseAndExpr] ... & ...
# 82| getAnOperand/getLeftOperand: [LocalVariableAccess] foo
# 82| getAnOperand/getRightOperand: [LocalVariableAccess] mask
# 83| [AssignExpr] ... = ...
# 83| getAnOperand/getLeftOperand: [LocalVariableAccess] bar
# 83| getAnOperand/getRightOperand: [BitwiseOrExpr] ... | ...
# 83| getAnOperand/getLeftOperand: [LocalVariableAccess] bar
# 83| getAnOperand/getRightOperand: [IntegerLiteral] 0x01
# 84| [AssignExpr] ... = ...
# 84| getAnOperand/getLeftOperand: [LocalVariableAccess] baz
# 84| getAnOperand/getRightOperand: [BitwiseXorExpr] ... ^ ...
# 84| getAnOperand/getLeftOperand: [LocalVariableAccess] baz
# 84| getAnOperand/getRightOperand: [LocalVariableAccess] qux
# 88| [AssignExpr] ... = ...
# 88| getAnOperand/getLeftOperand: [InstanceVariableAccess] @x
# 88| getAnOperand/getRightOperand: [AddExpr] ... + ...
# 88| getAnOperand/getLeftOperand: [InstanceVariableAccess] @x
# 88| getAnOperand/getRightOperand: [IntegerLiteral] 2
# 91| [AssignExpr] ... = ...
# 91| getAnOperand/getLeftOperand: [ClassVariableAccess] @@y
# 91| getAnOperand/getRightOperand: [DivExpr] ... / ...
# 91| getAnOperand/getLeftOperand: [ClassVariableAccess] @@y
# 91| getAnOperand/getRightOperand: [IntegerLiteral] 4
# 95| [AssignExpr] ... = ...
# 95| getAnOperand/getLeftOperand: [GlobalVariableAccess] $global_var
# 95| getAnOperand/getRightOperand: [MulExpr] ... * ...
# 95| getAnOperand/getLeftOperand: [GlobalVariableAccess] $global_var
# 95| getAnOperand/getRightOperand: [IntegerLiteral] 6