From cfb6dfc35ecc52b6e9f93db6b4b4b1ef40a2ba03 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 9 Aug 2016 02:25:07 +0100 Subject: Introduce isReservedKeyword() --- libsolidity/parsing/Token.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libsolidity') 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 -- cgit