diff options
author | Christian <c@ethdev.com> | 2014-12-05 22:35:05 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-12-05 22:35:05 +0800 |
commit | 25273778dccd65e78a196f7f999b5ea792e414e5 (patch) | |
tree | a700974b119890b16c42c10c85e7feb5a4a19383 /CompilerStack.cpp | |
parent | d4a958e1fe96174f8fab09b5360106895c40e09a (diff) | |
download | dexon-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.cpp | 6 |
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); }; |