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

Side by Side Diff: runtime/vm/token.cc

Issue 1589643002: Source positions for constructors and lots of async machinery (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 unified diff | Download patch
« no previous file with comments | « runtime/vm/token.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/token.h" 5 #include "vm/token.h"
6 6
7 #include "vm/object.h" 7 #include "vm/object.h"
8 8
9 namespace dart { 9 namespace dart {
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 return false; 71 return false;
72 } 72 }
73 } 73 }
74 74
75 75
76 bool Token::IsUnaryArithmeticOperator(Token::Kind token) { 76 bool Token::IsUnaryArithmeticOperator(Token::Kind token) {
77 return (token == kBIT_NOT) || (token == kNEGATE); 77 return (token == kBIT_NOT) || (token == kNEGATE);
78 } 78 }
79 79
80 80
81 const char* ClassifyingTokenPositions::ToCString(intptr_t token_pos) {
82 ASSERT(token_pos < Token::kMinSourcePos);
83 COMPILE_ASSERT(ClassifyingTokenPositions::kPrivate ==
84 (Token::kNoSourcePos - 1));
85 COMPILE_ASSERT(kLast < kPrivate);
86 switch (token_pos) {
87 case Token::kNoSourcePos: return "NoSource";
88 #define DEFINE_CASE(name, value) \
89 case value: return #name;
90 CLASSIFYING_TOKEN_POSITIONS(DEFINE_CASE);
91 #undef DEFINE_CASE
92 default:
93 UNIMPLEMENTED();
94 return NULL;
95 }
96 }
97
81 } // namespace dart 98 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/token.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698