diff options
author | Denton Liu <liu.denton+github@gmail.com> | 2016-08-09 02:17:54 +0800 |
---|---|---|
committer | Denton Liu <liu.denton+github@gmail.com> | 2016-08-11 22:15:59 +0800 |
commit | be98d3db511f278d793fba6829ca73b10ac5af87 (patch) | |
tree | 0f23b8502d1cde31836c1cf6170023f5d22f8104 /libsolidity/parsing | |
parent | 5ee846e39fb69a07a297a1af828e1b11c237f83a (diff) | |
download | dexon-solidity-be98d3db511f278d793fba6829ca73b10ac5af87.tar.gz dexon-solidity-be98d3db511f278d793fba6829ca73b10ac5af87.tar.zst dexon-solidity-be98d3db511f278d793fba6829ca73b10ac5af87.zip |
Change After to a deprecated token
Diffstat (limited to 'libsolidity/parsing')
-rw-r--r-- | libsolidity/parsing/Token.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libsolidity/parsing/Token.h b/libsolidity/parsing/Token.h index 5ac7aedd..e3516b97 100644 --- a/libsolidity/parsing/Token.h +++ b/libsolidity/parsing/Token.h @@ -214,7 +214,6 @@ namespace solidity T(Identifier, NULL, 0) \ \ /* Keywords reserved for future use. */ \ - K(After, "after", 0) \ K(As, "as", 0) \ K(Case, "case", 0) \ K(Catch, "catch", 0) \ @@ -230,6 +229,10 @@ namespace solidity K(Type, "type", 0) \ K(TypeOf, "typeof", 0) \ K(Using, "using", 0) \ + \ + /* Deprecated tokens. */ \ + K(After, "after", 0) \ + \ /* Illegal token - not able to scan. */ \ T(Illegal, "ILLEGAL", 0) \ \ @@ -285,6 +288,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 isDeprecated(Value op) { return op == After; } // @returns a string corresponding to the JS token string // (.e., "<" for the token LT) or NULL if the token doesn't |