forked from nushell/new-nu-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnew_nu_parser__test__node_output@def.nu.snap
More file actions
93 lines (93 loc) · 3.44 KB
/
new_nu_parser__test__node_output@def.nu.snap
File metadata and controls
93 lines (93 loc) · 3.44 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
---
source: src/test.rs
expression: evaluate_example(path)
input_file: tests/def.nu
snapshot_kind: text
---
==== COMPILER ====
0: Name (4 to 7) "foo"
1: Name (9 to 10) "x"
2: Param { name: NodeId(1), ty: None } (9 to 10)
3: Name (11 to 12) "y"
4: Name (14 to 17) "int"
5: Type { name: NodeId(4), params: None, optional: false } (14 to 17)
6: Param { name: NodeId(3), ty: Some(NodeId(5)) } (11 to 17)
7: Name (19 to 20) "z"
8: Name (22 to 26) "list"
9: Name (27 to 31) "list"
10: Name (32 to 35) "int"
11: Type { name: NodeId(10), params: None, optional: false } (32 to 35)
12: Params([NodeId(11)]) (31 to 36)
13: Type { name: NodeId(9), params: Some(NodeId(12)), optional: false } (27 to 31)
14: Params([NodeId(13)]) (26 to 37)
15: Type { name: NodeId(8), params: Some(NodeId(14)), optional: false } (22 to 26)
16: Param { name: NodeId(7), ty: Some(NodeId(15)) } (19 to 26)
17: Params([NodeId(2), NodeId(6), NodeId(16)]) (8 to 39)
18: Variable (44 to 46) "$x"
19: Variable (47 to 49) "$y"
20: Variable (51 to 53) "$z"
21: List([NodeId(18), NodeId(19), NodeId(20)]) (42 to 54)
22: Block(BlockId(0)) (40 to 57)
23: Def { name: NodeId(0), params: NodeId(17), return_ty: None, block: NodeId(22) } (0 to 57)
24: Block(BlockId(1)) (0 to 57)
==== SCOPE ====
0: Frame Scope, node_id: NodeId(24)
decls: [ foo: NodeId(0) ]
1: Frame Scope, node_id: NodeId(22)
variables: [ x: NodeId(1), y: NodeId(3), z: NodeId(7) ]
==== TYPES ====
0: unknown
1: unknown
2: any
3: unknown
4: unknown
5: int
6: int
7: unknown
8: unknown
9: unknown
10: unknown
11: int
12: forbidden
13: list<int>
14: forbidden
15: list<list<int>>
16: list<list<int>>
17: forbidden
18: unknown
19: int
20: list<list<int>>
21: list<any>
22: list<any>
23: ()
24: ()
==== IR ====
register_count: 0
file_count: 0
0: Return { src: RegId(0) }
==== IR ERRORS ====
Error (NodeId 0): node Name not suported yet
Error (NodeId 1): node Name not suported yet
Error (NodeId 2): node Param { name: NodeId(1), ty: None } not suported yet
Error (NodeId 3): node Name not suported yet
Error (NodeId 4): node Name not suported yet
Error (NodeId 5): node Type { name: NodeId(4), params: None, optional: false } not suported yet
Error (NodeId 6): node Param { name: NodeId(3), ty: Some(NodeId(5)) } not suported yet
Error (NodeId 7): node Name not suported yet
Error (NodeId 8): node Name not suported yet
Error (NodeId 9): node Name not suported yet
Error (NodeId 10): node Name not suported yet
Error (NodeId 11): node Type { name: NodeId(10), params: None, optional: false } not suported yet
Error (NodeId 12): node Params([NodeId(11)]) not suported yet
Error (NodeId 13): node Type { name: NodeId(9), params: Some(NodeId(12)), optional: false } not suported yet
Error (NodeId 14): node Params([NodeId(13)]) not suported yet
Error (NodeId 15): node Type { name: NodeId(8), params: Some(NodeId(14)), optional: false } not suported yet
Error (NodeId 16): node Param { name: NodeId(7), ty: Some(NodeId(15)) } not suported yet
Error (NodeId 17): node Params([NodeId(2), NodeId(6), NodeId(16)]) not suported yet
Error (NodeId 18): node Variable not suported yet
Error (NodeId 19): node Variable not suported yet
Error (NodeId 20): node Variable not suported yet
Error (NodeId 21): node List([NodeId(18), NodeId(19), NodeId(20)]) not suported yet
Error (NodeId 22): node Block(BlockId(0)) not suported yet
Error (NodeId 23): node Def { name: NodeId(0), params: NodeId(17), return_ty: None, block: NodeId(22) } not suported yet
Error (NodeId 24): node Block(BlockId(1)) not suported yet