mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-16 00:11:28 +00:00
Update binaryen to latest nightly; Source map support
This commit is contained in:
@ -8,7 +8,8 @@
|
||||
*/
|
||||
|
||||
import {
|
||||
Program
|
||||
Program,
|
||||
LIBRARY_PREFIX
|
||||
} from "./program";
|
||||
|
||||
import {
|
||||
@ -106,7 +107,7 @@ export class Parser extends DiagnosticEmitter {
|
||||
return; // already parsed
|
||||
this.seenlog.add(normalizedPath);
|
||||
|
||||
var source = new Source(path, text, isEntry ? SourceKind.ENTRY : path.startsWith("std:") ? SourceKind.STDLIB : SourceKind.DEFAULT);
|
||||
var source = new Source(normalizedPath, text, isEntry ? SourceKind.ENTRY : path.startsWith(LIBRARY_PREFIX) ? SourceKind.LIBRARY : SourceKind.DEFAULT);
|
||||
this.program.sources.push(source);
|
||||
|
||||
var tn = new Tokenizer(source, this.program.diagnostics);
|
||||
|
Reference in New Issue
Block a user