|
@@ -17,10 +17,11 @@
|
|
|
// CHECK:STDOUT: {kind: 'CodeBlock', text: '}', subtree_size: 2},
|
|
// CHECK:STDOUT: {kind: 'CodeBlock', text: '}', subtree_size: 2},
|
|
|
// CHECK:STDOUT: {kind: 'IfStatement', text: 'if', subtree_size: 6},
|
|
// CHECK:STDOUT: {kind: 'IfStatement', text: 'if', subtree_size: 6},
|
|
|
// CHECK:STDOUT: {kind: 'IfConditionStart', text: '('},
|
|
// CHECK:STDOUT: {kind: 'IfConditionStart', text: '('},
|
|
|
-// CHECK:STDOUT: {kind: 'IfCondition', text: ')', has_error: yes, subtree_size: 2},
|
|
|
|
|
|
|
+// CHECK:STDOUT: {kind: 'InvalidExpression', text: ')', has_error: yes},
|
|
|
|
|
+// CHECK:STDOUT: {kind: 'IfCondition', text: ')', has_error: yes, subtree_size: 3},
|
|
|
// CHECK:STDOUT: {kind: 'CodeBlockStart', text: '{'},
|
|
// CHECK:STDOUT: {kind: 'CodeBlockStart', text: '{'},
|
|
|
// CHECK:STDOUT: {kind: 'CodeBlock', text: '}', subtree_size: 2},
|
|
// CHECK:STDOUT: {kind: 'CodeBlock', text: '}', subtree_size: 2},
|
|
|
-// CHECK:STDOUT: {kind: 'IfStatement', text: 'if', subtree_size: 5},
|
|
|
|
|
|
|
+// CHECK:STDOUT: {kind: 'IfStatement', text: 'if', subtree_size: 6},
|
|
|
// CHECK:STDOUT: {kind: 'IfConditionStart', text: '('},
|
|
// CHECK:STDOUT: {kind: 'IfConditionStart', text: '('},
|
|
|
// CHECK:STDOUT: {kind: 'NameReference', text: 'b'},
|
|
// CHECK:STDOUT: {kind: 'NameReference', text: 'b'},
|
|
|
// CHECK:STDOUT: {kind: 'IfCondition', text: ')', has_error: yes, subtree_size: 3},
|
|
// CHECK:STDOUT: {kind: 'IfCondition', text: ')', has_error: yes, subtree_size: 3},
|
|
@@ -31,9 +32,10 @@
|
|
|
// CHECK:STDOUT: {kind: 'NameReference', text: 'd'},
|
|
// CHECK:STDOUT: {kind: 'NameReference', text: 'd'},
|
|
|
// CHECK:STDOUT: {kind: 'IfCondition', text: ')', subtree_size: 3},
|
|
// CHECK:STDOUT: {kind: 'IfCondition', text: ')', subtree_size: 3},
|
|
|
// CHECK:STDOUT: {kind: 'CodeBlockStart', text: '}', has_error: yes},
|
|
// CHECK:STDOUT: {kind: 'CodeBlockStart', text: '}', has_error: yes},
|
|
|
-// CHECK:STDOUT: {kind: 'CodeBlock', text: '}', has_error: yes, subtree_size: 2},
|
|
|
|
|
-// CHECK:STDOUT: {kind: 'IfStatement', text: 'if', subtree_size: 6},
|
|
|
|
|
-// CHECK:STDOUT: {kind: 'FunctionDefinition', text: '}', subtree_size: 29},
|
|
|
|
|
|
|
+// CHECK:STDOUT: {kind: 'InvalidExpression', text: '}', has_error: yes},
|
|
|
|
|
+// CHECK:STDOUT: {kind: 'CodeBlock', text: '}', has_error: yes, subtree_size: 3},
|
|
|
|
|
+// CHECK:STDOUT: {kind: 'IfStatement', text: 'if', subtree_size: 7},
|
|
|
|
|
+// CHECK:STDOUT: {kind: 'FunctionDefinition', text: '}', subtree_size: 31},
|
|
|
// CHECK:STDOUT: {kind: 'FileEnd', text: ''},
|
|
// CHECK:STDOUT: {kind: 'FileEnd', text: ''},
|
|
|
// CHECK:STDOUT: ]
|
|
// CHECK:STDOUT: ]
|
|
|
|
|
|