aboutsummaryrefslogtreecommitdiffstats
path: root/AST.h
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2014-12-02 00:03:04 +0800
committerLefteris Karapetsas <lefteris@refu.co>2014-12-02 00:03:04 +0800
commit43d6726dd78e35bf79fa2da3824c2916c5e6b0a8 (patch)
tree13299ee2623a590ace54c3554156033dffa98779 /AST.h
parent3fc2708d657525162567b663a07cf8cb5b1c59aa (diff)
downloaddexon-solidity-43d6726dd78e35bf79fa2da3824c2916c5e6b0a8.tar.gz
dexon-solidity-43d6726dd78e35bf79fa2da3824c2916c5e6b0a8.tar.zst
dexon-solidity-43d6726dd78e35bf79fa2da3824c2916c5e6b0a8.zip
Exporting Natspec documentation to a JSON interface
- Adding a getDocumentation() function to solidity compiler stack so that we can obtain the natspec interface for a contract - Adding libjsoncpp as a dependency of libsolidity. This is done in a dirty way, using libjsonrpc-cpp s an intermediate dependency for the moment. Will fix soon. - Start of a test file for Natspec exporting to JSON
Diffstat (limited to 'AST.h')
-rw-r--r--AST.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/AST.h b/AST.h
index 81a12ad1..4ed8489f 100644
--- a/AST.h
+++ b/AST.h
@@ -199,7 +199,7 @@ public:
Block& getBody() { return *m_body; }
/// @return A shared pointer of an ASTString.
/// Can contain a nullptr in which case indicates absence of documentation
- ASTPointer<ASTString> const& getDocumentation() { return m_documentation; }
+ ASTPointer<ASTString> const& getDocumentation() const { return m_documentation; }
void addLocalVariable(VariableDeclaration const& _localVariable) { m_localVariables.push_back(&_localVariable); }
std::vector<VariableDeclaration const*> const& getLocalVariables() const { return m_localVariables; }