aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-22 05:05:24 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-08-22 17:51:46 +0800
commit9897c56b2cacf162f8fd41d60e91b7f71863f8d5 (patch)
treefb0f04a445940004a8a45e03bc98d149c5cc71a7 /libsolidity/ast
parent2a5772cff7d03de0d02c5358a6a6755e8f802697 (diff)
downloaddexon-solidity-9897c56b2cacf162f8fd41d60e91b7f71863f8d5.tar.gz
dexon-solidity-9897c56b2cacf162f8fd41d60e91b7f71863f8d5.tar.zst
dexon-solidity-9897c56b2cacf162f8fd41d60e91b7f71863f8d5.zip
Mark a lot of functions static (where possible)
Diffstat (limited to 'libsolidity/ast')
-rw-r--r--libsolidity/ast/ASTJsonConverter.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/ast/ASTJsonConverter.h b/libsolidity/ast/ASTJsonConverter.h
index cc589d4a..186607ce 100644
--- a/libsolidity/ast/ASTJsonConverter.h
+++ b/libsolidity/ast/ASTJsonConverter.h
@@ -119,7 +119,7 @@ private:
);
std::string sourceLocationToString(SourceLocation const& _location) const;
std::string namePathToString(std::vector<ASTString> const& _namePath) const;
- Json::Value idOrNull(ASTNode const* _pt) const
+ static Json::Value idOrNull(ASTNode const* _pt)
{
return _pt ? Json::Value(nodeId(*_pt)) : Json::nullValue;
}
@@ -134,12 +134,12 @@ private:
std::string literalTokenKind(Token::Value _token);
std::string type(Expression const& _expression);
std::string type(VariableDeclaration const& _varDecl);
- int nodeId(ASTNode const& _node) const
+ static int nodeId(ASTNode const& _node)
{
return _node.id();
}
template<class Container>
- Json::Value getContainerIds(Container const& container) const
+ static Json::Value getContainerIds(Container const& container)
{
Json::Value tmp(Json::arrayValue);
for (auto const& element: container)