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.dart

Issue 2617433003: Set ContentCache for created AnalysisContext(s) to control its view of the world. (Closed)
Patch Set: Created 3 years, 11 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; 5 library analyzer.src.generated.source;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 import "dart:math" as math; 8 import "dart:math" as math;
9 9
10 import 'package:analyzer/file_system/file_system.dart'; 10 import 'package:analyzer/file_system/file_system.dart';
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 @override 415 @override
416 bool operator ==(Object other) { 416 bool operator ==(Object other) {
417 if (other is NonExistingSource) { 417 if (other is NonExistingSource) {
418 return other.uriKind == uriKind && other.fullName == fullName; 418 return other.uriKind == uriKind && other.fullName == fullName;
419 } 419 }
420 return false; 420 return false;
421 } 421 }
422 422
423 @override 423 @override
424 bool exists() => false; 424 bool exists() => false;
425
426 @override
427 String toString() => 'NonExistingSource($uri, $fullName)';
425 } 428 }
426 429
427 /** 430 /**
428 * The interface `ContentReceiver` defines the behavior of objects that can rece ive the 431 * The interface `ContentReceiver` defines the behavior of objects that can rece ive the
429 * content of a source. 432 * content of a source.
430 */ 433 */
431 abstract class Source_ContentReceiver { 434 abstract class Source_ContentReceiver {
432 /** 435 /**
433 * Accept the contents of a source. 436 * Accept the contents of a source.
434 * 437 *
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 Source resolveAbsolute(Uri uri, [Uri actualUri]); 756 Source resolveAbsolute(Uri uri, [Uri actualUri]);
754 757
755 /** 758 /**
756 * Return an absolute URI that represents the given [source], or `null` if a 759 * Return an absolute URI that represents the given [source], or `null` if a
757 * valid URI cannot be computed. 760 * valid URI cannot be computed.
758 * 761 *
759 * The computation should be based solely on [source.fullName]. 762 * The computation should be based solely on [source.fullName].
760 */ 763 */
761 Uri restoreAbsolute(Source source) => null; 764 Uri restoreAbsolute(Source source) => null;
762 } 765 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698