diff options
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/parsing/Token.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libsolidity/parsing/Token.h b/libsolidity/parsing/Token.h index cc85b610..6c2309cb 100644 --- a/libsolidity/parsing/Token.h +++ b/libsolidity/parsing/Token.h @@ -291,6 +291,7 @@ public: static bool isLocationSpecifier(Value op) { return op == Memory || op == Storage; } 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); } // @returns a string corresponding to the JS token string // (.e., "<" for the token LT) or NULL if the token doesn't |