mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-17 08:51:34 +00:00
Better testing infrastructure; Initial exports/imports/re-exports
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user