-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathPrintAst.expected
More file actions
154 lines (154 loc) · 7.31 KB
/
PrintAst.expected
File metadata and controls
154 lines (154 loc) · 7.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
operators.cs:
# 5| [NamespaceDeclaration] namespace ... { ... }
# 7| 1: [Class] IntVector
# 10| 5: [InstanceConstructor] IntVector
#-----| 2: (Parameters)
# 10| 0: [Parameter] length
# 10| -1: [TypeMention] int
# 10| 4: [BlockStmt] {...}
# 12| 6: [Property] Length
# 12| -1: [TypeMention] int
# 12| 3: [Getter] get_Length
# 12| 4: [BlockStmt] {...}
# 12| 0: [ReturnStmt] return ...;
# 12| 0: [IntLiteral] 4
# 14| 7: [Indexer] Item
# 14| -1: [TypeMention] int
#-----| 1: (Parameters)
# 14| 0: [Parameter] index
# 14| -1: [TypeMention] int
# 14| 3: [Getter] get_Item
#-----| 2: (Parameters)
# 14| 0: [Parameter] index
# 14| 4: [BlockStmt] {...}
# 14| 0: [ReturnStmt] return ...;
# 14| 0: [IntLiteral] 0
# 14| 4: [Setter] set_Item
#-----| 2: (Parameters)
# 14| 0: [Parameter] index
# 14| 1: [Parameter] value
# 14| 4: [BlockStmt] {...}
# 16| 8: [IncrementOperator] ++
# 16| -1: [TypeMention] IntVector
#-----| 2: (Parameters)
# 16| 0: [Parameter] iv
# 16| -1: [TypeMention] IntVector
# 17| 4: [BlockStmt] {...}
# 18| 0: [LocalVariableDeclStmt] ... ...;
# 18| 0: [LocalVariableDeclAndInitExpr] IntVector temp = ...
# 18| -1: [TypeMention] IntVector
# 18| 0: [LocalVariableAccess] access to local variable temp
# 18| 1: [ObjectCreation] object creation of type IntVector
# 18| -1: [TypeMention] IntVector
# 18| 0: [PropertyCall] access to property Length
# 18| -1: [ParameterAccess] access to parameter iv
# 19| 1: [ForStmt] for (...;...;...) ...
# 19| -1: [LocalVariableDeclAndInitExpr] Int32 i = ...
# 19| -1: [TypeMention] int
# 19| 0: [LocalVariableAccess] access to local variable i
# 19| 1: [IntLiteral] 0
# 19| 0: [LTExpr] ... < ...
# 19| 0: [LocalVariableAccess] access to local variable i
# 19| 1: [PropertyCall] access to property Length
# 19| -1: [ParameterAccess] access to parameter iv
# 19| 1: [PostIncrExpr] ...++
# 19| 0: [LocalVariableAccess] access to local variable i
# 20| 2: [ExprStmt] ...;
# 20| 0: [AssignExpr] ... = ...
# 20| 0: [IndexerCall] access to indexer
# 20| -1: [LocalVariableAccess] access to local variable temp
# 20| 0: [LocalVariableAccess] access to local variable i
# 20| 1: [AddExpr] ... + ...
# 20| 0: [IndexerCall] access to indexer
# 20| -1: [ParameterAccess] access to parameter iv
# 20| 0: [LocalVariableAccess] access to local variable i
# 20| 1: [IntLiteral] 1
# 21| 2: [ReturnStmt] return ...;
# 21| 0: [LocalVariableAccess] access to local variable temp
# 26| 2: [Class] TestUnaryOperator
# 29| 6: [Method] Main
# 29| -1: [TypeMention] Void
# 30| 4: [BlockStmt] {...}
# 31| 0: [LocalVariableDeclStmt] ... ...;
# 31| 0: [LocalVariableDeclAndInitExpr] IntVector iv1 = ...
# 31| -1: [TypeMention] IntVector
# 31| 0: [LocalVariableAccess] access to local variable iv1
# 31| 1: [ObjectCreation] object creation of type IntVector
# 31| -1: [TypeMention] IntVector
# 31| 0: [IntLiteral] 4
# 32| 1: [LocalVariableDeclStmt] ... ...;
# 32| 0: [LocalVariableDeclExpr] IntVector iv2
# 32| 0: [TypeMention] IntVector
# 33| 2: [ExprStmt] ...;
# 33| 0: [AssignExpr] ... = ...
# 33| 0: [LocalVariableAccess] access to local variable iv2
# 33| 1: [OperatorCall] call to operator ++
# 33| 0: [LocalVariableAccess] access to local variable iv1
# 34| 3: [ExprStmt] ...;
# 34| 0: [AssignExpr] ... = ...
# 34| 0: [LocalVariableAccess] access to local variable iv2
# 34| 1: [OperatorCall] call to operator ++
# 34| 0: [LocalVariableAccess] access to local variable iv1
# 39| 3: [Struct] Digit
# 42| 6: [Field] value
# 42| -1: [TypeMention] byte
# 44| 7: [InstanceConstructor] Digit
#-----| 2: (Parameters)
# 44| 0: [Parameter] value
# 44| -1: [TypeMention] byte
# 45| 4: [BlockStmt] {...}
# 46| 0: [IfStmt] if (...) ...
# 46| 0: [LogicalOrExpr] ... || ...
# 46| 0: [LTExpr] ... < ...
# 46| 0: [CastExpr] (...) ...
# 46| 1: [ParameterAccess] access to parameter value
# 46| 1: [IntLiteral] 0
# 46| 1: [GTExpr] ... > ...
# 46| 0: [CastExpr] (...) ...
# 46| 1: [ParameterAccess] access to parameter value
# 46| 1: [IntLiteral] 9
# 47| 1: [ThrowStmt] throw ...;
# 47| 0: [ObjectCreation] object creation of type ArgumentException
# 47| 0: [TypeMention] ArgumentException
# 48| 1: [ExprStmt] ...;
# 48| 0: [AssignExpr] ... = ...
# 48| 0: [FieldAccess] access to field value
# 48| -1: [ThisAccess] this access
# 48| 1: [ParameterAccess] access to parameter value
# 51| 8: [ImplicitConversionOperator] implicit conversion
# 51| -1: [TypeMention] byte
#-----| 2: (Parameters)
# 51| 0: [Parameter] d
# 51| -1: [TypeMention] Digit
# 52| 4: [BlockStmt] {...}
# 53| 0: [ReturnStmt] return ...;
# 53| 0: [FieldAccess] access to field value
# 53| -1: [ParameterAccess] access to parameter d
# 56| 9: [ExplicitConversionOperator] explicit conversion
# 56| -1: [TypeMention] Digit
#-----| 2: (Parameters)
# 56| 0: [Parameter] b
# 56| -1: [TypeMention] byte
# 57| 4: [BlockStmt] {...}
# 58| 0: [ReturnStmt] return ...;
# 58| 0: [ObjectCreation] object creation of type Digit
# 58| -1: [TypeMention] Digit
# 58| 0: [ParameterAccess] access to parameter b
# 63| 4: [Class] TestConversionOperator
# 66| 6: [Method] Main
# 66| -1: [TypeMention] Void
# 67| 4: [BlockStmt] {...}
# 68| 0: [LocalVariableDeclStmt] ... ...;
# 68| 0: [LocalVariableDeclAndInitExpr] Digit d = ...
# 68| -1: [TypeMention] Digit
# 68| 0: [LocalVariableAccess] access to local variable d
# 68| 1: [OperatorCall] call to operator explicit conversion
# 68| -1: [TypeMention] Digit
# 68| 0: [CastExpr] (...) ...
# 68| 1: [IntLiteral] 8
# 69| 1: [LocalVariableDeclStmt] ... ...;
# 69| 0: [LocalVariableDeclAndInitExpr] Byte b = ...
# 69| -1: [TypeMention] byte
# 69| 0: [LocalVariableAccess] access to local variable b
# 69| 1: [OperatorCall] call to operator implicit conversion
# 69| 0: [LocalVariableAccess] access to local variable d