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

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

Issue 882813007: Make source be a target (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove AbstractSource Created 5 years, 10 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/lib/src/task/targets.dart ('k') | pkg/analyzer/test/services/test_utils.dart » ('j') | 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 'dart:collection'; 10 import 'dart:collection';
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 infoCount++; 553 infoCount++;
554 } 554 }
555 555
556 @override 556 @override
557 void logInformation2(String message, Object exception) { 557 void logInformation2(String message, Object exception) {
558 infoCount++; 558 infoCount++;
559 } 559 }
560 } 560 }
561 561
562 562
563 class TestSource implements Source { 563 class TestSource extends Source {
564 String _name; 564 String _name;
565 String _contents; 565 String _contents;
566 int modificationStamp = 0; 566 int modificationStamp = 0;
567 bool exists2 = true; 567 bool exists2 = true;
568 568
569 /** 569 /**
570 * A flag indicating whether an exception should be generated when an attempt 570 * A flag indicating whether an exception should be generated when an attempt
571 * is made to access the contents of this source. 571 * is made to access the contents of this source.
572 */ 572 */
573 bool generateExceptionOnRead = false; 573 bool generateExceptionOnRead = false;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 throw new UnsupportedOperationException(); 620 throw new UnsupportedOperationException();
621 } 621 }
622 Uri resolveRelativeUri(Uri uri) { 622 Uri resolveRelativeUri(Uri uri) {
623 return new Uri(scheme: 'file', path: _name).resolveUri(uri); 623 return new Uri(scheme: 'file', path: _name).resolveUri(uri);
624 } 624 }
625 void setContents(String value) { 625 void setContents(String value) {
626 modificationStamp = new DateTime.now().millisecondsSinceEpoch; 626 modificationStamp = new DateTime.now().millisecondsSinceEpoch;
627 _contents = value; 627 _contents = value;
628 } 628 }
629 } 629 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/task/targets.dart ('k') | pkg/analyzer/test/services/test_utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698