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

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

Issue 17317002: Convert isX() methods to isX getter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 library engine.source.io; 3 library engine.source.io;
4 import 'source.dart'; 4 import 'source.dart';
5 import 'dart:io'; 5 import 'dart:io';
6 import 'java_core.dart'; 6 import 'java_core.dart';
7 import 'java_io.dart'; 7 import 'java_io.dart';
8 import 'sdk.dart' show DartSdk; 8 import 'sdk.dart' show DartSdk;
9 import 'engine.dart' show AnalysisContext, AnalysisEngine; 9 import 'engine.dart' show AnalysisContext, AnalysisEngine;
10 export 'source.dart'; 10 export 'source.dart';
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 int get modificationStamp { 80 int get modificationStamp {
81 int stamp = _contentCache.getModificationStamp(this); 81 int stamp = _contentCache.getModificationStamp(this);
82 if (stamp != null) { 82 if (stamp != null) {
83 return stamp; 83 return stamp;
84 } 84 }
85 return _file.lastModified(); 85 return _file.lastModified();
86 } 86 }
87 String get shortName => _file.getName(); 87 String get shortName => _file.getName();
88 UriKind get uriKind => _uriKind; 88 UriKind get uriKind => _uriKind;
89 int get hashCode => _file.hashCode; 89 int get hashCode => _file.hashCode;
90 bool isInSystemLibrary() => identical(_uriKind, UriKind.DART_URI); 90 bool get isInSystemLibrary => identical(_uriKind, UriKind.DART_URI);
91 Source resolveRelative(Uri containedUri) { 91 Source resolveRelative(Uri containedUri) {
92 try { 92 try {
93 Uri resolvedUri = file.toURI().resolveUri(containedUri); 93 Uri resolvedUri = file.toURI().resolveUri(containedUri);
94 return new FileBasedSource.con2(_contentCache, new JavaFile.fromUri(resolv edUri), _uriKind); 94 return new FileBasedSource.con2(_contentCache, new JavaFile.fromUri(resolv edUri), _uriKind);
95 } catch (exception) { 95 } catch (exception) {
96 } 96 }
97 return null; 97 return null;
98 } 98 }
99 String toString() { 99 String toString() {
100 if (_file == null) { 100 if (_file == null) {
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 } 318 }
319 return null; 319 return null;
320 } 320 }
321 Source resolveAbsolute(ContentCache contentCache, Uri uri) { 321 Source resolveAbsolute(ContentCache contentCache, Uri uri) {
322 if (!isFileUri(uri)) { 322 if (!isFileUri(uri)) {
323 return null; 323 return null;
324 } 324 }
325 return new FileBasedSource.con1(contentCache, new JavaFile.fromUri(uri)); 325 return new FileBasedSource.con1(contentCache, new JavaFile.fromUri(uri));
326 } 326 }
327 } 327 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698