| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 | 4 |
| 5 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.error; | 8 library engine.error; |
| 9 | 9 |
| 10 import 'java_core.dart'; | 10 import 'java_core.dart'; |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 _errorListener.onError(error); | 275 _errorListener.onError(error); |
| 276 } | 276 } |
| 277 | 277 |
| 278 /** | 278 /** |
| 279 * Report an error with the given error code and arguments. | 279 * Report an error with the given error code and arguments. |
| 280 * | 280 * |
| 281 * @param errorCode the error code of the error to be reported | 281 * @param errorCode the error code of the error to be reported |
| 282 * @param node the node specifying the location of the error | 282 * @param node the node specifying the location of the error |
| 283 * @param arguments the arguments to the error, used to compose the error mess
age | 283 * @param arguments the arguments to the error, used to compose the error mess
age |
| 284 */ | 284 */ |
| 285 void reportError3(ErrorCode errorCode, AstNode node, List<Object> arguments) { | 285 void reportError2(ErrorCode errorCode, AstNode node, List<Object> arguments) { |
| 286 reportError5(errorCode, node.offset, node.length, arguments); | 286 reportError4(errorCode, node.offset, node.length, arguments); |
| 287 } | 287 } |
| 288 | 288 |
| 289 /** | 289 /** |
| 290 * Report an error with the given error code and arguments. | 290 * Report an error with the given error code and arguments. |
| 291 * | 291 * |
| 292 * @param errorCode the error code of the error to be reported | 292 * @param errorCode the error code of the error to be reported |
| 293 * @param element the element which name should be used as the location of the
error | 293 * @param element the element which name should be used as the location of the
error |
| 294 * @param arguments the arguments to the error, used to compose the error mess
age | 294 * @param arguments the arguments to the error, used to compose the error mess
age |
| 295 */ | 295 */ |
| 296 void reportError4(ErrorCode errorCode, Element element, List<Object> arguments
) { | 296 void reportError3(ErrorCode errorCode, Element element, List<Object> arguments
) { |
| 297 reportError5(errorCode, element.nameOffset, element.displayName.length, argu
ments); | 297 reportError4(errorCode, element.nameOffset, element.displayName.length, argu
ments); |
| 298 } | 298 } |
| 299 | 299 |
| 300 /** | 300 /** |
| 301 * Report an error with the given error code and arguments. | 301 * Report an error with the given error code and arguments. |
| 302 * | 302 * |
| 303 * @param errorCode the error code of the error to be reported | 303 * @param errorCode the error code of the error to be reported |
| 304 * @param offset the offset of the location of the error | 304 * @param offset the offset of the location of the error |
| 305 * @param length the length of the location of the error | 305 * @param length the length of the location of the error |
| 306 * @param arguments the arguments to the error, used to compose the error mess
age | 306 * @param arguments the arguments to the error, used to compose the error mess
age |
| 307 */ | 307 */ |
| 308 void reportError5(ErrorCode errorCode, int offset, int length, List<Object> ar
guments) { | 308 void reportError4(ErrorCode errorCode, int offset, int length, List<Object> ar
guments) { |
| 309 _errorListener.onError(new AnalysisError.con2(_source, offset, length, error
Code, arguments)); | 309 _errorListener.onError(new AnalysisError.con2(_source, offset, length, error
Code, arguments)); |
| 310 } | 310 } |
| 311 | 311 |
| 312 /** | 312 /** |
| 313 * Report an error with the given error code and arguments. | 313 * Report an error with the given error code and arguments. |
| 314 * | 314 * |
| 315 * @param errorCode the error code of the error to be reported | 315 * @param errorCode the error code of the error to be reported |
| 316 * @param token the token specifying the location of the error | 316 * @param token the token specifying the location of the error |
| 317 * @param arguments the arguments to the error, used to compose the error mess
age | 317 * @param arguments the arguments to the error, used to compose the error mess
age |
| 318 */ | 318 */ |
| 319 void reportError6(ErrorCode errorCode, Token token, List<Object> arguments) { | 319 void reportError5(ErrorCode errorCode, Token token, List<Object> arguments) { |
| 320 reportError5(errorCode, token.offset, token.length, arguments); | 320 reportError4(errorCode, token.offset, token.length, arguments); |
| 321 } | 321 } |
| 322 | 322 |
| 323 /** | 323 /** |
| 324 * Set the source to be used when reporting errors. Setting the source to `nul
l` will cause | 324 * Set the source to be used when reporting errors. Setting the source to `nul
l` will cause |
| 325 * the default source to be used. | 325 * the default source to be used. |
| 326 * | 326 * |
| 327 * @param source the source to be used when reporting errors | 327 * @param source the source to be used when reporting errors |
| 328 */ | 328 */ |
| 329 void set source(Source source) { | 329 void set source(Source source) { |
| 330 this._source = source == null ? _defaultSource : source; | 330 this._source = source == null ? _defaultSource : source; |
| (...skipping 3306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3637 StaticTypeWarningCode.con2(String name, int ordinal, this.message, String corr
ection) : super(name, ordinal) { | 3637 StaticTypeWarningCode.con2(String name, int ordinal, this.message, String corr
ection) : super(name, ordinal) { |
| 3638 this.correction6 = correction; | 3638 this.correction6 = correction; |
| 3639 } | 3639 } |
| 3640 | 3640 |
| 3641 String get correction => correction6; | 3641 String get correction => correction6; |
| 3642 | 3642 |
| 3643 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; | 3643 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; |
| 3644 | 3644 |
| 3645 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; | 3645 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; |
| 3646 } | 3646 } |
| OLD | NEW |