| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 "default class must have the same type parameters as declared in the inter
face"), | 76 "default class must have the same type parameters as declared in the inter
face"), |
| 77 DEFAULT_CONSTRUCTOR_UNRESOLVED("Cannot resolve constructor with name '%s' in d
efault class '%s'"), | 77 DEFAULT_CONSTRUCTOR_UNRESOLVED("Cannot resolve constructor with name '%s' in d
efault class '%s'"), |
| 78 DEFAULT_CONSTRUCTOR_NUMBER_OF_REQUIRED_PARAMETERS( | 78 DEFAULT_CONSTRUCTOR_NUMBER_OF_REQUIRED_PARAMETERS( |
| 79 "Constructor '%s' in '%s' has %s required parameters, doesn't match '%s' i
n '%s' with %s"), | 79 "Constructor '%s' in '%s' has %s required parameters, doesn't match '%s' i
n '%s' with %s"), |
| 80 DEFAULT_CONSTRUCTOR_NAMED_PARAMETERS( | 80 DEFAULT_CONSTRUCTOR_NAMED_PARAMETERS( |
| 81 "Constructor '%s' in '%s' has named parameters %s, doesn't match '%s' in '
%s' with %s"), | 81 "Constructor '%s' in '%s' has named parameters %s, doesn't match '%s' in '
%s' with %s"), |
| 82 DEFAULT_MUST_SPECIFY_CLASS("default must indicate a class, not an interface"), | 82 DEFAULT_MUST_SPECIFY_CLASS("default must indicate a class, not an interface"), |
| 83 DEPRECATED_MAP_LITERAL_SYNTAX(ErrorSeverity.WARNING, | 83 DEPRECATED_MAP_LITERAL_SYNTAX(ErrorSeverity.WARNING, |
| 84 "Deprecated Map literal syntax. Both String (as key) and value type argume
nts required."), | 84 "Deprecated Map literal syntax. Both String (as key) and value type argume
nts required."), |
| 85 DID_YOU_MEAN_NEW("%1$s is a %2$s. Did you mean (new %1$s)?"), | 85 DID_YOU_MEAN_NEW("%1$s is a %2$s. Did you mean (new %1$s)?"), |
| 86 DUPLICATE_IMPLEMENTS_TYPE("Duplicate type in the implements clause"), |
| 86 DUPLICATE_INITIALIZATION("Duplicate initialization of '%s'"), | 87 DUPLICATE_INITIALIZATION("Duplicate initialization of '%s'"), |
| 87 DUPLICATE_FUNCTION_EXPRESSION("Duplicate function expression '%s'"), | 88 DUPLICATE_FUNCTION_EXPRESSION("Duplicate function expression '%s'"), |
| 88 DUPLICATE_LABEL_IN_SWITCH_STATEMENT("Duplicate label in switch statement"), | 89 DUPLICATE_LABEL_IN_SWITCH_STATEMENT("Duplicate label in switch statement"), |
| 89 DUPLICATE_LOCAL_VARIABLE_ERROR("Duplicate local variable '%s'"), | 90 DUPLICATE_LOCAL_VARIABLE_ERROR("Duplicate local variable '%s'"), |
| 90 DUPLICATE_MEMBER("Duplicate member '%s'"), | 91 DUPLICATE_MEMBER("Duplicate member '%s'"), |
| 91 DUPLICATE_NAMED_ARGUMENT("Duplicate named parameter argument"), | 92 DUPLICATE_NAMED_ARGUMENT("Duplicate named parameter argument"), |
| 92 DUPLICATE_PARAMETER("Duplicate parameter '%s'"), | 93 DUPLICATE_PARAMETER("Duplicate parameter '%s'"), |
| 93 DUPLICATE_TOP_LEVEL_DECLARATION("duplicate top-level declaration %s at %s"), | 94 DUPLICATE_TOP_LEVEL_DECLARATION("duplicate top-level declaration %s at %s"), |
| 94 DUPLICATE_TOP_LEVEL_DECLARATION_IMPORT("Duplicate import '%s' in %s prefix '%s
' - %s - %s"), | 95 DUPLICATE_TOP_LEVEL_DECLARATION_IMPORT("Duplicate import '%s' in %s prefix '%s
' - %s - %s"), |
| 95 DUPLICATE_TYPE_VARIABLE("Duplicate type variable '%s'"), | 96 DUPLICATE_TYPE_VARIABLE("Duplicate type variable '%s'"), |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 @Override | 235 @Override |
| 235 public SubSystem getSubSystem() { | 236 public SubSystem getSubSystem() { |
| 236 return SubSystem.RESOLVER; | 237 return SubSystem.RESOLVER; |
| 237 } | 238 } |
| 238 | 239 |
| 239 @Override | 240 @Override |
| 240 public boolean needsRecompilation() { | 241 public boolean needsRecompilation() { |
| 241 return true; | 242 return true; |
| 242 } | 243 } |
| 243 } | 244 } |
| OLD | NEW |