@@ -803,53 +803,81 @@ constants/constants.rb:
803803# 1| [Toplevel] constants.rb
804804# 1| getStmt: [ModuleDeclaration] ModuleA
805805# 2| getStmt: [ClassDeclaration] ClassA
806- # 5| getStmt: [ModuleDeclaration] ModuleB
807- # 6| getStmt: [ClassDeclaration] ClassB
808- # 6| getSuperclassExpr: [ConstantReadAccess] Base
809- # 9| getStmt: [ClassDeclaration] ClassC
810- # 9| getSuperclassExpr: [ConstantReadAccess] Z
811- # 9| getScopeExpr: [ConstantReadAccess] Y
812- # 9| getScopeExpr: [ConstantReadAccess] X
813- # 14| getStmt: [AssignExpr] ... = ...
814- # 14| getAnOperand/getLeftOperand: [ConstantAssignment] GREETING
815- # 14| getAnOperand/getRightOperand: [StringLiteral] "Hello"
816- # 14| getComponent: [StringTextComponent] Hello
817- # 16| getStmt: [Method] foo
818- # 17| getStmt: [AssignExpr] ... = ...
819- # 17| getAnOperand/getLeftOperand: [ConstantAssignment] Names
820- # 17| getAnOperand/getRightOperand: [ArrayLiteral] [...]
821- # 17| getElement: [StringLiteral] "Vera"
822- # 17| getComponent: [StringTextComponent] Vera
823- # 17| getElement: [StringLiteral] "Chuck"
824- # 17| getComponent: [StringTextComponent] Chuck
825- # 17| getElement: [StringLiteral] "Dave"
826- # 17| getComponent: [StringTextComponent] Dave
827- # 19| getStmt: [MethodCall] call to each
828- # 19| getReceiver: [ConstantReadAccess] Names
829- # 19| getBlock: [DoBlock] do ... end
830- # 19| getParameter: [SimpleParameter] name
831- # 19| getDefiningAccess: [LocalVariableAccess] name
832- # 20| getStmt: [MethodCall] call to puts
833- # 20| getReceiver: [Self] self
834- # 20| getArgument: [StringLiteral] "#{...} #{...}"
835- # 20| getComponent: [StringInterpolationComponent] #{...}
836- # 20| getStmt: [ConstantReadAccess] GREETING
837- # 20| getComponent: [StringTextComponent]
838- # 20| getComponent: [StringInterpolationComponent] #{...}
839- # 20| getStmt: [LocalVariableAccess] name
840- # 25| getStmt: [MethodCall] call to Array
841- # 25| getReceiver: [Self] self
842- # 25| getArgument: [StringLiteral] "foo"
843- # 25| getComponent: [StringTextComponent] foo
844- # 28| getStmt: [ClassDeclaration] ClassD
845- # 28| getScopeExpr: [ConstantReadAccess] ModuleA
846- # 31| getStmt: [ModuleDeclaration] ModuleC
806+ # 3| getStmt: [AssignExpr] ... = ...
807+ # 3| getAnOperand/getLeftOperand: [ConstantAssignment] CONST_A
808+ # 3| getAnOperand/getRightOperand: [StringLiteral] "const_a"
809+ # 3| getComponent: [StringTextComponent] const_a
810+ # 6| getStmt: [AssignExpr] ... = ...
811+ # 6| getAnOperand/getLeftOperand: [ConstantAssignment] CONST_B
812+ # 6| getAnOperand/getRightOperand: [StringLiteral] "const_b"
813+ # 6| getComponent: [StringTextComponent] const_b
814+ # 8| getStmt: [ModuleDeclaration] ModuleB
815+ # 9| getStmt: [ClassDeclaration] ClassB
816+ # 9| getSuperclassExpr: [ConstantReadAccess] Base
817+ # 12| getStmt: [ClassDeclaration] ClassC
818+ # 12| getSuperclassExpr: [ConstantReadAccess] Z
819+ # 12| getScopeExpr: [ConstantReadAccess] Y
820+ # 12| getScopeExpr: [ConstantReadAccess] X
821+ # 17| getStmt: [AssignExpr] ... = ...
822+ # 17| getAnOperand/getLeftOperand: [ConstantAssignment] GREETING
823+ # 17| getAnOperand/getRightOperand: [AddExpr] ... + ...
824+ # 17| getAnOperand/getLeftOperand: [AddExpr] ... + ...
825+ # 17| getAnOperand/getLeftOperand: [StringLiteral] "Hello"
826+ # 17| getComponent: [StringTextComponent] Hello
827+ # 17| getAnOperand/getRightOperand: [ConstantReadAccess] CONST_A
828+ # 17| getScopeExpr: [ConstantReadAccess] ClassA
829+ # 17| getScopeExpr: [ConstantReadAccess] ModuleA
830+ # 17| getAnOperand/getRightOperand: [ConstantReadAccess] CONST_B
831+ # 17| getScopeExpr: [ConstantReadAccess] ModuleA
832+ # 19| getStmt: [Method] foo
833+ # 20| getStmt: [AssignExpr] ... = ...
834+ # 20| getAnOperand/getLeftOperand: [ConstantAssignment] Names
835+ # 20| getAnOperand/getRightOperand: [ArrayLiteral] [...]
836+ # 20| getElement: [StringLiteral] "Vera"
837+ # 20| getComponent: [StringTextComponent] Vera
838+ # 20| getElement: [StringLiteral] "Chuck"
839+ # 20| getComponent: [StringTextComponent] Chuck
840+ # 20| getElement: [StringLiteral] "Dave"
841+ # 20| getComponent: [StringTextComponent] Dave
842+ # 22| getStmt: [MethodCall] call to each
843+ # 22| getReceiver: [ConstantReadAccess] Names
844+ # 22| getBlock: [DoBlock] do ... end
845+ # 22| getParameter: [SimpleParameter] name
846+ # 22| getDefiningAccess: [LocalVariableAccess] name
847+ # 23| getStmt: [MethodCall] call to puts
848+ # 23| getReceiver: [Self] self
849+ # 23| getArgument: [StringLiteral] "#{...} #{...}"
850+ # 23| getComponent: [StringInterpolationComponent] #{...}
851+ # 23| getStmt: [ConstantReadAccess] GREETING
852+ # 23| getComponent: [StringTextComponent]
853+ # 23| getComponent: [StringInterpolationComponent] #{...}
854+ # 23| getStmt: [LocalVariableAccess] name
855+ # 28| getStmt: [MethodCall] call to Array
856+ # 28| getReceiver: [Self] self
857+ # 28| getArgument: [StringLiteral] "foo"
858+ # 28| getComponent: [StringTextComponent] foo
859+ # 31| getStmt: [ClassDeclaration] ClassD
847860# 31| getScopeExpr: [ConstantReadAccess] ModuleA
848- # 34| getStmt: [AssignExpr] ... = ...
849- # 34| getAnOperand/getLeftOperand: [ConstantAssignment] MAX_SIZE
850- # 34| getScopeExpr: [ConstantReadAccess] ModuleB
851- # 34| getScopeExpr: [ConstantReadAccess] ModuleA
852- # 34| getAnOperand/getRightOperand: [IntegerLiteral] 1024
861+ # 31| getSuperclassExpr: [ConstantReadAccess] ClassA
862+ # 31| getScopeExpr: [ConstantReadAccess] ModuleA
863+ # 34| getStmt: [ModuleDeclaration] ModuleC
864+ # 34| getScopeExpr: [ConstantReadAccess] ModuleA
865+ # 37| getStmt: [AssignExpr] ... = ...
866+ # 37| getAnOperand/getLeftOperand: [ConstantAssignment] MAX_SIZE
867+ # 37| getScopeExpr: [ConstantReadAccess] ModuleB
868+ # 37| getScopeExpr: [ConstantReadAccess] ModuleA
869+ # 37| getAnOperand/getRightOperand: [IntegerLiteral] 1024
870+ # 39| getStmt: [MethodCall] call to puts
871+ # 39| getReceiver: [Self] self
872+ # 39| getArgument: [ConstantReadAccess] MAX_SIZE
873+ # 39| getScopeExpr: [ConstantReadAccess] ModuleB
874+ # 39| getScopeExpr: [ConstantReadAccess] ModuleA
875+ # 41| getStmt: [MethodCall] call to puts
876+ # 41| getReceiver: [Self] self
877+ # 41| getArgument: [ConstantReadAccess] GREETING
878+ # 42| getStmt: [MethodCall] call to puts
879+ # 42| getReceiver: [Self] self
880+ # 42| getArgument: [ConstantReadAccess] GREETING
853881literals/literals.rb:
854882# 1| [Toplevel] literals.rb
855883# 2| getStmt: [NilLiteral] nil
0 commit comments