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

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

Issue 14205011: Issue 9845. Compare runtime types using ==. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 // This code was auto-generated, is not intended to be edited, and is subject to 1 // This code was auto-generated, is not intended to be edited, and is subject to
2 // significant change. Please see the README file for more information. 2 // significant change. Please see the README file for more information.
3 3
4 library engine.source.io; 4 library engine.source.io;
5 5
6 import 'source.dart'; 6 import 'source.dart';
7 import 'dart:io'; 7 import 'dart:io';
8 import 'dart:uri'; 8 import 'dart:uri';
9 import 'java_core.dart'; 9 import 'java_core.dart';
10 import 'java_io.dart'; 10 import 'java_io.dart';
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 */ 54 */
55 FileBasedSource.con2(ContentCache contentCache2, JavaFile file3, bool inSystem Library2) { 55 FileBasedSource.con2(ContentCache contentCache2, JavaFile file3, bool inSystem Library2) {
56 _jtd_constructor_329_impl(contentCache2, file3, inSystemLibrary2); 56 _jtd_constructor_329_impl(contentCache2, file3, inSystemLibrary2);
57 } 57 }
58 _jtd_constructor_329_impl(ContentCache contentCache2, JavaFile file3, bool inS ystemLibrary2) { 58 _jtd_constructor_329_impl(ContentCache contentCache2, JavaFile file3, bool inS ystemLibrary2) {
59 this._contentCache = contentCache2; 59 this._contentCache = contentCache2;
60 this._file = file3; 60 this._file = file3;
61 this._inSystemLibrary = inSystemLibrary2; 61 this._inSystemLibrary = inSystemLibrary2;
62 this._fileUriString = file3.toURI().toString(); 62 this._fileUriString = file3.toURI().toString();
63 } 63 }
64 bool operator ==(Object object) => object != null && identical(this.runtimeTyp e, object.runtimeType) && _file == ((object as FileBasedSource))._file; 64 bool operator ==(Object object) => object != null && this.runtimeType == objec t.runtimeType && _file == ((object as FileBasedSource))._file;
65 bool exists() => _contentCache.getContents(this) != null || (_file.exists() && !_file.isDirectory()); 65 bool exists() => _contentCache.getContents(this) != null || (_file.exists() && !_file.isDirectory());
66 void getContents(Source_ContentReceiver receiver) { 66 void getContents(Source_ContentReceiver receiver) {
67 { 67 {
68 String contents = _contentCache.getContents(this); 68 String contents = _contentCache.getContents(this);
69 if (contents != null) { 69 if (contents != null) {
70 receiver.accept2(contents, _contentCache.getModificationStamp(this)); 70 receiver.accept2(contents, _contentCache.getModificationStamp(this));
71 return; 71 return;
72 } 72 }
73 } 73 }
74 receiver.accept2(_file.readAsStringSync(), _file.lastModified()); 74 receiver.accept2(_file.readAsStringSync(), _file.lastModified());
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 */ 264 */
265 FileUriResolver() : super() { 265 FileUriResolver() : super() {
266 } 266 }
267 Source resolveAbsolute(ContentCache contentCache, Uri uri) { 267 Source resolveAbsolute(ContentCache contentCache, Uri uri) {
268 if (!isFileUri(uri)) { 268 if (!isFileUri(uri)) {
269 return null; 269 return null;
270 } 270 }
271 return new FileBasedSource.con1(contentCache, new JavaFile.fromUri(uri)); 271 return new FileBasedSource.con1(contentCache, new JavaFile.fromUri(uri));
272 } 272 }
273 } 273 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698