diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2016-08-09 09:25:07 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2016-09-06 19:01:02 +0800 |
commit | cfb6dfc35ecc52b6e9f93db6b4b4b1ef40a2ba03 (patch) | |
tree | 1019734d70de16bf8a724073a583938021721fef /libsolidity/parsing/Token.h | |
parent | f687635e4743a1e12d01fb082a4f8a76a759ab48 (diff) | |
download | dexon-solidity-cfb6dfc35ecc52b6e9f93db6b4b4b1ef40a2ba03.tar.gz dexon-solidity-cfb6dfc35ecc52b6e9f93db6b4b4b1ef40a2ba03.tar.zst dexon-solidity-cfb6dfc35ecc52b6e9f93db6b4b4b1ef40a2ba03.zip |
Introduce isReservedKeyword()
Diffstat (limited to 'libsolidity/parsing/Token.h')
-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 |