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

Side by Side Diff: pkg/analyzer/lib/src/generated/source_io.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/generated/source.dart ('k') | pkg/analyzer/lib/src/string_source.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.source.io; 8 library engine.source.io;
9 9
10 import 'engine.dart'; 10 import 'engine.dart';
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 path.codeUnitAt(path.length - 1) == JavaFile.separatorChar) { 79 path.codeUnitAt(path.length - 1) == JavaFile.separatorChar) {
80 return path; 80 return path;
81 } 81 }
82 return "$path${JavaFile.separator}"; 82 return "$path${JavaFile.separator}";
83 } 83 }
84 } 84 }
85 85
86 /** 86 /**
87 * Instances of the class `FileBasedSource` implement a source that represents a file. 87 * Instances of the class `FileBasedSource` implement a source that represents a file.
88 */ 88 */
89 class FileBasedSource implements Source { 89 class FileBasedSource extends Source {
90
91 /** 90 /**
92 * A function that changes the way that files are read off of disk. 91 * A function that changes the way that files are read off of disk.
93 */ 92 */
94 static Function fileReadMode = (String s) => s; 93 static Function fileReadMode = (String s) => s;
95 94
96 /** 95 /**
97 * The URI from which this source was originally derived. 96 * The URI from which this source was originally derived.
98 */ 97 */
99 final Uri uri; 98 final Uri uri;
100 99
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 } 538 }
540 539
541 /** 540 /**
542 * Return `true` if the given URI is a `file` URI. 541 * Return `true` if the given URI is a `file` URI.
543 * 542 *
544 * @param uri the URI being tested 543 * @param uri the URI being tested
545 * @return `true` if the given URI is a `file` URI 544 * @return `true` if the given URI is a `file` URI
546 */ 545 */
547 static bool isFileUri(Uri uri) => uri.scheme == FILE_SCHEME; 546 static bool isFileUri(Uri uri) => uri.scheme == FILE_SCHEME;
548 } 547 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/source.dart ('k') | pkg/analyzer/lib/src/string_source.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698