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

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: Address comments. 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 static const INVALID_BREAK = const MessageKind( 158 static const INVALID_BREAK = const MessageKind(
159 'target of break is not a statement'); 159 'target of break is not a statement');
160 160
161 static const TYPE_VARIABLE_AS_CONSTRUCTOR = const MessageKind( 161 static const TYPE_VARIABLE_AS_CONSTRUCTOR = const MessageKind(
162 'cannot use type variable as constructor'); 162 'cannot use type variable as constructor');
163 static const DUPLICATE_TYPE_VARIABLE_NAME = const MessageKind( 163 static const DUPLICATE_TYPE_VARIABLE_NAME = const MessageKind(
164 'type variable #{typeVariableName} already declared'); 164 'type variable #{typeVariableName} already declared');
165 static const TYPE_VARIABLE_WITHIN_STATIC_MEMBER = const MessageKind( 165 static const TYPE_VARIABLE_WITHIN_STATIC_MEMBER = const MessageKind(
166 'cannot refer to type variable #{typeVariableName} ' 166 'cannot refer to type variable #{typeVariableName} '
167 'within a static member'); 167 'within a static member');
168 static const TYPE_VARIABLE_IN_CONSTANT = const MessageKind(
169 'Error: cannot refer to type variable in constant');
168 170
169 static const INVALID_USE_OF_SUPER = const MessageKind( 171 static const INVALID_USE_OF_SUPER = const MessageKind(
170 'super not allowed here'); 172 'super not allowed here');
171 static const INVALID_CASE_DEFAULT = const MessageKind( 173 static const INVALID_CASE_DEFAULT = const MessageKind(
172 'default only allowed on last case of a switch'); 174 'default only allowed on last case of a switch');
173 175
174 static const SWITCH_CASE_TYPES_NOT_EQUAL = const MessageKind( 176 static const SWITCH_CASE_TYPES_NOT_EQUAL = const MessageKind(
175 "case expressions don't all have the same type."); 177 "case expressions don't all have the same type.");
176 static const SWITCH_CASE_VALUE_OVERRIDES_EQUALS = const MessageKind( 178 static const SWITCH_CASE_VALUE_OVERRIDES_EQUALS = const MessageKind(
177 "case expression value overrides 'operator=='."); 179 "case expression value overrides 'operator=='.");
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 629
628 class CompileTimeConstantError extends Diagnostic { 630 class CompileTimeConstantError extends Diagnostic {
629 CompileTimeConstantError(MessageKind kind, [Map arguments = const {}]) 631 CompileTimeConstantError(MessageKind kind, [Map arguments = const {}])
630 : super(kind, arguments); 632 : super(kind, arguments);
631 } 633 }
632 634
633 class CompilationError extends Diagnostic { 635 class CompilationError extends Diagnostic {
634 CompilationError(MessageKind kind, [Map arguments = const {}]) 636 CompilationError(MessageKind kind, [Map arguments = const {}])
635 : super(kind, arguments); 637 : super(kind, arguments);
636 } 638 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/builder.dart ('k') | sdk/lib/_internal/lib/js_rti.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698