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

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

Issue 2060263006: Deprecate FileUriResolver and RelativeFileUriResolver in source_io.dart, replace the usages with Re… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
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';
11 import 'package:analyzer/src/context/source.dart'; 11 import 'package:analyzer/src/context/source.dart';
12 import 'package:analyzer/src/generated/engine.dart'; 12 import 'package:analyzer/src/generated/engine.dart';
13 import 'package:analyzer/src/generated/java_core.dart'; 13 import 'package:analyzer/src/generated/java_core.dart';
14 import 'package:analyzer/src/generated/java_engine.dart'; 14 import 'package:analyzer/src/generated/java_engine.dart';
15 import 'package:analyzer/src/generated/java_io.dart' show JavaFile; 15 import 'package:analyzer/src/generated/java_io.dart' show JavaFile;
16 import 'package:analyzer/src/generated/sdk.dart' show DartSdk; 16 import 'package:analyzer/src/generated/sdk.dart' show DartSdk;
17 import 'package:analyzer/src/generated/source_io.dart' 17 import 'package:analyzer/src/generated/source_io.dart'
18 show FileBasedSource, FileUriResolver, PackageUriResolver; 18 show FileBasedSource, PackageUriResolver;
19 import 'package:analyzer/task/model.dart'; 19 import 'package:analyzer/task/model.dart';
20 import 'package:package_config/packages.dart'; 20 import 'package:package_config/packages.dart';
21 import 'package:path/path.dart' as pathos; 21 import 'package:path/path.dart' as pathos;
22 22
23 /** 23 /**
24 * A function that is used to visit [ContentCache] entries. 24 * A function that is used to visit [ContentCache] entries.
25 */ 25 */
26 typedef void ContentCacheVisitor(String fullPath, int stamp, String contents); 26 typedef void ContentCacheVisitor(String fullPath, int stamp, String contents);
27 27
28 /** 28 /**
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 Source resolveAbsolute(Uri uri, [Uri actualUri]); 930 Source resolveAbsolute(Uri uri, [Uri actualUri]);
931 931
932 /** 932 /**
933 * Return an absolute URI that represents the given [source], or `null` if a 933 * Return an absolute URI that represents the given [source], or `null` if a
934 * valid URI cannot be computed. 934 * valid URI cannot be computed.
935 * 935 *
936 * The computation should be based solely on [source.fullName]. 936 * The computation should be based solely on [source.fullName].
937 */ 937 */
938 Uri restoreAbsolute(Source source) => null; 938 Uri restoreAbsolute(Source source) => null;
939 } 939 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698