aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenton Liu <liu.denton+github@gmail.com>2016-08-09 22:25:44 +0800
committerDenton Liu <liu.denton+github@gmail.com>2016-08-11 22:15:59 +0800
commitcab8e63a0e55e60a9e1e361140a9a031de6ea254 (patch)
treedac092ecb7e3156a9fc869feeecec90c0b94cac4
parentbe98d3db511f278d793fba6829ca73b10ac5af87 (diff)
downloaddexon-solidity-cab8e63a0e55e60a9e1e361140a9a031de6ea254.tar.gz
dexon-solidity-cab8e63a0e55e60a9e1e361140a9a031de6ea254.tar.zst
dexon-solidity-cab8e63a0e55e60a9e1e361140a9a031de6ea254.zip
Revert "Change After to a deprecated token"
This reverts commit 91c97f73b50fc87662b5490b2fe6de1c6ef376c7.
-rw-r--r--libsolidity/parsing/Token.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/libsolidity/parsing/Token.h b/libsolidity/parsing/Token.h
index e3516b97..5ac7aedd 100644
--- a/libsolidity/parsing/Token.h
+++ b/libsolidity/parsing/Token.h
@@ -214,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) \
@@ -229,10 +230,6 @@ 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) \
\
@@ -288,7 +285,6 @@ 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