| 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'; |
| 11 import 'package:analyzer/dart/ast/visitor.dart'; |
| 10 import 'package:analyzer/dart/element/element.dart'; | 12 import 'package:analyzer/dart/element/element.dart'; |
| 11 import 'package:analyzer/instrumentation/instrumentation.dart'; | 13 import 'package:analyzer/instrumentation/instrumentation.dart'; |
| 12 import 'package:analyzer/source/embedder.dart'; | 14 import 'package:analyzer/source/embedder.dart'; |
| 13 import 'package:analyzer/src/cancelable_future.dart'; | 15 import 'package:analyzer/src/cancelable_future.dart'; |
| 14 import 'package:analyzer/src/context/cache.dart'; | 16 import 'package:analyzer/src/context/cache.dart'; |
| 15 import 'package:analyzer/src/context/context.dart'; | 17 import 'package:analyzer/src/context/context.dart'; |
| 16 import 'package:analyzer/src/generated/ast.dart'; | |
| 17 import 'package:analyzer/src/generated/constant.dart'; | 18 import 'package:analyzer/src/generated/constant.dart'; |
| 18 import 'package:analyzer/src/generated/error.dart'; | 19 import 'package:analyzer/src/generated/error.dart'; |
| 19 import 'package:analyzer/src/generated/java_core.dart'; | 20 import 'package:analyzer/src/generated/java_core.dart'; |
| 20 import 'package:analyzer/src/generated/java_engine.dart'; | 21 import 'package:analyzer/src/generated/java_engine.dart'; |
| 21 import 'package:analyzer/src/generated/resolver.dart'; | 22 import 'package:analyzer/src/generated/resolver.dart'; |
| 22 import 'package:analyzer/src/generated/source.dart'; | 23 import 'package:analyzer/src/generated/source.dart'; |
| 23 import 'package:analyzer/src/generated/utilities_general.dart'; | 24 import 'package:analyzer/src/generated/utilities_general.dart'; |
| 24 import 'package:analyzer/src/plugin/command_line_plugin.dart'; | 25 import 'package:analyzer/src/plugin/command_line_plugin.dart'; |
| 25 import 'package:analyzer/src/plugin/engine_plugin.dart'; | 26 import 'package:analyzer/src/plugin/engine_plugin.dart'; |
| 26 import 'package:analyzer/src/plugin/options_plugin.dart'; | 27 import 'package:analyzer/src/plugin/options_plugin.dart'; |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 * source file is not scheduled to be analyzed within the context of the | 306 * source file is not scheduled to be analyzed within the context of the |
| 306 * given library. | 307 * given library. |
| 307 */ | 308 */ |
| 308 CancelableFuture<CompilationUnit> computeResolvedCompilationUnitAsync( | 309 CancelableFuture<CompilationUnit> computeResolvedCompilationUnitAsync( |
| 309 Source source, Source librarySource); | 310 Source source, Source librarySource); |
| 310 | 311 |
| 311 /** | 312 /** |
| 312 * Perform work until the given [result] has been computed for the given | 313 * Perform work until the given [result] has been computed for the given |
| 313 * [target]. Return the computed value. | 314 * [target]. Return the computed value. |
| 314 */ | 315 */ |
| 315 Object /*=V*/ computeResult /*<V>*/ ( | 316 Object/*=V*/ computeResult/*<V>*/( |
| 316 AnalysisTarget target, ResultDescriptor /*<V>*/ result); | 317 AnalysisTarget target, ResultDescriptor/*<V>*/ result); |
| 317 | 318 |
| 318 /** | 319 /** |
| 319 * Notifies the context that the client is going to stop using this context. | 320 * Notifies the context that the client is going to stop using this context. |
| 320 */ | 321 */ |
| 321 void dispose(); | 322 void dispose(); |
| 322 | 323 |
| 323 /** | 324 /** |
| 324 * Return `true` if the given [source] exists. | 325 * Return `true` if the given [source] exists. |
| 325 * | 326 * |
| 326 * This method should be used rather than the method [Source.exists] because | 327 * This method should be used rather than the method [Source.exists] because |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 */ | 468 */ |
| 468 CompilationUnit getResolvedCompilationUnit2( | 469 CompilationUnit getResolvedCompilationUnit2( |
| 469 Source unitSource, Source librarySource); | 470 Source unitSource, Source librarySource); |
| 470 | 471 |
| 471 /** | 472 /** |
| 472 * Return the value of the given [result] for the given [target]. | 473 * Return the value of the given [result] for the given [target]. |
| 473 * | 474 * |
| 474 * If the corresponding [target] does not exist, or the [result] is not | 475 * If the corresponding [target] does not exist, or the [result] is not |
| 475 * computed yet, then the default value is returned. | 476 * computed yet, then the default value is returned. |
| 476 */ | 477 */ |
| 477 Object /*=V*/ getResult /*<V>*/ ( | 478 Object/*=V*/ getResult/*<V>*/( |
| 478 AnalysisTarget target, ResultDescriptor /*<V>*/ result); | 479 AnalysisTarget target, ResultDescriptor/*<V>*/ result); |
| 479 | 480 |
| 480 /** | 481 /** |
| 481 * Return a list of the sources being analyzed in this context whose full path | 482 * Return a list of the sources being analyzed in this context whose full path |
| 482 * is equal to the given [path]. | 483 * is equal to the given [path]. |
| 483 */ | 484 */ |
| 484 List<Source> getSourcesWithFullName(String path); | 485 List<Source> getSourcesWithFullName(String path); |
| 485 | 486 |
| 486 /** | 487 /** |
| 487 * Invalidates hints in the given [librarySource] and included parts. | 488 * Invalidates hints in the given [librarySource] and included parts. |
| 488 */ | 489 */ |
| (...skipping 1940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2429 * The data that was created from the source. | 2430 * The data that was created from the source. |
| 2430 */ | 2431 */ |
| 2431 final E data; | 2432 final E data; |
| 2432 | 2433 |
| 2433 /** | 2434 /** |
| 2434 * Initialize a newly created holder to associate the given [data] with the | 2435 * Initialize a newly created holder to associate the given [data] with the |
| 2435 * given [modificationTime]. | 2436 * given [modificationTime]. |
| 2436 */ | 2437 */ |
| 2437 TimestampedData(this.modificationTime, this.data); | 2438 TimestampedData(this.modificationTime, this.data); |
| 2438 } | 2439 } |
| OLD | NEW |