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 /AST.h | |
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 'AST.h')
-rw-r--r-- | AST.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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; }; /** |