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

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

Issue 10970006: Correctly handle const constructors with type parameters. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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
« no previous file with comments | « lib/compiler/implementation/scanner/listener.dart ('k') | tests/co19/co19-dart2dart.status » ('j') | 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) 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 static const SWITCH_INVALID = const MessageKind( 146 static const SWITCH_INVALID = const MessageKind(
147 "switch cases contain invalid expressions."); 147 "switch cases contain invalid expressions.");
148 148
149 static const INVALID_ARGUMENT_AFTER_NAMED = const MessageKind( 149 static const INVALID_ARGUMENT_AFTER_NAMED = const MessageKind(
150 'non-named argument after named argument'); 150 'non-named argument after named argument');
151 151
152 static const NOT_A_COMPILE_TIME_CONSTANT = const MessageKind( 152 static const NOT_A_COMPILE_TIME_CONSTANT = const MessageKind(
153 'not a compile-time constant'); 153 'not a compile-time constant');
154 static const CYCLIC_COMPILE_TIME_CONSTANTS = const MessageKind( 154 static const CYCLIC_COMPILE_TIME_CONSTANTS = const MessageKind(
155 'cycle in the compile-time constant computation'); 155 'cycle in the compile-time constant computation');
156 static const CONSTRUCTOR_IS_NOT_CONST = const MessageKind(
157 'constructor is not a const constructor');
156 158
157 static const KEY_NOT_A_STRING_LITERAL = const MessageKind( 159 static const KEY_NOT_A_STRING_LITERAL = const MessageKind(
158 'map-literal key not a string literal'); 160 'map-literal key not a string literal');
159 161
160 static const NO_SUCH_LIBRARY_MEMBER = const MessageKind( 162 static const NO_SUCH_LIBRARY_MEMBER = const MessageKind(
161 '#{1} has no member named #{2}'); 163 '#{1} has no member named #{2}');
162 164
163 static const CANNOT_INSTANTIATE_INTERFACE = const MessageKind( 165 static const CANNOT_INSTANTIATE_INTERFACE = const MessageKind(
164 "cannot instantiate interface '#{1}'"); 166 "cannot instantiate interface '#{1}'");
165 167
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 344
343 class CompileTimeConstantError extends Diagnostic { 345 class CompileTimeConstantError extends Diagnostic {
344 CompileTimeConstantError(MessageKind kind, List arguments) 346 CompileTimeConstantError(MessageKind kind, List arguments)
345 : super(kind, arguments); 347 : super(kind, arguments);
346 } 348 }
347 349
348 class CompilationError extends Diagnostic { 350 class CompilationError extends Diagnostic {
349 CompilationError(MessageKind kind, List arguments) 351 CompilationError(MessageKind kind, List arguments)
350 : super(kind, arguments); 352 : super(kind, arguments);
351 } 353 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/scanner/listener.dart ('k') | tests/co19/co19-dart2dart.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698