| OLD | NEW |
| 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 Loading... |
| 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 2242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2587 * The data that was created from the source. | 2594 * The data that was created from the source. |
| 2588 */ | 2595 */ |
| 2589 final E data; | 2596 final E data; |
| 2590 | 2597 |
| 2591 /** | 2598 /** |
| 2592 * Initialize a newly created holder to associate the given [data] with the | 2599 * Initialize a newly created holder to associate the given [data] with the |
| 2593 * given [modificationTime]. | 2600 * given [modificationTime]. |
| 2594 */ | 2601 */ |
| 2595 TimestampedData(this.modificationTime, this.data); | 2602 TimestampedData(this.modificationTime, this.data); |
| 2596 } | 2603 } |
| OLD | NEW |