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

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

Issue 9980004: Look up the correct constructor for default classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 final GENERIC = const MessageKind('#{1}'); 9 static final GENERIC = const MessageKind('#{1}');
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 'duplicate definition of #{1}'); 46 'duplicate definition of #{1}');
47 static final NOT_A_TYPE = const MessageKind( 47 static final NOT_A_TYPE = const MessageKind(
48 '#{1} is not a type'); 48 '#{1} is not a type');
49 static final NOT_A_PREFIX = const MessageKind( 49 static final NOT_A_PREFIX = const MessageKind(
50 '#{1} is not a prefix'); 50 '#{1} is not a prefix');
51 static final NO_SUPER_IN_OBJECT = const MessageKind( 51 static final NO_SUPER_IN_OBJECT = const MessageKind(
52 "'Object' does not have a superclass"); 52 "'Object' does not have a superclass");
53 static final CANNOT_FIND_CONSTRUCTOR = const MessageKind( 53 static final CANNOT_FIND_CONSTRUCTOR = const MessageKind(
54 'cannot find constructor #{1}'); 54 'cannot find constructor #{1}');
55 static final CANNOT_FIND_CONSTRUCTOR2 = const MessageKind( 55 static final CANNOT_FIND_CONSTRUCTOR2 = const MessageKind(
56 'cannot find constructor #{1} or #{2}'); 56 'cannot find constructor #{1} in #{2}');
57 static final CYCLIC_CLASS_HIERARCHY = const MessageKind( 57 static final CYCLIC_CLASS_HIERARCHY = const MessageKind(
58 '#{1} creates a cycle in the class hierarchy'); 58 '#{1} creates a cycle in the class hierarchy');
59 static final INVALID_RECEIVER_IN_INITIALIZER = const MessageKind( 59 static final INVALID_RECEIVER_IN_INITIALIZER = const MessageKind(
60 'field initializer expected'); 60 'field initializer expected');
61 static final NO_SUPER_IN_STATIC = const MessageKind( 61 static final NO_SUPER_IN_STATIC = const MessageKind(
62 "'super' is only available in instance methods"); 62 "'super' is only available in instance methods");
63 static final DUPLICATE_INITIALIZER = const MessageKind( 63 static final DUPLICATE_INITIALIZER = const MessageKind(
64 'field #{1} is initialized more than once'); 64 'field #{1} is initialized more than once');
65 static final ALREADY_INITIALIZED = const MessageKind( 65 static final ALREADY_INITIALIZED = const MessageKind(
66 '#{1} was already initialized here'); 66 '#{1} was already initialized here');
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 String toString() => message.toString(); 221 String toString() => message.toString();
222 } 222 }
223 223
224 class CompileTimeConstantError { 224 class CompileTimeConstantError {
225 final Message message; 225 final Message message;
226 CompileTimeConstantError.message(this.message); 226 CompileTimeConstantError.message(this.message);
227 CompileTimeConstantError(MessageKind kind, List<Type> arguments) 227 CompileTimeConstantError(MessageKind kind, List<Type> arguments)
228 : message = new Message(kind, arguments); 228 : message = new Message(kind, arguments);
229 String toString() => message.toString(); 229 String toString() => message.toString();
230 } 230 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698