mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user