| 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.test_support; | 8 library engine.test_support; |
| 9 | 9 |
| 10 import 'package:analyzer/src/generated/java_core.dart'; | 10 import 'package:analyzer/src/generated/java_core.dart'; |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 return false; | 270 return false; |
| 271 } | 271 } |
| 272 | 272 |
| 273 /** | 273 /** |
| 274 * Return `true` if at least one error has been gathered. | 274 * Return `true` if at least one error has been gathered. |
| 275 * | 275 * |
| 276 * @return `true` if at least one error has been gathered | 276 * @return `true` if at least one error has been gathered |
| 277 */ | 277 */ |
| 278 bool get hasErrors => _errors.length > 0; | 278 bool get hasErrors => _errors.length > 0; |
| 279 | 279 |
| 280 @override |
| 280 void onError(AnalysisError error) { | 281 void onError(AnalysisError error) { |
| 281 if (_rawSource != null) { | 282 if (_rawSource != null) { |
| 282 int left = error.offset; | 283 int left = error.offset; |
| 283 int right = left + error.length - 1; | 284 int right = left + error.length - 1; |
| 284 _markedSource = "${_rawSource.substring(0, left)}^${_rawSource.substring(l
eft, right)}^${_rawSource.substring(right)}"; | 285 _markedSource = "${_rawSource.substring(0, left)}^${_rawSource.substring(l
eft, right)}^${_rawSource.substring(right)}"; |
| 285 } | 286 } |
| 286 _errors.add(error); | 287 _errors.add(error); |
| 287 } | 288 } |
| 288 | 289 |
| 289 /** | 290 /** |
| (...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 852 Source resolveRelative(Uri uri) { | 853 Source resolveRelative(Uri uri) { |
| 853 throw new UnsupportedOperationException(); | 854 throw new UnsupportedOperationException(); |
| 854 } | 855 } |
| 855 UriKind get uriKind { | 856 UriKind get uriKind { |
| 856 throw new UnsupportedOperationException(); | 857 throw new UnsupportedOperationException(); |
| 857 } | 858 } |
| 858 TimestampedData<String> get contents { | 859 TimestampedData<String> get contents { |
| 859 throw new UnsupportedOperationException(); | 860 throw new UnsupportedOperationException(); |
| 860 } | 861 } |
| 861 } | 862 } |
| OLD | NEW |