Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Side by Side Diff: pkg/analyzer/test/generated/test_support.dart

Issue 192363003: Translate Java's @Override into Dart's @override. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/analyzer/test/generated/resolver_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/resolver_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698