aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerStack.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-12-05 22:35:05 +0800
committerChristian <c@ethdev.com>2014-12-05 22:35:05 +0800
commit25273778dccd65e78a196f7f999b5ea792e414e5 (patch)
treea700974b119890b16c42c10c85e7feb5a4a19383 /CompilerStack.cpp
parentd4a958e1fe96174f8fab09b5360106895c40e09a (diff)
downloaddexon-solidity-25273778dccd65e78a196f7f999b5ea792e414e5.tar.gz
dexon-solidity-25273778dccd65e78a196f7f999b5ea792e414e5.tar.zst
dexon-solidity-25273778dccd65e78a196f7f999b5ea792e414e5.zip
Renamed url to identifier and added some comments.
Diffstat (limited to 'CompilerStack.cpp')
-rw-r--r--CompilerStack.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/CompilerStack.cpp b/CompilerStack.cpp
index 62172384..20b0b3e5 100644
--- a/CompilerStack.cpp
+++ b/CompilerStack.cpp
@@ -201,12 +201,12 @@ void CompilerStack::resolveImports()
for (ASTPointer<ASTNode> const& node: _source->ast->getNodes())
if (ImportDirective const* import = dynamic_cast<ImportDirective*>(node.get()))
{
- string const& url = import->getURL();
- if (!m_sources.count(url))
+ string const& id = import->getIdentifier();
+ if (!m_sources.count(id))
BOOST_THROW_EXCEPTION(ParserError()
<< errinfo_sourceLocation(import->getLocation())
<< errinfo_comment("Source not found."));
- toposort(&m_sources[url]);
+ toposort(&m_sources[id]);
}
sourceOrder.push_back(_source);
};