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

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

Issue 10854216: Fix for class members cannot have the same name as the class in dart2js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 static final NOT_A_FIELD = const MessageKind( 71 static final NOT_A_FIELD = const MessageKind(
72 '#{1} is not a field'); 72 '#{1} is not a field');
73 static final CONSTRUCTOR_CALL_EXPECTED = const MessageKind( 73 static final CONSTRUCTOR_CALL_EXPECTED = const MessageKind(
74 "only call to 'this' or 'super' constructor allowed"); 74 "only call to 'this' or 'super' constructor allowed");
75 static final INVALID_FOR_IN = const MessageKind( 75 static final INVALID_FOR_IN = const MessageKind(
76 'invalid for-in variable declaration.'); 76 'invalid for-in variable declaration.');
77 static final INVALID_INITIALIZER = const MessageKind( 77 static final INVALID_INITIALIZER = const MessageKind(
78 'invalid initializer'); 78 'invalid initializer');
79 static final FUNCTION_WITH_INITIALIZER = const MessageKind( 79 static final FUNCTION_WITH_INITIALIZER = const MessageKind(
80 'only constructors can have initializers'); 80 'only constructors can have initializers');
81 static final CONSTRUCTOR_WITH_RETURN_TYPE = const MessageKind(
82 'cannot have return type for constructor');
ahe 2012/08/24 08:32:18 Please append new error messages just before COMPI
83
81 static final REDIRECTING_CONSTRUCTOR_CYCLE = const MessageKind( 84 static final REDIRECTING_CONSTRUCTOR_CYCLE = const MessageKind(
82 'cyclic constructor redirection'); 85 'cyclic constructor redirection');
83 static final REDIRECTING_CONSTRUCTOR_HAS_BODY = const MessageKind( 86 static final REDIRECTING_CONSTRUCTOR_HAS_BODY = const MessageKind(
84 'redirecting constructor cannot have a body'); 87 'redirecting constructor cannot have a body');
85 static final REDIRECTING_CONSTRUCTOR_HAS_INITIALIZER = const MessageKind( 88 static final REDIRECTING_CONSTRUCTOR_HAS_INITIALIZER = const MessageKind(
86 'redirecting constructor cannot have other initializers'); 89 'redirecting constructor cannot have other initializers');
87 static final SUPER_INITIALIZER_IN_OBJECT = const MessageKind( 90 static final SUPER_INITIALIZER_IN_OBJECT = const MessageKind(
88 "'Object' cannot have a super initializer"); 91 "'Object' cannot have a super initializer");
89 static final DUPLICATE_SUPER_INITIALIZER = const MessageKind( 92 static final DUPLICATE_SUPER_INITIALIZER = const MessageKind(
90 'cannot have more than one super initializer'); 93 'cannot have more than one super initializer');
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 306
304 class CompileTimeConstantError extends Diagnostic { 307 class CompileTimeConstantError extends Diagnostic {
305 CompileTimeConstantError(MessageKind kind, List<Type> arguments) 308 CompileTimeConstantError(MessageKind kind, List<Type> arguments)
306 : super(kind, arguments); 309 : super(kind, arguments);
307 } 310 }
308 311
309 class CompilationError extends Diagnostic { 312 class CompilationError extends Diagnostic {
310 CompilationError(MessageKind kind, List<Type> arguments) 313 CompilationError(MessageKind kind, List<Type> arguments)
311 : super(kind, arguments); 314 : super(kind, arguments);
312 } 315 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698