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

Side by Side Diff: frog/leg/warnings.dart

Issue 9146036: Address review comments. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 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 | « frog/leg/resolver.dart ('k') | no next file » | 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 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 SUPER_INITIALIZER_IN_OBJECT = const MessageKind( 71 static final SUPER_INITIALIZER_IN_OBJECT = const MessageKind(
72 "'Object' cannot have a super initializer"); 72 "'Object' cannot have a super initializer");
73 static final DUPLICATE_SUPER_INITIALIZER = const MessageKind( 73 static final DUPLICATE_SUPER_INITIALIZER = const MessageKind(
74 'cannot have more than one super initializer'); 74 'cannot have more than one super initializer');
75 static final NO_MATCHING_CONSTRUCTOR = const MessageKind( 75 static final NO_MATCHING_CONSTRUCTOR = const MessageKind(
76 'no matching constructor found'); 76 'no matching constructor found');
77 static final NO_CONSTRUCTOR = const MessageKind( 77 static final NO_CONSTRUCTOR = const MessageKind(
78 '#{1} is a #{2}, not a constructor'); 78 '#{1} is a #{2}, not a constructor');
79 static final FIELD_PARAMETER_NOT_ALLOWED = const MessageKind( 79 static final FIELD_PARAMETER_NOT_ALLOWED = const MessageKind(
80 'A field parameter is only allowed in generative constructors'); 80 'A field parameter is only allowed in generative constructors');
81 static final INVALID_FIELD_PARAMETER = const MessageKind( 81 static final INVALID_PARAMETER = const MessageKind(
82 "A field parameter must be preceded by 'this'"); 82 "Cannot resolve parameter");
83 static final NOT_INSTANCE_FIELD = const MessageKind( 83 static final NOT_INSTANCE_FIELD = const MessageKind(
84 '#{1} is not an instance field'); 84 '#{1} is not an instance field');
85 85
86 static final NOT_A_COMPILE_TIME_CONSTANT = const MessageKind( 86 static final NOT_A_COMPILE_TIME_CONSTANT = const MessageKind(
87 '#{1} cannot be used as compile-time constant'); 87 '#{1} cannot be used as compile-time constant');
88 88
89 toString() => template; 89 toString() => template;
90 } 90 }
91 91
92 class Message { 92 class Message {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 String toString() => message.toString(); 137 String toString() => message.toString();
138 } 138 }
139 139
140 class CompileTimeConstantError { 140 class CompileTimeConstantError {
141 final Message message; 141 final Message message;
142 CompileTimeConstantError.message(this.message); 142 CompileTimeConstantError.message(this.message);
143 CompileTimeConstantError(MessageKind kind, List<Type> arguments) 143 CompileTimeConstantError(MessageKind kind, List<Type> arguments)
144 : message = new Message(kind, arguments); 144 : message = new Message(kind, arguments);
145 String toString() => message.toString(); 145 String toString() => message.toString();
146 } 146 }
OLDNEW
« no previous file with comments | « frog/leg/resolver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698