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

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

Issue 10905062: Fix issue 4361 by checking in the resolver if the getter/setter exists. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | « lib/compiler/implementation/resolver.dart ('k') | tests/language/getter_no_setter2_test.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 const GENERIC = const MessageKind('#{1}'); 9 static const GENERIC = const MessageKind('#{1}');
10 10
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 225
226 static const ILLEGAL_FINAL_METHOD_MODIFIER = const MessageKind( 226 static const ILLEGAL_FINAL_METHOD_MODIFIER = const MessageKind(
227 "Error: cannot have final modifier on method."); 227 "Error: cannot have final modifier on method.");
228 228
229 static const ILLEGAL_CONSTRUCTOR_MODIFIERS = const MessageKind( 229 static const ILLEGAL_CONSTRUCTOR_MODIFIERS = const MessageKind(
230 "Error: illegal constructor modifiers: #{1}."); 230 "Error: illegal constructor modifiers: #{1}.");
231 231
232 static const PARAMETER_NAME_EXPECTED = const MessageKind( 232 static const PARAMETER_NAME_EXPECTED = const MessageKind(
233 "Error: parameter name expected."); 233 "Error: parameter name expected.");
234 234
235 static const CANNOT_RESOLVE_GETTER = const MessageKind(
236 'Cannot resolve getter.');
237
238 static const CANNOT_RESOLVE_SETTER = const MessageKind(
239 'Cannot resolve setter.');
240
235 static const COMPILER_CRASHED = const MessageKind( 241 static const COMPILER_CRASHED = const MessageKind(
236 "Error: The compiler crashed when compiling this element."); 242 "Error: The compiler crashed when compiling this element.");
237 243
238 static const PLEASE_REPORT_THE_CRASH = const MessageKind(''' 244 static const PLEASE_REPORT_THE_CRASH = const MessageKind('''
239 The compiler is broken. 245 The compiler is broken.
240 246
241 When compiling the above element, the compiler crashed. It is not 247 When compiling the above element, the compiler crashed. It is not
242 possible to tell if this is caused by a problem in your program or 248 possible to tell if this is caused by a problem in your program or
243 not. Regardless, the compiler should not crash. 249 not. Regardless, the compiler should not crash.
244 250
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 328
323 class CompileTimeConstantError extends Diagnostic { 329 class CompileTimeConstantError extends Diagnostic {
324 CompileTimeConstantError(MessageKind kind, List arguments) 330 CompileTimeConstantError(MessageKind kind, List arguments)
325 : super(kind, arguments); 331 : super(kind, arguments);
326 } 332 }
327 333
328 class CompilationError extends Diagnostic { 334 class CompilationError extends Diagnostic {
329 CompilationError(MessageKind kind, List arguments) 335 CompilationError(MessageKind kind, List arguments)
330 : super(kind, arguments); 336 : super(kind, arguments);
331 } 337 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/resolver.dart ('k') | tests/language/getter_no_setter2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698