aboutsummaryrefslogtreecommitdiffstats
path: root/AST.h
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 /AST.h
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 'AST.h')
-rw-r--r--AST.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/AST.h b/AST.h
index d2fb15a4..10616022 100644
--- a/AST.h
+++ b/AST.h
@@ -98,19 +98,21 @@ private:
/**
* Import directive for referencing other files / source objects.
+ * Example: import "abc.sol"
+ * Source objects are identified by a string which can be a file name but does not have to be.
*/
class ImportDirective: public ASTNode
{
public:
- ImportDirective(Location const& _location, ASTPointer<ASTString> const& _url):
- ASTNode(_location), m_url(_url) {}
+ ImportDirective(Location const& _location, ASTPointer<ASTString> const& _identifier):
+ ASTNode(_location), m_identifier(_identifier) {}
virtual void accept(ASTVisitor& _visitor) override;
- ASTString const& getURL() const { return *m_url; }
+ ASTString const& getIdentifier() const { return *m_identifier; }
private:
- ASTPointer<ASTString> m_url;
+ ASTPointer<ASTString> m_identifier;
};
/**