They break the rule that syntactically identical constructs use the same syntax kind. This prevents node reuse in incremental parsing.
53 lines
No EOL
1.2 KiB
Text
53 lines
No EOL
1.2 KiB
Text
===================================================================
|
|
JsFile: noCatchBlock.js
|
|
mapUrl: noCatchBlock.js.map
|
|
sourceRoot:
|
|
sources: noCatchBlock.ts
|
|
===================================================================
|
|
-------------------------------------------------------------------
|
|
emittedFile:tests/cases/compiler/noCatchBlock.js
|
|
sourceFile:noCatchBlock.ts
|
|
-------------------------------------------------------------------
|
|
>>>try {
|
|
1 >
|
|
2 >^^^^
|
|
3 > ^
|
|
1 >
|
|
>
|
|
2 >try
|
|
3 > {
|
|
1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0)
|
|
2 >Emitted(1, 5) Source(2, 5) + SourceIndex(0)
|
|
3 >Emitted(1, 6) Source(2, 6) + SourceIndex(0)
|
|
---
|
|
>>>}
|
|
1 >
|
|
2 >^
|
|
3 > ^^^^^^^^^->
|
|
1 >
|
|
> // ...
|
|
>
|
|
2 >}
|
|
1 >Emitted(2, 1) Source(4, 1) + SourceIndex(0)
|
|
2 >Emitted(2, 2) Source(4, 2) + SourceIndex(0)
|
|
---
|
|
>>>finally {
|
|
1->^^^^^^^^
|
|
2 > ^
|
|
1-> finally
|
|
2 > {
|
|
1->Emitted(3, 9) Source(4, 11) + SourceIndex(0)
|
|
2 >Emitted(3, 10) Source(4, 12) + SourceIndex(0)
|
|
---
|
|
>>>}
|
|
1 >
|
|
2 >^
|
|
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
|
1 >
|
|
> // N.B. No 'catch' block
|
|
>
|
|
2 >}
|
|
1 >Emitted(4, 1) Source(6, 1) + SourceIndex(0)
|
|
2 >Emitted(4, 2) Source(6, 2) + SourceIndex(0)
|
|
---
|
|
>>>//# sourceMappingURL=noCatchBlock.js.map |