mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Parse complex import directives.
This commit is contained in:
1 parent
fe23cc8226
commit
d3c459b5a9
7 files changed
+114
-28
No files matched your search
@@ -376,7 +376,7 @@ void CompilerStack::resolveImports()
|
||||
for (ASTPointer<ASTNode> const& node: _source->ast->nodes())
|
||||
if (ImportDirective const* import = dynamic_cast<ImportDirective*>(node.get()))
|
||||
{
|
||||
string path = absolutePath(import->identifier(), _sourceName);
|
||||
string path = absolutePath(import->path(), _sourceName);
|
||||
import->annotation().absolutePath = path;
|
||||
if (!m_sources.count(path))
|
||||
BOOST_THROW_EXCEPTION(
|
||||
|
||||
Reference in new issue
Block a user