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

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

Issue 1980573003: fix all instances of "the the" (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
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 library analyzer.src.generated.source_io; 5 library analyzer.src.generated.source_io;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/src/generated/engine.dart'; 9 import 'package:analyzer/src/generated/engine.dart';
10 import 'package:analyzer/src/generated/java_core.dart'; 10 import 'package:analyzer/src/generated/java_core.dart';
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 @override 184 @override
185 TimestampedData<String> get contents { 185 TimestampedData<String> get contents {
186 return PerformanceStatistics.io.makeCurrentWhile(() { 186 return PerformanceStatistics.io.makeCurrentWhile(() {
187 return contentsFromFile; 187 return contentsFromFile;
188 }); 188 });
189 } 189 }
190 190
191 /** 191 /**
192 * Get the contents and timestamp of the underlying file. 192 * Get the contents and timestamp of the underlying file.
193 * 193 *
194 * Clients should consider using the the method [AnalysisContext.getContents] 194 * Clients should consider using the method [AnalysisContext.getContents]
195 * because contexts can have local overrides of the content of a source that t he source is not 195 * because contexts can have local overrides of the content of a source that t he source is not
196 * aware of. 196 * aware of.
197 * 197 *
198 * @return the contents of the source paired with the modification stamp of th e source 198 * @return the contents of the source paired with the modification stamp of th e source
199 * @throws Exception if the contents of this source could not be accessed 199 * @throws Exception if the contents of this source could not be accessed
200 * See [contents]. 200 * See [contents].
201 */ 201 */
202 TimestampedData<String> get contentsFromFile { 202 TimestampedData<String> get contentsFromFile {
203 return new TimestampedData<String>( 203 return new TimestampedData<String>(
204 file.lastModified(), fileReadMode(file.readAsStringSync())); 204 file.lastModified(), fileReadMode(file.readAsStringSync()));
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 } 551 }
552 552
553 /** 553 /**
554 * Return `true` if the given URI is a `file` URI. 554 * Return `true` if the given URI is a `file` URI.
555 * 555 *
556 * @param uri the URI being tested 556 * @param uri the URI being tested
557 * @return `true` if the given URI is a `file` URI 557 * @return `true` if the given URI is a `file` URI
558 */ 558 */
559 static bool isFileUri(Uri uri) => uri.scheme == FILE_SCHEME; 559 static bool isFileUri(Uri uri) => uri.scheme == FILE_SCHEME;
560 } 560 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/source.dart ('k') | pkg/analyzer/lib/src/generated/type_system.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698