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

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

Issue 9724032: Resolve type Dynamic and implement black listing. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 8 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
« no previous file with comments | « dart/frog/leg/ssa/codegen.dart ('k') | dart/frog/tests/leg/src/mock_compiler.dart » ('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 final GENERIC = const MessageKind('#{1}'); 9 static final GENERIC = const MessageKind('#{1}');
10 10
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 static final CANNOT_INSTANTIATE_TYPEDEF = const MessageKind( 144 static final CANNOT_INSTANTIATE_TYPEDEF = const MessageKind(
145 "cannot instantiate typedef '#{1}'"); 145 "cannot instantiate typedef '#{1}'");
146 146
147 static final NO_DEFAULT_CLASS = const MessageKind( 147 static final NO_DEFAULT_CLASS = const MessageKind(
148 "no default class on enclosing interface '#{1}'"); 148 "no default class on enclosing interface '#{1}'");
149 149
150 static final CYCLIC_TYPE_VARIABLE = const MessageKind( 150 static final CYCLIC_TYPE_VARIABLE = const MessageKind(
151 "cyclic reference to type variable #{1}"); 151 "cyclic reference to type variable #{1}");
152 static final TYPE_NAME_EXPECTED = const MessageKind( 152 static final TYPE_NAME_EXPECTED = const MessageKind(
153 "class or interface name exptected"); 153 "class or interface name exptected");
154
155 static final CANNOT_EXTEND = const MessageKind(
156 "#{1} cannot be extended");
157
158 static final CANNOT_IMPLEMENT = const MessageKind(
159 "#{1} cannot be implemented");
160
154 toString() => template; 161 toString() => template;
155 } 162 }
156 163
157 class Message { 164 class Message {
158 final kind; 165 final kind;
159 final List arguments; 166 final List arguments;
160 String message; 167 String message;
161 168
162 Message(this.kind, this.arguments); 169 Message(this.kind, this.arguments);
163 170
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 String toString() => message.toString(); 218 String toString() => message.toString();
212 } 219 }
213 220
214 class CompileTimeConstantError { 221 class CompileTimeConstantError {
215 final Message message; 222 final Message message;
216 CompileTimeConstantError.message(this.message); 223 CompileTimeConstantError.message(this.message);
217 CompileTimeConstantError(MessageKind kind, List<Type> arguments) 224 CompileTimeConstantError(MessageKind kind, List<Type> arguments)
218 : message = new Message(kind, arguments); 225 : message = new Message(kind, arguments);
219 String toString() => message.toString(); 226 String toString() => message.toString();
220 } 227 }
OLDNEW
« no previous file with comments | « dart/frog/leg/ssa/codegen.dart ('k') | dart/frog/tests/leg/src/mock_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698