Parse errors

Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–176 unchanged (176 lines)
177 case Comments["-->"]:
178 break;
179 }
180}
181
182
183//// [constEnums.js]
184var A2;
185(function (A2) {
186 let B;
187 (function (B) {
188 // module C will be classified as value
189 let C;
…lines 190–266 unchanged (77 lines)

After

…lines 1–177 unchanged (177 lines)
178 break;
179 }
180}
181
182
183//// [constEnums.js]
184"use strict";
185var A2;
186(function (A2) {
187 let B;
188 (function (B) {
189 // module C will be classified as value
190 let C;
…lines 191–267 unchanged (77 lines)

Before

program
comment "//// [tests/cases/compiler/constEnums.ts] ////"
comment "//// [constEnums.ts]"
lexical_declaration
const "const"
ERROR
identifier "enum"
identifier "Enum1"
variable_declarator
object_pattern
{ "{"
object_assignment_pattern
shorthand_property_identifier_pattern "A0"
= "="
number "100"
, ","
} "}"
lexical_declaration (+248 nodes collapsed)
ERROR
const "const"
identifier "enum"
identifier "Comments"
{ "{"
expression_statement
sequence_expression
string
" "\""
string_fragment "//"
" "\""
, ","
string
" "\""
string_fragment "/*"
" "\""
, ","
string
" "\""
string_fragment "*/"
" "\""
, ","
string
" "\""
string_fragment "///"
" "\""
, ","
string
" "\""
string_fragment "#"
" "\""
, ","
string
" "\""
string_fragment "<!--"
" "\""
, ","
string
" "\""
string_fragment "-->"
" "\""
, ","
ERROR
} "}"
identifier "namespace"
identifier "A"
object
{ "{"
ERROR
export "export"
identifier "namespace"
identifier "B"
object_pattern
{ "{"
ERROR (+43 nodes collapsed)
object_assignment_pattern
object_pattern
{ "{"
ERROR
export "export"
identifier "namespace"
identifier "B"
object_assignment_pattern
object_pattern
{ "{"
ERROR (+67 nodes collapsed)
object_assignment_pattern
object_pattern
{ "{"
ERROR
export "export"
identifier "namespace"
identifier "B"
object_assignment_pattern
object_pattern (+562 nodes collapsed)
ERROR
} "}"
comment "//// [constEnums.js]"
var "var"
identifier "A2"
; ";"
( "("
function "function"
( "("
identifier "A2"
) ")"
{ "{"
let "let"
identifier "B"
; ";"
( "("
function "function"
( "("
identifier "B"
) ")"
{ "{"
comment "// module C will be classified as value"
let "let"
identifier "C"
; ";"
( "("
function "function"
( "("
identifier "C"
) ")"
{ "{"
var "var"
identifier "x"
= "="
number "1"
ERROR
; ";"
} "}"
ERROR
) ")"
( "("
identifier "C"
= "="
binary_expression
member_expression
identifier "B"
. "."
property_identifier "C"
|| "||"
parenthesized_expression
( "("
assignment_expression
member_expression
identifier "B"
. "."
property_identifier "C"
= "="
object
{ "{"
} "}"
) ")"
ERROR
) ")"
; ";"
} "}"
ERROR
) ")"
( "("
identifier "B"
= "="
binary_expression
member_expression
identifier "A2"
. "."
property_identifier "B"
|| "||"
parenthesized_expression
( "("
assignment_expression
member_expression
identifier "A2"
. "."
property_identifier "B"
= "="
object
{ "{"
} "}"
) ")"
ERROR
) ")"
; ";"
} "}"
ERROR
) ")"
( "("
identifier "A2"
|| "||"
( "("
identifier "A2"
= "="
ERROR (+130 nodes collapsed)
call_expression (+186 nodes collapsed)
ERROR (+23 nodes collapsed)
} "}"
} "}"
function_declaration (+57 nodes collapsed)

After

program
comment "//// [tests/cases/compiler/constEnums.ts] ////"
comment "//// [constEnums.ts]"
lexical_declaration
const "const"
ERROR
identifier "enum"
identifier "Enum1"
variable_declarator
object_pattern
{ "{"
object_assignment_pattern
shorthand_property_identifier_pattern "A0"
= "="
number "100"
, ","
} "}"
lexical_declaration (+248 nodes collapsed)
ERROR
const "const"
identifier "enum"
identifier "Comments"
{ "{"
expression_statement
sequence_expression
string
" "\""
string_fragment "//"
" "\""
, ","
string
" "\""
string_fragment "/*"
" "\""
, ","
string
" "\""
string_fragment "*/"
" "\""
, ","
string
" "\""
string_fragment "///"
" "\""
, ","
string
" "\""
string_fragment "#"
" "\""
, ","
string
" "\""
string_fragment "<!--"
" "\""
, ","
string
" "\""
string_fragment "-->"
" "\""
, ","
ERROR
} "}"
identifier "namespace"
identifier "A"
object
{ "{"
ERROR
export "export"
identifier "namespace"
identifier "B"
object_pattern
{ "{"
ERROR (+43 nodes collapsed)
object_assignment_pattern
object_pattern
{ "{"
ERROR
export "export"
identifier "namespace"
identifier "B"
object_assignment_pattern
object_pattern
{ "{"
ERROR (+67 nodes collapsed)
object_assignment_pattern
object_pattern
{ "{"
ERROR
export "export"
identifier "namespace"
identifier "B"
object_assignment_pattern
object_pattern (+562 nodes collapsed)
ERROR
} "}"
comment "//// [constEnums.js]"
" "\""
identifier "use"
identifier "strict"
" "\""
; ";"
var "var"
identifier "A2"
; ";"
( "("
function "function"
( "("
identifier "A2"
) ")"
{ "{"
let "let"
identifier "B"
; ";"
( "("
function "function"
( "("
identifier "B"
) ")"
{ "{"
comment "// module C will be classified as value"
let "let"
identifier "C"
; ";"
( "("
function "function"
( "("
identifier "C"
) ")"
{ "{"
var "var"
identifier "x"
= "="
number "1"
ERROR
; ";"
} "}"
ERROR
) ")"
( "("
identifier "C"
= "="
binary_expression
member_expression
identifier "B"
. "."
property_identifier "C"
|| "||"
parenthesized_expression
( "("
assignment_expression
member_expression
identifier "B"
. "."
property_identifier "C"
= "="
object
{ "{"
} "}"
) ")"
ERROR
) ")"
; ";"
} "}"
ERROR
) ")"
( "("
identifier "B"
= "="
binary_expression
member_expression
identifier "A2"
. "."
property_identifier "B"
|| "||"
parenthesized_expression
( "("
assignment_expression
member_expression
identifier "A2"
. "."
property_identifier "B"
= "="
object
{ "{"
} "}"
) ")"
ERROR
) ")"
; ";"
} "}"
ERROR
) ")"
( "("
identifier "A2"
|| "||"
( "("
identifier "A2"
= "="
ERROR (+130 nodes collapsed)
call_expression (+186 nodes collapsed)
ERROR (+23 nodes collapsed)
} "}"
} "}"
function_declaration (+57 nodes collapsed)