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

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

Issue 2079873002: Initial Bazel file resolver support. (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.engine; 5 library analyzer.src.generated.engine;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'package:analyzer/dart/ast/ast.dart'; 10 import 'package:analyzer/dart/ast/ast.dart';
11 import 'package:analyzer/dart/ast/visitor.dart'; 11 import 'package:analyzer/dart/ast/visitor.dart';
12 import 'package:analyzer/dart/element/element.dart'; 12 import 'package:analyzer/dart/element/element.dart';
13 import 'package:analyzer/instrumentation/instrumentation.dart'; 13 import 'package:analyzer/instrumentation/instrumentation.dart';
14 import 'package:analyzer/plugin/resolver_provider.dart';
14 import 'package:analyzer/source/embedder.dart'; 15 import 'package:analyzer/source/embedder.dart';
15 import 'package:analyzer/src/cancelable_future.dart'; 16 import 'package:analyzer/src/cancelable_future.dart';
16 import 'package:analyzer/src/context/cache.dart'; 17 import 'package:analyzer/src/context/cache.dart';
17 import 'package:analyzer/src/context/context.dart'; 18 import 'package:analyzer/src/context/context.dart';
18 import 'package:analyzer/src/generated/constant.dart'; 19 import 'package:analyzer/src/generated/constant.dart';
19 import 'package:analyzer/src/generated/error.dart'; 20 import 'package:analyzer/src/generated/error.dart';
20 import 'package:analyzer/src/generated/java_core.dart'; 21 import 'package:analyzer/src/generated/java_core.dart';
21 import 'package:analyzer/src/generated/java_engine.dart'; 22 import 'package:analyzer/src/generated/java_engine.dart';
22 import 'package:analyzer/src/generated/resolver.dart'; 23 import 'package:analyzer/src/generated/resolver.dart';
23 import 'package:analyzer/src/generated/source.dart'; 24 import 'package:analyzer/src/generated/source.dart';
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 * Return `true` if the given [source] exists. 326 * Return `true` if the given [source] exists.
326 * 327 *
327 * This method should be used rather than the method [Source.exists] because 328 * This method should be used rather than the method [Source.exists] because
328 * contexts can have local overrides of the content of a source that the 329 * contexts can have local overrides of the content of a source that the
329 * source is not aware of and a source with local content is considered to 330 * source is not aware of and a source with local content is considered to
330 * exist even if there is no file on disk. 331 * exist even if there is no file on disk.
331 */ 332 */
332 bool exists(Source source); 333 bool exists(Source source);
333 334
334 /** 335 /**
336 * The file resolver provider used to override the way file URI's are
337 * resolved in some contexts.
338 */
339 ResolverProvider fileResolverProvider;
340
341 /**
335 * Return the element model corresponding to the compilation unit defined by 342 * Return the element model corresponding to the compilation unit defined by
336 * the given [unitSource] in the library defined by the given [librarySource], 343 * the given [unitSource] in the library defined by the given [librarySource],
337 * or `null` if the element model does not currently exist or if the library 344 * or `null` if the element model does not currently exist or if the library
338 * cannot be analyzed for some reason. 345 * cannot be analyzed for some reason.
339 */ 346 */
340 CompilationUnitElement getCompilationUnitElement( 347 CompilationUnitElement getCompilationUnitElement(
341 Source unitSource, Source librarySource); 348 Source unitSource, Source librarySource);
342 349
343 /** 350 /**
344 * Return configuration data associated with the given key or the [key]'s 351 * Return configuration data associated with the given key or the [key]'s
(...skipping 2239 matching lines...) Expand 10 before | Expand all | Expand 10 after
2584 * The data that was created from the source. 2591 * The data that was created from the source.
2585 */ 2592 */
2586 final E data; 2593 final E data;
2587 2594
2588 /** 2595 /**
2589 * Initialize a newly created holder to associate the given [data] with the 2596 * Initialize a newly created holder to associate the given [data] with the
2590 * given [modificationTime]. 2597 * given [modificationTime].
2591 */ 2598 */
2592 TimestampedData(this.modificationTime, this.data); 2599 TimestampedData(this.modificationTime, this.data);
2593 } 2600 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698