Added a flag to record when a source is reconstructed from JSON so garbage code snippets are not printed after source location.

This commit is contained in:
Matheus Aguiar
2022-07-05 11:41:24 -03:00
parent a53f15f45f
commit 290bd4fd2d
3 changed files with 14 additions and 2 deletions
+2 -1
View File
@@ -404,7 +404,8 @@ void CompilerStack::importASTs(map<string, Json::Value> const& _sources)
source.ast = src.second;
source.charStream = make_shared<CharStream>(
util::jsonCompactPrint(m_sourceJsons[src.first]),
src.first
src.first,
true // imported from AST
);
m_sources[path] = move(source);
}