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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/warnings.dart

Issue 183743031: Introduce constraints of deferred constants. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | Annotate | Revision Log
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 part of dart2js; 5 part of dart2js;
6 6
7 const DONT_KNOW_HOW_TO_FIX = ""; 7 const DONT_KNOW_HOW_TO_FIX = "";
8 8
9 /** 9 /**
10 * The messages in this file should meet the following guide lines: 10 * The messages in this file should meet the following guide lines:
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 static const MessageKind SWITCH_CASE_VALUE_OVERRIDES_EQUALS = 546 static const MessageKind SWITCH_CASE_VALUE_OVERRIDES_EQUALS =
547 const MessageKind( 547 const MessageKind(
548 "'case' expression type '#{type}' overrides 'operator =='."); 548 "'case' expression type '#{type}' overrides 'operator =='.");
549 549
550 static const MessageKind INVALID_ARGUMENT_AFTER_NAMED = const MessageKind( 550 static const MessageKind INVALID_ARGUMENT_AFTER_NAMED = const MessageKind(
551 "Unnamed argument after named argument."); 551 "Unnamed argument after named argument.");
552 552
553 static const MessageKind NOT_A_COMPILE_TIME_CONSTANT = const MessageKind( 553 static const MessageKind NOT_A_COMPILE_TIME_CONSTANT = const MessageKind(
554 "Not a compile-time constant."); 554 "Not a compile-time constant.");
555 555
556 static const MessageKind DEFERRED_COMPILE_TIME_CONSTANT = const MessageKind(
557 "Deferred classes cannot be used to create compile-time constants.");
558
556 static const MessageKind CYCLIC_COMPILE_TIME_CONSTANTS = const MessageKind( 559 static const MessageKind CYCLIC_COMPILE_TIME_CONSTANTS = const MessageKind(
557 "Cycle in the compile-time constant computation."); 560 "Cycle in the compile-time constant computation.");
558 561
559 static const MessageKind CONSTRUCTOR_IS_NOT_CONST = const MessageKind( 562 static const MessageKind CONSTRUCTOR_IS_NOT_CONST = const MessageKind(
560 "Constructor is not a 'const' constructor."); 563 "Constructor is not a 'const' constructor.");
561 564
562 static const MessageKind CONST_MAP_KEY_OVERRIDES_EQUALS = 565 static const MessageKind CONST_MAP_KEY_OVERRIDES_EQUALS =
563 const MessageKind( 566 const MessageKind(
564 "Const-map key type '#{type}' overrides 'operator =='."); 567 "Const-map key type '#{type}' overrides 'operator =='.");
565 568
(...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after
1915 return computeMessage(); 1918 return computeMessage();
1916 } 1919 }
1917 1920
1918 bool operator==(other) { 1921 bool operator==(other) {
1919 if (other is !Message) return false; 1922 if (other is !Message) return false;
1920 return (kind == other.kind) && (toString() == other.toString()); 1923 return (kind == other.kind) && (toString() == other.toString());
1921 } 1924 }
1922 1925
1923 int get hashCode => throw new UnsupportedError('Message.hashCode'); 1926 int get hashCode => throw new UnsupportedError('Message.hashCode');
1924 } 1927 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/resolution/members.dart ('k') | tests/language/deferred_constraints_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698