mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Introduce isReservedKeyword()
This commit is contained in:
parent
f687635e47
commit
cfb6dfc35e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user