Better testing infrastructure; Initial exports/imports/re-exports

This commit is contained in:
dcodeIO
2017-12-02 01:14:15 +01:00
parent 00303fdf30
commit ef859937a8
34 changed files with 713 additions and 248 deletions

View File

@ -724,10 +724,9 @@ export class Tokenizer extends DiagnosticEmitter {
range(start: i32 = -1, end: i32 = -1): Range {
if (start < 0) {
start = this.tokenPos;
if (end < 0)
end = start;
} else if (end < 0)
end = this.pos;
} else if (end < 0)
end = start;
return new Range(this.source, start, end);
}