| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013, the Dart project authors. | 2 * Copyright (c) 2013, the Dart project authors. |
| 3 * | 3 * |
| 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except | 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except |
| 5 * in compliance with the License. You may obtain a copy of the License at | 5 * in compliance with the License. You may obtain a copy of the License at |
| 6 * | 6 * |
| 7 * http://www.eclipse.org/legal/epl-v10.html | 7 * http://www.eclipse.org/legal/epl-v10.html |
| 8 * | 8 * |
| 9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License | 9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License |
| 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express | 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 * 7.6.2 Factories: It is a static type warning if any of the type arguments t
o <i>k'</i> are not | 165 * 7.6.2 Factories: It is a static type warning if any of the type arguments t
o <i>k'</i> are not |
| 166 * subtypes of the bounds of the corresponding formal type parameters of type. | 166 * subtypes of the bounds of the corresponding formal type parameters of type. |
| 167 * | 167 * |
| 168 * @param boundedTypeName the name of the type used in the instance creation t
hat should be | 168 * @param boundedTypeName the name of the type used in the instance creation t
hat should be |
| 169 * limited by the bound as specified in the class declaration | 169 * limited by the bound as specified in the class declaration |
| 170 * @param boundingTypeName the name of the bounding type | 170 * @param boundingTypeName the name of the bounding type |
| 171 */ | 171 */ |
| 172 TYPE_ARGUMENT_NOT_MATCHING_BOUNDS("'%s' does not extend '%s'"), | 172 TYPE_ARGUMENT_NOT_MATCHING_BOUNDS("'%s' does not extend '%s'"), |
| 173 | 173 |
| 174 /** | 174 /** |
| 175 * Specification reference needed. This is equivalent to {@link #UNDEFINED_MET
HOD}, but for | |
| 176 * top-level functions. | |
| 177 * | |
| 178 * @param methodName the name of the method that is undefined | |
| 179 */ | |
| 180 UNDEFINED_FUNCTION("The function '%s' is not defined"), | |
| 181 | |
| 182 /** | |
| 183 * 12.17 Getter Invocation: Let <i>T</i> be the static type of <i>e</i>. It is
a static type | 175 * 12.17 Getter Invocation: Let <i>T</i> be the static type of <i>e</i>. It is
a static type |
| 184 * warning if <i>T</i> does not have a getter named <i>m</i>. | 176 * warning if <i>T</i> does not have a getter named <i>m</i>. |
| 185 * | 177 * |
| 186 * @param getterName the name of the getter | 178 * @param getterName the name of the getter |
| 187 * @param enclosingType the name of the enclosing type where the getter is bei
ng looked for | 179 * @param enclosingType the name of the enclosing type where the getter is bei
ng looked for |
| 188 */ | 180 */ |
| 189 UNDEFINED_GETTER("There is no such getter '%s' in '%s'"), | 181 UNDEFINED_GETTER("There is no such getter '%s' in '%s'"), |
| 190 | 182 |
| 191 /** | 183 /** |
| 192 * 12.15.1 Ordinary Invocation: Let <i>T</i> be the static type of <i>o</i>. I
t is a static type | 184 * 12.15.1 Ordinary Invocation: Let <i>T</i> be the static type of <i>o</i>. I
t is a static type |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 @Override | 263 @Override |
| 272 public String getMessage() { | 264 public String getMessage() { |
| 273 return message; | 265 return message; |
| 274 } | 266 } |
| 275 | 267 |
| 276 @Override | 268 @Override |
| 277 public ErrorType getType() { | 269 public ErrorType getType() { |
| 278 return ErrorType.STATIC_TYPE_WARNING; | 270 return ErrorType.STATIC_TYPE_WARNING; |
| 279 } | 271 } |
| 280 } | 272 } |
| OLD | NEW |