Store src data in tokens
This commit is contained in:
@@ -8,7 +8,7 @@ public class Parser
|
||||
private List<Token> _tokens = [];
|
||||
private int _index;
|
||||
|
||||
public ModuleNode ParseModule(List<Token> tokens, string path)
|
||||
public ModuleNode ParseModule(List<Token> tokens, string rootFilePath)
|
||||
{
|
||||
_index = 0;
|
||||
_tokens = tokens;
|
||||
@@ -29,7 +29,7 @@ public class Parser
|
||||
}
|
||||
}
|
||||
|
||||
return new ModuleNode(path, imports, definitions);
|
||||
return new ModuleNode(rootFilePath, imports, definitions);
|
||||
}
|
||||
|
||||
private DefinitionNode ParseDefinition()
|
||||
|
||||
Reference in New Issue
Block a user