5a7500ca5e
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.
23 lines
313 B
JavaScript
23 lines
313 B
JavaScript
//// [commentEmitAtEndOfFile1.ts]
|
|
// test
|
|
var f = ''
|
|
// test #2
|
|
module foo {
|
|
function bar() { }
|
|
}
|
|
// test #3
|
|
module empty {
|
|
}
|
|
// test #4
|
|
|
|
//// [commentEmitAtEndOfFile1.js]
|
|
// test
|
|
var f = '';
|
|
// test #2
|
|
var foo;
|
|
(function (foo) {
|
|
function bar() {
|
|
}
|
|
})(foo || (foo = {}));
|
|
// test #4
|