diff options
author | Denton Liu <liu.denton+github@gmail.com> | 2016-08-06 04:45:54 +0800 |
---|---|---|
committer | Denton Liu <liu.denton+github@gmail.com> | 2016-08-11 22:15:59 +0800 |
commit | 0988eba4fe8dd5f0630cf509663887d8f135fe5e (patch) | |
tree | dbff4a81ca4866737e948063e485bbccd5011ac2 /libsolidity | |
parent | 7c15fa661afd52f9e651e57aced5e75d744b9f62 (diff) | |
download | dexon-solidity-0988eba4fe8dd5f0630cf509663887d8f135fe5e.tar dexon-solidity-0988eba4fe8dd5f0630cf509663887d8f135fe5e.tar.gz dexon-solidity-0988eba4fe8dd5f0630cf509663887d8f135fe5e.tar.bz2 dexon-solidity-0988eba4fe8dd5f0630cf509663887d8f135fe5e.tar.lz dexon-solidity-0988eba4fe8dd5f0630cf509663887d8f135fe5e.tar.xz dexon-solidity-0988eba4fe8dd5f0630cf509663887d8f135fe5e.tar.zst dexon-solidity-0988eba4fe8dd5f0630cf509663887d8f135fe5e.zip |
Remove after from Token.h
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/parsing/Token.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/parsing/Token.h b/libsolidity/parsing/Token.h index 581df3a5..5ac7aedd 100644 --- a/libsolidity/parsing/Token.h +++ b/libsolidity/parsing/Token.h @@ -185,7 +185,6 @@ namespace solidity K(SubDay, "days", 0) \ K(SubWeek, "weeks", 0) \ K(SubYear, "years", 0) \ - K(After, "after", 0) \ /* type keywords*/ \ K(Int, "int", 0) \ K(UInt, "uint", 0) \ @@ -215,6 +214,7 @@ 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) \ @@ -277,7 +277,7 @@ public: static bool isBitOp(Value op) { return (BitOr <= op && op <= BitAnd) || op == BitNot; } static bool isBooleanOp(Value op) { return (Or <= op && op <= And) || op == Not; } - static bool isUnaryOp(Value op) { return (Not <= op && op <= Delete) || op == Add || op == Sub || op == After; } + static bool isUnaryOp(Value op) { return (Not <= op && op <= Delete) || op == Add || op == Sub; } static bool isCountOp(Value op) { return op == Inc || op == Dec; } static bool isShiftOp(Value op) { return (SHL <= op) && (op <= SHR); } static bool isVisibilitySpecifier(Value op) { return isVariableVisibilitySpecifier(op) || op == External; } |