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

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

Issue 12334088: Stop creating selectors in the SSA builder that were already created by the resolver. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 static const DUPLICATE_EXTENDS_IMPLEMENTS = const MessageKind( 208 static const DUPLICATE_EXTENDS_IMPLEMENTS = const MessageKind(
209 "Error: #{type} can not be both extended and implemented."); 209 "Error: #{type} can not be both extended and implemented.");
210 210
211 static const DUPLICATE_IMPLEMENTS = const MessageKind( 211 static const DUPLICATE_IMPLEMENTS = const MessageKind(
212 "Error: #{type} must not occur more than once " 212 "Error: #{type} must not occur more than once "
213 "in the implements clause."); 213 "in the implements clause.");
214 214
215 static const ILLEGAL_SUPER_SEND = const MessageKind( 215 static const ILLEGAL_SUPER_SEND = const MessageKind(
216 "#{name} cannot be called on super"); 216 "#{name} cannot be called on super");
217 217
218 static const NO_SUCH_SUPER_MEMBER = const MessageKind(
219 "Cannot resolve #{memberName} in a superclass of #{className}");
220
218 static const ADDITIONAL_TYPE_ARGUMENT = const MessageKind( 221 static const ADDITIONAL_TYPE_ARGUMENT = const MessageKind(
219 "additional type argument"); 222 "additional type argument");
220 223
221 static const MISSING_TYPE_ARGUMENT = const MessageKind( 224 static const MISSING_TYPE_ARGUMENT = const MessageKind(
222 "missing type argument"); 225 "missing type argument");
223 226
224 // TODO(johnniwinther): Use ADDITIONAL_TYPE_ARGUMENT or MISSING_TYPE_ARGUMENT 227 // TODO(johnniwinther): Use ADDITIONAL_TYPE_ARGUMENT or MISSING_TYPE_ARGUMENT
225 // instead. 228 // instead.
226 static const TYPE_ARGUMENT_COUNT_MISMATCH = const MessageKind( 229 static const TYPE_ARGUMENT_COUNT_MISMATCH = const MessageKind(
227 "incorrect number of type arguments on #{type}"); 230 "incorrect number of type arguments on #{type}");
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 334
332 static const PARAMETER_NAME_EXPECTED = const MessageKind( 335 static const PARAMETER_NAME_EXPECTED = const MessageKind(
333 "Error: parameter name expected."); 336 "Error: parameter name expected.");
334 337
335 static const CANNOT_RESOLVE_GETTER = const MessageKind( 338 static const CANNOT_RESOLVE_GETTER = const MessageKind(
336 'cannot resolve getter.'); 339 'cannot resolve getter.');
337 340
338 static const CANNOT_RESOLVE_SETTER = const MessageKind( 341 static const CANNOT_RESOLVE_SETTER = const MessageKind(
339 'cannot resolve setter.'); 342 'cannot resolve setter.');
340 343
344 static const CANNOT_RESOLVE_INDEX = const MessageKind(
345 'cannot resolve [] member.');
346
341 static const VOID_NOT_ALLOWED = const MessageKind( 347 static const VOID_NOT_ALLOWED = const MessageKind(
342 'type void is only allowed in a return type.'); 348 'type void is only allowed in a return type.');
343 349
344 static const BEFORE_TOP_LEVEL = const MessageKind( 350 static const BEFORE_TOP_LEVEL = const MessageKind(
345 'Error: part header must come before top-level definitions.'); 351 'Error: part header must come before top-level definitions.');
346 352
347 static const LIBRARY_NAME_MISMATCH = const MessageKind( 353 static const LIBRARY_NAME_MISMATCH = const MessageKind(
348 'Warning: expected part of library name "#{libraryName}".'); 354 'Warning: expected part of library name "#{libraryName}".');
349 355
350 static const MISSING_PART_OF_TAG = const MessageKind( 356 static const MISSING_PART_OF_TAG = const MessageKind(
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 570
565 class CompileTimeConstantError extends Diagnostic { 571 class CompileTimeConstantError extends Diagnostic {
566 CompileTimeConstantError(MessageKind kind, [Map arguments = const {}]) 572 CompileTimeConstantError(MessageKind kind, [Map arguments = const {}])
567 : super(kind, arguments); 573 : super(kind, arguments);
568 } 574 }
569 575
570 class CompilationError extends Diagnostic { 576 class CompilationError extends Diagnostic {
571 CompilationError(MessageKind kind, [Map arguments = const {}]) 577 CompilationError(MessageKind kind, [Map arguments = const {}])
572 : super(kind, arguments); 578 : super(kind, arguments);
573 } 579 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/builder.dart ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698