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

Side by Side Diff: pkg/analyzer/lib/src/generated/source_io.dart

Issue 247053004: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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
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.source.io; 8 library engine.source.io;
9 9
10 import 'source.dart'; 10 import 'source.dart';
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 /** 89 /**
90 * Initialize a newly created source object. 90 * Initialize a newly created source object.
91 * 91 *
92 * @param file the file represented by this source 92 * @param file the file represented by this source
93 * @param flags `true` if this source is in one of the system libraries 93 * @param flags `true` if this source is in one of the system libraries
94 */ 94 */
95 FileBasedSource.con2(this.file, this.uriKind); 95 FileBasedSource.con2(this.file, this.uriKind);
96 96
97 @override 97 @override
98 bool operator ==(Object object) => object != null && this.runtimeType == objec t.runtimeType && file == (object as FileBasedSource).file; 98 bool operator ==(Object object) => object != null && object is FileBasedSource && file == object.file;
99 99
100 @override 100 @override
101 bool exists() => file.isFile(); 101 bool exists() => file.isFile();
102 102
103 @override 103 @override
104 TimestampedData<String> get contents { 104 TimestampedData<String> get contents {
105 TimeCounter_TimeCounterHandle handle = PerformanceStatistics.io.start(); 105 TimeCounter_TimeCounterHandle handle = PerformanceStatistics.io.start();
106 try { 106 try {
107 return contentsFromFile; 107 return contentsFromFile;
108 } finally { 108 } finally {
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 } 509 }
510 510
511 @override 511 @override
512 Source resolveAbsolute(Uri uri) { 512 Source resolveAbsolute(Uri uri) {
513 if (!isFileUri(uri)) { 513 if (!isFileUri(uri)) {
514 return null; 514 return null;
515 } 515 }
516 return new FileBasedSource.con1(new JavaFile.fromUri(uri)); 516 return new FileBasedSource.con1(new JavaFile.fromUri(uri));
517 } 517 }
518 } 518 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698