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

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

Issue 1743653002: Stop prefixing the library name to type names when reporting a type error with (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: enumerate URIs 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/object.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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
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") \ 312 V(Malformed, "malformed") \
313 V(Malbounded, "malbounded") \ 313 V(Malbounded, "malbounded") \
314 V(MegamorphicMiss, "megamorphic_miss") \ 314 V(MegamorphicMiss, "megamorphic_miss") \
315 V(CommaSpace, ", ") \ 315 V(CommaSpace, ", ") \
316 V(ColonSpace, ": ") \ 316 V(ColonSpace, ": ") \
317 V(RParenArrow, ") => ") \ 317 V(RParenArrow, ") => ") \
318 V(SpaceExtendsSpace, " extends ") \ 318 V(SpaceExtendsSpace, " extends ") \
319 V(SpaceWhereNewLine, " where\n") \
320 V(SpaceIsFromSpace, " is from ") \
321 V(SpaceOfSpace, " of ") \
319 V(SwitchExpr, ":switch_expr") \ 322 V(SwitchExpr, ":switch_expr") \
320 V(TwoNewlines, "\n\n") \ 323 V(TwoNewlines, "\n\n") \
321 V(TwoSpaces, " ") \ 324 V(TwoSpaces, " ") \
322 V(_instanceOf, "_instanceOf") \ 325 V(_instanceOf, "_instanceOf") \
323 V(_instanceOfSmi, "_instanceOfSmi") \ 326 V(_instanceOfSmi, "_instanceOfSmi") \
324 V(_instanceOfNum, "_instanceOfNum") \ 327 V(_instanceOfNum, "_instanceOfNum") \
325 V(_instanceOfInt, "_instanceOfInt") \ 328 V(_instanceOfInt, "_instanceOfInt") \
326 V(_instanceOfDouble, "_instanceOfDouble") \ 329 V(_instanceOfDouble, "_instanceOfDouble") \
327 V(_instanceOfString, "_instanceOfString") \ 330 V(_instanceOfString, "_instanceOfString") \
328 V(_as, "_as") \ 331 V(_as, "_as") \
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 enum SymbolId { 417 enum SymbolId {
415 kIllegal = 0, 418 kIllegal = 0,
416 419
417 #define DEFINE_SYMBOL_INDEX(symbol, literal) \ 420 #define DEFINE_SYMBOL_INDEX(symbol, literal) \
418 k##symbol##Id, 421 k##symbol##Id,
419 PREDEFINED_SYMBOLS_LIST(DEFINE_SYMBOL_INDEX) 422 PREDEFINED_SYMBOLS_LIST(DEFINE_SYMBOL_INDEX)
420 #undef DEFINE_SYMBOL_INDEX 423 #undef DEFINE_SYMBOL_INDEX
421 424
422 kKwTableStart, // First keyword at kKwTableStart + 1. 425 kKwTableStart, // First keyword at kKwTableStart + 1.
423 426
424 #define DEFINE_KEYWORD_SYMBOL_INDEX(t, s, p, a) \ 427 #define DEFINE_KEYWORD_SYMBOL_INDEX(t, s, p, a) \
425 t##Id, 428 t##Id,
426 DART_KEYWORD_LIST(DEFINE_KEYWORD_SYMBOL_INDEX) 429 DART_KEYWORD_LIST(DEFINE_KEYWORD_SYMBOL_INDEX)
427 #undef DEFINE_KEYWORD_SYMBOL_INDEX 430 #undef DEFINE_KEYWORD_SYMBOL_INDEX
428 431
429 kNullCharId, // One char code symbol starts here and takes up 256 entries. 432 kNullCharId, // One char code symbol starts here and takes up 256 entries.
430 kMaxPredefinedId = kNullCharId + kMaxOneCharCodeSymbol + 1, 433 kMaxPredefinedId = kNullCharId + kMaxOneCharCodeSymbol + 1,
431 }; 434 };
432 435
433 // Number of one character symbols being predefined in the predefined_ array. 436 // Number of one character symbols being predefined in the predefined_ array.
434 static const int kNumberOfOneCharCodeSymbols = 437 static const int kNumberOfOneCharCodeSymbols =
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 friend class SnapshotReader; 664 friend class SnapshotReader;
662 friend class SnapshotWriter; 665 friend class SnapshotWriter;
663 friend class ApiMessageReader; 666 friend class ApiMessageReader;
664 667
665 DISALLOW_COPY_AND_ASSIGN(Symbols); 668 DISALLOW_COPY_AND_ASSIGN(Symbols);
666 }; 669 };
667 670
668 } // namespace dart 671 } // namespace dart
669 672
670 #endif // VM_SYMBOLS_H_ 673 #endif // VM_SYMBOLS_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698