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

Side by Side Diff: compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java

Issue 10661022: Issue 3752. Support for @override annotations (as structured doc comments) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 package com.google.dart.compiler.resolver; 4 package com.google.dart.compiler.resolver;
5 5
6 import com.google.dart.compiler.ErrorCode; 6 import com.google.dart.compiler.ErrorCode;
7 import com.google.dart.compiler.ErrorSeverity; 7 import com.google.dart.compiler.ErrorSeverity;
8 import com.google.dart.compiler.SubSystem; 8 import com.google.dart.compiler.SubSystem;
9 9
10 /** 10 /**
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 ILLEGAL_ACCESS_TO_PRIVATE_MEMBER("\"%s\" refers to \"%s\" which is in a differ ent library"), 116 ILLEGAL_ACCESS_TO_PRIVATE_MEMBER("\"%s\" refers to \"%s\" which is in a differ ent library"),
117 ILLEGAL_CONSTRUCTOR_NO_DEFAULT_IN_INTERFACE( 117 ILLEGAL_CONSTRUCTOR_NO_DEFAULT_IN_INTERFACE(
118 "Illegal constructor declaration. No default clause in interface"), 118 "Illegal constructor declaration. No default clause in interface"),
119 ILLEGAL_FIELD_ACCESS_FROM_STATIC("Illegal access of instance field %s from sta tic scope"), 119 ILLEGAL_FIELD_ACCESS_FROM_STATIC("Illegal access of instance field %s from sta tic scope"),
120 ILLEGAL_METHOD_ACCESS_FROM_STATIC("Illegal access of instance method %s from s tatic scope"), 120 ILLEGAL_METHOD_ACCESS_FROM_STATIC("Illegal access of instance method %s from s tatic scope"),
121 INIT_FIELD_ONLY_IMMEDIATELY_SURROUNDING_CLASS( 121 INIT_FIELD_ONLY_IMMEDIATELY_SURROUNDING_CLASS(
122 "Only fields of immediately surrounding class can be initialized"), 122 "Only fields of immediately surrounding class can be initialized"),
123 INSTANCE_METHOD_FROM_REDIRECT("Instance methods cannot be referenced from cons tructor redirects"), 123 INSTANCE_METHOD_FROM_REDIRECT("Instance methods cannot be referenced from cons tructor redirects"),
124 INSTANCE_METHOD_FROM_STATIC("Instance methods cannot be referenced from static methods"), 124 INSTANCE_METHOD_FROM_STATIC("Instance methods cannot be referenced from static methods"),
125 INTERNAL_ERROR("internal error: %s"), 125 INTERNAL_ERROR("internal error: %s"),
126 INVALID_OVERRIDE_METADATA("Method marked with @override, but does not override any superclass element"),
Brian Wilkerson 2012/06/25 14:24:38 This should be a warning, not an error. I think w
scheglov 2012/06/26 19:46:34 I saw that ErrorSeverity.INFO was added for this.
126 INVALID_RETURN_IN_CONSTRUCTOR("Generative constructors cannot return arbitrary expressions"), 127 INVALID_RETURN_IN_CONSTRUCTOR("Generative constructors cannot return arbitrary expressions"),
127 INVALID_TYPE_NAME_IN_CONSTRUCTOR("Invalid type in constructor name"), 128 INVALID_TYPE_NAME_IN_CONSTRUCTOR("Invalid type in constructor name"),
128 IS_A_CLASS("%s is a class and cannot be used as an expression"), 129 IS_A_CLASS("%s is a class and cannot be used as an expression"),
129 IS_A_CONSTRUCTOR("%s.%s is a constructor, expected a method"), 130 IS_A_CONSTRUCTOR("%s.%s is a constructor, expected a method"),
130 IS_AN_INSTANCE_METHOD("%s.%s is an instance method, not a static method"), 131 IS_AN_INSTANCE_METHOD("%s.%s is an instance method, not a static method"),
131 LIST_LITERAL_ELEMENT_TYPE( 132 LIST_LITERAL_ELEMENT_TYPE(
132 "List literal element type must match declaration '%s' when type checks ar e on."), 133 "List literal element type must match declaration '%s' when type checks ar e on."),
133 MAIN_FUNCTION_PARAMETERS( 134 MAIN_FUNCTION_PARAMETERS(
134 ErrorSeverity.WARNING, "Top-level function 'main' should not have paramete rs."), 135 ErrorSeverity.WARNING, "Top-level function 'main' should not have paramete rs."),
135 MAP_LITERAL_ELEMENT_TYPE( 136 MAP_LITERAL_ELEMENT_TYPE(
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 @Override 214 @Override
214 public SubSystem getSubSystem() { 215 public SubSystem getSubSystem() {
215 return SubSystem.RESOLVER; 216 return SubSystem.RESOLVER;
216 } 217 }
217 218
218 @Override 219 @Override
219 public boolean needsRecompilation() { 220 public boolean needsRecompilation() {
220 return true; 221 return true;
221 } 222 }
222 } 223 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698