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

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

Issue 16549004: Add type arguments to constants. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adjust test status. Created 7 years, 6 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 class MessageKind { 7 class MessageKind {
8 final String template; 8 final String template;
9 const MessageKind(this.template); 9 const MessageKind(this.template);
10 10
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 static const INVALID_BREAK = const MessageKind( 156 static const INVALID_BREAK = const MessageKind(
157 'target of break is not a statement'); 157 'target of break is not a statement');
158 158
159 static const TYPE_VARIABLE_AS_CONSTRUCTOR = const MessageKind( 159 static const TYPE_VARIABLE_AS_CONSTRUCTOR = const MessageKind(
160 'cannot use type variable as constructor'); 160 'cannot use type variable as constructor');
161 static const DUPLICATE_TYPE_VARIABLE_NAME = const MessageKind( 161 static const DUPLICATE_TYPE_VARIABLE_NAME = const MessageKind(
162 'type variable #{typeVariableName} already declared'); 162 'type variable #{typeVariableName} already declared');
163 static const TYPE_VARIABLE_WITHIN_STATIC_MEMBER = const MessageKind( 163 static const TYPE_VARIABLE_WITHIN_STATIC_MEMBER = const MessageKind(
164 'cannot refer to type variable #{typeVariableName} ' 164 'cannot refer to type variable #{typeVariableName} '
165 'within a static member'); 165 'within a static member');
166 static const TYPE_VARIABLE_IN_CONSTANT = const MessageKind(
167 'Error: cannot refer to type variable in constant');
166 168
167 static const INVALID_USE_OF_SUPER = const MessageKind( 169 static const INVALID_USE_OF_SUPER = const MessageKind(
168 'super not allowed here'); 170 'super not allowed here');
169 static const INVALID_CASE_DEFAULT = const MessageKind( 171 static const INVALID_CASE_DEFAULT = const MessageKind(
170 'default only allowed on last case of a switch'); 172 'default only allowed on last case of a switch');
171 173
172 static const SWITCH_CASE_TYPES_NOT_EQUAL = const MessageKind( 174 static const SWITCH_CASE_TYPES_NOT_EQUAL = const MessageKind(
173 "case expressions don't all have the same type."); 175 "case expressions don't all have the same type.");
174 static const SWITCH_CASE_VALUE_OVERRIDES_EQUALS = const MessageKind( 176 static const SWITCH_CASE_VALUE_OVERRIDES_EQUALS = const MessageKind(
175 "case expression value overrides 'operator=='."); 177 "case expression value overrides 'operator=='.");
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 627
626 class CompileTimeConstantError extends Diagnostic { 628 class CompileTimeConstantError extends Diagnostic {
627 CompileTimeConstantError(MessageKind kind, [Map arguments = const {}]) 629 CompileTimeConstantError(MessageKind kind, [Map arguments = const {}])
628 : super(kind, arguments); 630 : super(kind, arguments);
629 } 631 }
630 632
631 class CompilationError extends Diagnostic { 633 class CompilationError extends Diagnostic {
632 CompilationError(MessageKind kind, [Map arguments = const {}]) 634 CompilationError(MessageKind kind, [Map arguments = const {}])
633 : super(kind, arguments); 635 : super(kind, arguments);
634 } 636 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698