aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/parsing/Token.h
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-07-01 17:09:24 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-08-14 21:21:47 +0800
commit2a9ba937ba74ed8351b0590222ba2ac8a6e097c5 (patch)
tree70125a96fea1eb6541d2565485e0c120b8392ffb /libsolidity/parsing/Token.h
parent4d9790b6d5a490d30ed55b69fa117bc568fa4c64 (diff)
downloaddexon-solidity-2a9ba937ba74ed8351b0590222ba2ac8a6e097c5.tar.gz
dexon-solidity-2a9ba937ba74ed8351b0590222ba2ac8a6e097c5.tar.zst
dexon-solidity-2a9ba937ba74ed8351b0590222ba2ac8a6e097c5.zip
Replace constant/payable with StateMutability in AST
Diffstat (limited to 'libsolidity/parsing/Token.h')
-rw-r--r--libsolidity/parsing/Token.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libsolidity/parsing/Token.h b/libsolidity/parsing/Token.h
index 468cbcb7..efbe5e9e 100644
--- a/libsolidity/parsing/Token.h
+++ b/libsolidity/parsing/Token.h
@@ -290,6 +290,7 @@ public:
static bool isVisibilitySpecifier(Value op) { return isVariableVisibilitySpecifier(op) || op == External; }
static bool isVariableVisibilitySpecifier(Value op) { return op == Public || op == Private || op == Internal; }
static bool isLocationSpecifier(Value op) { return op == Memory || op == Storage; }
+ static bool isStateMutabilitySpecifier(Value op) { return op == Constant || op == Payable; }
static bool isEtherSubdenomination(Value op) { return op == SubWei || op == SubSzabo || op == SubFinney || op == SubEther; }
static bool isTimeSubdenomination(Value op) { return op == SubSecond || op == SubMinute || op == SubHour || op == SubDay || op == SubWeek || op == SubYear; }
static bool isReservedKeyword(Value op) { return (Abstract <= op && op <= TypeOf); }