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.
22 lines
351 B
TypeScript
22 lines
351 B
TypeScript
//// [moduleIdentifiers.ts]
|
|
module M {
|
|
interface P { x: number; y: number; }
|
|
export var a = 1
|
|
}
|
|
|
|
//var p: M.P;
|
|
//var m: M = M;
|
|
var x1 = M.a;
|
|
//var x2 = m.a;
|
|
//var q: m.P;
|
|
|
|
//// [moduleIdentifiers.js]
|
|
var M;
|
|
(function (M) {
|
|
M.a = 1;
|
|
})(M || (M = {}));
|
|
//var p: M.P;
|
|
//var m: M = M;
|
|
var x1 = M.a;
|
|
//var x2 = m.a;
|
|
//var q: m.P;
|