-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathPrintAst.expected
More file actions
30 lines (30 loc) · 1.08 KB
/
PrintAst.expected
File metadata and controls
30 lines (30 loc) · 1.08 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
Test.java:
# 0| [CompilationUnit] Test
# 1| 1: [Class] Test
# 3| 2: [Method] yield
# 3| 3: [TypeAccess] int
#-----| 4: (Parameters)
# 3| 0: [Parameter] x
# 3| 0: [TypeAccess] int
# 3| 5: [BlockStmt] { ... }
# 3| 0: [ReturnStmt] return ...
# 3| 0: [VarAccess] x
# 5| 3: [Method] secondCall
# 5| 3: [TypeAccess] void
# 5| 5: [BlockStmt] { ... }
# 7| 4: [Method] yieldWrapper
# 7| 3: [TypeAccess] int
#-----| 4: (Parameters)
# 7| 0: [Parameter] x
# 7| 0: [TypeAccess] int
# 7| 5: [BlockStmt] { ... }
# 8| 0: [LocalVariableDeclStmt] var ...;
# 8| 0: [TypeAccess] int
# 8| 1: [LocalVariableDeclExpr] ret
# 8| 0: [ErrorExpr] <error expr>
# 8| 0: [MethodCall] yield(...)
# 8| 0: [VarAccess] x
# 9| 1: [ExprStmt] <Expr>;
# 9| 0: [MethodCall] secondCall(...)
# 10| 2: [ReturnStmt] return ...
# 10| 0: [VarAccess] ret