This is important for incremental parsing, as it is where we can attach parse errors at the end of the file to. Also, it helps with things like emitting comments at the end of the file.
17 lines
251 B
Text
17 lines
251 B
Text
=== tests/cases/compiler/commentEmitAtEndOfFile1.ts ===
|
|
// test
|
|
var f = ''
|
|
>f : string
|
|
|
|
// test #2
|
|
module foo {
|
|
>foo : typeof foo
|
|
|
|
function bar() { }
|
|
>bar : () => void
|
|
}
|
|
// test #3
|
|
module empty {
|
|
>empty : unknown
|
|
}
|
|
// test #4
|