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.
24 lines
447 B
JavaScript
24 lines
447 B
JavaScript
//// [errorSupression1.ts]
|
|
|
|
class Foo { static bar() { return "x"; } }
|
|
|
|
var baz = Foo.b;
|
|
// Foo.b won't bind.
|
|
baz.concat("y");
|
|
|
|
// So we don't want an error on 'concat'.
|
|
|
|
//// [errorSupression1.js]
|
|
var Foo = (function () {
|
|
function Foo() {
|
|
}
|
|
Foo.bar = function () {
|
|
return "x";
|
|
};
|
|
return Foo;
|
|
})();
|
|
var baz = Foo.b;
|
|
// Foo.b won't bind.
|
|
baz.concat("y");
|
|
// So we don't want an error on 'concat'.
|