Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2523)

Unified Diff: runtime/vm/token.cc

Issue 1644793002: Replace intptr_t with TokenDescriptor (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/token.h ('k') | runtime/vm/token_position.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/token.cc
diff --git a/runtime/vm/token.cc b/runtime/vm/token.cc
index 504b6d90a81bd40c4587503f83096ba6bbc322d5..b6a34ce4bd56c4182e44515634f90be157c7f597 100644
--- a/runtime/vm/token.cc
+++ b/runtime/vm/token.cc
@@ -77,22 +77,4 @@ bool Token::IsUnaryArithmeticOperator(Token::Kind token) {
return (token == kBIT_NOT) || (token == kNEGATE);
}
-
-const char* ClassifyingTokenPositions::ToCString(intptr_t token_pos) {
- ASSERT(token_pos < Token::kMinSourcePos);
- COMPILE_ASSERT(ClassifyingTokenPositions::kPrivate ==
- (Token::kNoSourcePos - 1));
- COMPILE_ASSERT(kLast < kPrivate);
- switch (token_pos) {
- case Token::kNoSourcePos: return "NoSource";
-#define DEFINE_CASE(name, value) \
- case value: return #name;
- CLASSIFYING_TOKEN_POSITIONS(DEFINE_CASE);
-#undef DEFINE_CASE
- default:
- UNIMPLEMENTED();
- return NULL;
- }
-}
-
} // namespace dart
« no previous file with comments | « runtime/vm/token.h ('k') | runtime/vm/token_position.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698