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

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

Issue 11229002: Handle type variable in static member. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Status updated Created 8 years, 2 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 class MessageKind { 5 class MessageKind {
6 final String template; 6 final String template;
7 const MessageKind(this.template); 7 const MessageKind(this.template);
8 8
9 static const GENERIC = const MessageKind('#{1}'); 9 static const GENERIC = const MessageKind('#{1}');
10 10
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 static const DUPLICATE_LABEL = const MessageKind( 132 static const DUPLICATE_LABEL = const MessageKind(
133 'duplicate declaration of label #{1}'); 133 'duplicate declaration of label #{1}');
134 static const UNUSED_LABEL = const MessageKind( 134 static const UNUSED_LABEL = const MessageKind(
135 'unused label #{1}'); 135 'unused label #{1}');
136 static const INVALID_CONTINUE = const MessageKind( 136 static const INVALID_CONTINUE = const MessageKind(
137 'target of continue is not a loop or switch case'); 137 'target of continue is not a loop or switch case');
138 static const TYPE_VARIABLE_AS_CONSTRUCTOR = const MessageKind( 138 static const TYPE_VARIABLE_AS_CONSTRUCTOR = const MessageKind(
139 'cannot use type variable as constructor'); 139 'cannot use type variable as constructor');
140 static const DUPLICATE_TYPE_VARIABLE_NAME = const MessageKind( 140 static const DUPLICATE_TYPE_VARIABLE_NAME = const MessageKind(
141 'type variable #{1} already declared'); 141 'type variable #{1} already declared');
142 static const TYPE_VARIABLE_WITHIN_STATIC_MEMBER = const MessageKind(
143 'cannot refer to type variable #{1} within a static member');
142 static const INVALID_BREAK = const MessageKind( 144 static const INVALID_BREAK = const MessageKind(
143 'target of break is not a statement'); 145 'target of break is not a statement');
144 static const INVALID_USE_OF_SUPER = const MessageKind( 146 static const INVALID_USE_OF_SUPER = const MessageKind(
145 'super not allowed here'); 147 'super not allowed here');
146 static const INVALID_CASE_DEFAULT = const MessageKind( 148 static const INVALID_CASE_DEFAULT = const MessageKind(
147 'default only allowed on last case of a switch'); 149 'default only allowed on last case of a switch');
148 150
149 static const SWITCH_CASE_TYPES_NOT_EQUAL = const MessageKind( 151 static const SWITCH_CASE_TYPES_NOT_EQUAL = const MessageKind(
150 "case expressions don't all have the same type."); 152 "case expressions don't all have the same type.");
151 static const SWITCH_CASE_VALUE_OVERRIDES_EQUALS = const MessageKind( 153 static const SWITCH_CASE_VALUE_OVERRIDES_EQUALS = const MessageKind(
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 406
405 class CompileTimeConstantError extends Diagnostic { 407 class CompileTimeConstantError extends Diagnostic {
406 CompileTimeConstantError(MessageKind kind, List arguments) 408 CompileTimeConstantError(MessageKind kind, List arguments)
407 : super(kind, arguments); 409 : super(kind, arguments);
408 } 410 }
409 411
410 class CompilationError extends Diagnostic { 412 class CompilationError extends Diagnostic {
411 CompilationError(MessageKind kind, List arguments) 413 CompilationError(MessageKind kind, List arguments)
412 : super(kind, arguments); 414 : super(kind, arguments);
413 } 415 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698