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

Side by Side Diff: runtime/vm/symbols.h

Issue 1778133002: Enumerate URIs of all types in type errors in order to help the user diagnose (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: address comments Created 4 years, 9 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/parser.cc ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #ifndef VM_SYMBOLS_H_ 5 #ifndef VM_SYMBOLS_H_
6 #define VM_SYMBOLS_H_ 6 #define VM_SYMBOLS_H_
7 7
8 #include "vm/growable_array.h" 8 #include "vm/growable_array.h"
9 #include "vm/object.h" 9 #include "vm/object.h"
10 #include "vm/snapshot_ids.h" 10 #include "vm/snapshot_ids.h"
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 V(DotRange, ".range") \ 302 V(DotRange, ".range") \
303 V(ArgumentError, "ArgumentError") \ 303 V(ArgumentError, "ArgumentError") \
304 V(DotValue, ".value") \ 304 V(DotValue, ".value") \
305 V(FormatException, "FormatException") \ 305 V(FormatException, "FormatException") \
306 V(UnsupportedError, "UnsupportedError") \ 306 V(UnsupportedError, "UnsupportedError") \
307 V(StackOverflowError, "StackOverflowError") \ 307 V(StackOverflowError, "StackOverflowError") \
308 V(OutOfMemoryError, "OutOfMemoryError") \ 308 V(OutOfMemoryError, "OutOfMemoryError") \
309 V(NullThrownError, "NullThrownError") \ 309 V(NullThrownError, "NullThrownError") \
310 V(IsolateSpawnException, "IsolateSpawnException") \ 310 V(IsolateSpawnException, "IsolateSpawnException") \
311 V(BooleanExpression, "boolean expression") \ 311 V(BooleanExpression, "boolean expression") \
312 V(Malformed, "malformed") \
313 V(Malbounded, "malbounded") \
314 V(MegamorphicMiss, "megamorphic_miss") \ 312 V(MegamorphicMiss, "megamorphic_miss") \
315 V(CommaSpace, ", ") \ 313 V(CommaSpace, ", ") \
316 V(ColonSpace, ": ") \ 314 V(ColonSpace, ": ") \
317 V(RParenArrow, ") => ") \ 315 V(RParenArrow, ") => ") \
318 V(SpaceExtendsSpace, " extends ") \ 316 V(SpaceExtendsSpace, " extends ") \
319 V(SpaceWhereNewLine, " where\n") \ 317 V(SpaceWhereNewLine, " where\n") \
320 V(SpaceIsFromSpace, " is from ") \ 318 V(SpaceIsFromSpace, " is from ") \
319 V(InTypeCast, " in type cast") \
320 V(TypeQuote, "type '") \
321 V(QuoteIsNotASubtypeOf, "' is not a subtype of ") \
321 V(SpaceOfSpace, " of ") \ 322 V(SpaceOfSpace, " of ") \
322 V(SwitchExpr, ":switch_expr") \ 323 V(SwitchExpr, ":switch_expr") \
323 V(TwoNewlines, "\n\n") \ 324 V(TwoNewlines, "\n\n") \
324 V(TwoSpaces, " ") \ 325 V(TwoSpaces, " ") \
325 V(_instanceOf, "_instanceOf") \ 326 V(_instanceOf, "_instanceOf") \
326 V(_instanceOfSmi, "_instanceOfSmi") \ 327 V(_instanceOfSmi, "_instanceOfSmi") \
327 V(_instanceOfNum, "_instanceOfNum") \ 328 V(_instanceOfNum, "_instanceOfNum") \
328 V(_instanceOfInt, "_instanceOfInt") \ 329 V(_instanceOfInt, "_instanceOfInt") \
329 V(_instanceOfDouble, "_instanceOfDouble") \ 330 V(_instanceOfDouble, "_instanceOfDouble") \
330 V(_instanceOfString, "_instanceOfString") \ 331 V(_instanceOfString, "_instanceOfString") \
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 } 493 }
493 static const String& Blank() { 494 static const String& Blank() {
494 return *(symbol_handles_[kNullCharId + ' ']); 495 return *(symbol_handles_[kNullCharId + ' ']);
495 } 496 }
496 static const String& Dollar() { 497 static const String& Dollar() {
497 return *(symbol_handles_[kNullCharId + '$']); 498 return *(symbol_handles_[kNullCharId + '$']);
498 } 499 }
499 static const String& NewLine() { 500 static const String& NewLine() {
500 return *(symbol_handles_[kNullCharId + '\n']); 501 return *(symbol_handles_[kNullCharId + '\n']);
501 } 502 }
502 static const String& DoubleQuotes() { 503 static const String& DoubleQuote() {
503 return *(symbol_handles_[kNullCharId + '"']); 504 return *(symbol_handles_[kNullCharId + '"']);
504 } 505 }
506 static const String& SingleQuote() {
507 return *(symbol_handles_[kNullCharId + '\'']);
508 }
505 static const String& LowercaseR() { 509 static const String& LowercaseR() {
506 return *(symbol_handles_[kNullCharId + 'r']); 510 return *(symbol_handles_[kNullCharId + 'r']);
507 } 511 }
508 static const String& Dash() { 512 static const String& Dash() {
509 return *(symbol_handles_[kNullCharId + '-']); 513 return *(symbol_handles_[kNullCharId + '-']);
510 } 514 }
511 static const String& Ampersand() { 515 static const String& Ampersand() {
512 return *(symbol_handles_[kNullCharId + '&']); 516 return *(symbol_handles_[kNullCharId + '&']);
513 } 517 }
514 static const String& Backtick() { 518 static const String& Backtick() {
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 friend class SnapshotReader; 670 friend class SnapshotReader;
667 friend class SnapshotWriter; 671 friend class SnapshotWriter;
668 friend class ApiMessageReader; 672 friend class ApiMessageReader;
669 673
670 DISALLOW_COPY_AND_ASSIGN(Symbols); 674 DISALLOW_COPY_AND_ASSIGN(Symbols);
671 }; 675 };
672 676
673 } // namespace dart 677 } // namespace dart
674 678
675 #endif // VM_SYMBOLS_H_ 679 #endif // VM_SYMBOLS_H_
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698