Parse complex import directives.

This commit is contained in:
chriseth committed 2015-12-18 12:46:54 +01:00
1 parent fe23cc8226
commit d3c459b5a9
7 files changed
+114 -28

No files matched your search

+1 -1
View File
@@ -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(