OLD | NEW |
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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 "Parameter initializer cannot be use to initialize a static field '%s'"), | 178 "Parameter initializer cannot be use to initialize a static field '%s'"), |
179 // TODO(zundel): error message needs JUnit test (reachable code?) | 179 // TODO(zundel): error message needs JUnit test (reachable code?) |
180 PARAMETER_INIT_WITH_REDIR_CONSTRUCTOR( | 180 PARAMETER_INIT_WITH_REDIR_CONSTRUCTOR( |
181 "Parameter initializers cannot be used with redirected constructors"), | 181 "Parameter initializers cannot be used with redirected constructors"), |
182 // TODO(zundel): error message needs JUnit test | 182 // TODO(zundel): error message needs JUnit test |
183 PARAMETER_NOT_MATCH_FIELD("Could not match parameter initializer '%s' with any
field"), | 183 PARAMETER_NOT_MATCH_FIELD("Could not match parameter initializer '%s' with any
field"), |
184 REDIRECTION_CONSTRUCTOR_TARGET_TYPE( | 184 REDIRECTION_CONSTRUCTOR_TARGET_TYPE( |
185 "Target of redirecting factory constructor is not a type"), | 185 "Target of redirecting factory constructor is not a type"), |
186 REDIRECTION_CONSTRUCTOR_TARGET_MUST_BE_CONST( | 186 REDIRECTION_CONSTRUCTOR_TARGET_MUST_BE_CONST( |
187 "Target of constant redirecting factory constructor also should be constan
t"), | 187 "Target of constant redirecting factory constructor also should be constan
t"), |
| 188 REDIRECTION_CONSTRUCTOR_CYCLE("Cycle in redirecting constructors"), |
188 RETHROW_NOT_IN_CATCH("Re-throw not in a catch block"), | 189 RETHROW_NOT_IN_CATCH("Re-throw not in a catch block"), |
189 STATIC_FINAL_REQUIRES_VALUE("Static final fields must have an initial value"), | 190 STATIC_FINAL_REQUIRES_VALUE("Static final fields must have an initial value"), |
190 STATIC_METHOD_MUST_HAVE_BODY("Static method must have a body"), | 191 STATIC_METHOD_MUST_HAVE_BODY("Static method must have a body"), |
191 SUPER_IN_FACTORY_CONSTRUCTOR("Cannot use 'super' in a factory constructor"), | 192 SUPER_IN_FACTORY_CONSTRUCTOR("Cannot use 'super' in a factory constructor"), |
192 SUPER_IN_STATIC_METHOD("Cannot use 'super' in a static method"), | 193 SUPER_IN_STATIC_METHOD("Cannot use 'super' in a static method"), |
193 SUPER_OUTSIDE_OF_METHOD("Cannot use 'super' outside of a method"), | 194 SUPER_OUTSIDE_OF_METHOD("Cannot use 'super' outside of a method"), |
194 SUPER_ON_TOP_LEVEL("Cannot use 'super' in a top-level element"), | 195 SUPER_ON_TOP_LEVEL("Cannot use 'super' in a top-level element"), |
195 SWITCH_CASE_FALL_THROUGH(ErrorSeverity.WARNING, "Switch case should end with b
reak, continue, return or throw"), | 196 SWITCH_CASE_FALL_THROUGH(ErrorSeverity.WARNING, "Switch case should end with b
reak, continue, return or throw"), |
196 THIS_IN_STATIC_METHOD("Cannot use 'this' in a static method"), | 197 THIS_IN_STATIC_METHOD("Cannot use 'this' in a static method"), |
197 THIS_IN_INITIALIZER_AS_EXPRESSION("Cannot reference 'this' as expression in in
itializer list"), | 198 THIS_IN_INITIALIZER_AS_EXPRESSION("Cannot reference 'this' as expression in in
itializer list"), |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 @Override | 243 @Override |
243 public SubSystem getSubSystem() { | 244 public SubSystem getSubSystem() { |
244 return SubSystem.RESOLVER; | 245 return SubSystem.RESOLVER; |
245 } | 246 } |
246 | 247 |
247 @Override | 248 @Override |
248 public boolean needsRecompilation() { | 249 public boolean needsRecompilation() { |
249 return true; | 250 return true; |
250 } | 251 } |
251 } | 252 } |
OLD | NEW |