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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 EXPECTED_FIELD_NOT_METHOD("%s is a method, expected a local field"), | 89 EXPECTED_FIELD_NOT_METHOD("%s is a method, expected a local field"), |
90 EXPECTED_FIELD_NOT_PARAMETER("%s is a parameter, expected a local field"), | 90 EXPECTED_FIELD_NOT_PARAMETER("%s is a parameter, expected a local field"), |
91 EXPECTED_FIELD_NOT_TYPE_VAR("%s is a type variable, expected a local field"), | 91 EXPECTED_FIELD_NOT_TYPE_VAR("%s is a type variable, expected a local field"), |
92 EXPECTED_ONE_ARGUMENT("Expected one argument"), | 92 EXPECTED_ONE_ARGUMENT("Expected one argument"), |
93 EXPECTED_STATIC_FIELD("expected a static field, but got %s"), | 93 EXPECTED_STATIC_FIELD("expected a static field, but got %s"), |
94 EXTRA_TYPE_ARGUMENT("Type variables may not have type arguments"), | 94 EXTRA_TYPE_ARGUMENT("Type variables may not have type arguments"), |
95 FACTORY_CANNOT_BE_ABSTRACT("A factory cannot be abstract"), | 95 FACTORY_CANNOT_BE_ABSTRACT("A factory cannot be abstract"), |
96 FACTORY_CANNOT_BE_CONST("A factory cannot be const"), | 96 FACTORY_CANNOT_BE_CONST("A factory cannot be const"), |
97 FACTORY_CANNOT_BE_STATIC("A factory cannot be static"), | 97 FACTORY_CANNOT_BE_STATIC("A factory cannot be static"), |
98 FIELD_CONFLICTS("%s conflicts with previously defined %s at line %d column %d"
), | 98 FIELD_CONFLICTS("%s conflicts with previously defined %s at line %d column %d"
), |
| 99 FIELD_DOES_NOT_HAVE_A_GETTER("Field does not have a getter"), |
| 100 FIELD_DOES_NOT_HAVE_A_SETTER("Field does not have a setter"), |
99 FINAL_FIELD_MUST_BE_INITIALIZED("The final field %s must be initialized"), | 101 FINAL_FIELD_MUST_BE_INITIALIZED("The final field %s must be initialized"), |
100 ILLEGAL_ACCESS_TO_PRIVATE_MEMBER("\"%s\" refers to \"%s\" which is in a differ
ent library"), | 102 ILLEGAL_ACCESS_TO_PRIVATE_MEMBER("\"%s\" refers to \"%s\" which is in a differ
ent library"), |
101 ILLEGAL_CONSTRUCTOR_NO_DEFAULT_IN_INTERFACE( | 103 ILLEGAL_CONSTRUCTOR_NO_DEFAULT_IN_INTERFACE( |
102 "Illegal constructor declaration. No default clause in interface"), | 104 "Illegal constructor declaration. No default clause in interface"), |
103 ILLEGAL_FIELD_ACCESS_FROM_STATIC("Illegal access of instance field %s from sta
tic scope"), | 105 ILLEGAL_FIELD_ACCESS_FROM_STATIC("Illegal access of instance field %s from sta
tic scope"), |
104 ILLEGAL_METHOD_ACCESS_FROM_STATIC("Illegal access of instance method %s from s
tatic scope"), | 106 ILLEGAL_METHOD_ACCESS_FROM_STATIC("Illegal access of instance method %s from s
tatic scope"), |
105 INSTANCE_METHOD_FROM_STATIC("Instance methods cannot be referenced from static
methods"), | 107 INSTANCE_METHOD_FROM_STATIC("Instance methods cannot be referenced from static
methods"), |
106 INTERNAL_ERROR("internal error: %s"), | 108 INTERNAL_ERROR("internal error: %s"), |
107 INVALID_RETURN_IN_CONSTRUCTOR("Generative constructors cannot return arbitrary
expressions"), | 109 INVALID_RETURN_IN_CONSTRUCTOR("Generative constructors cannot return arbitrary
expressions"), |
108 INVALID_TYPE_NAME_IN_CONSTRUCTOR("Invalid type in constructor name"), | 110 INVALID_TYPE_NAME_IN_CONSTRUCTOR("Invalid type in constructor name"), |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 @Override | 188 @Override |
187 public SubSystem getSubSystem() { | 189 public SubSystem getSubSystem() { |
188 return SubSystem.RESOLVER; | 190 return SubSystem.RESOLVER; |
189 } | 191 } |
190 | 192 |
191 @Override | 193 @Override |
192 public boolean needsRecompilation() { | 194 public boolean needsRecompilation() { |
193 return true; | 195 return true; |
194 } | 196 } |
195 } | 197 } |
OLD | NEW |