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

Unified Diff: packages/analyzer/lib/task/dart.dart

Issue 2990843002: Removed fixed dependencies (Closed)
Patch Set: Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « packages/analyzer/lib/src/util/yaml.dart ('k') | packages/analyzer/lib/task/html.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/analyzer/lib/task/dart.dart
diff --git a/packages/analyzer/lib/task/dart.dart b/packages/analyzer/lib/task/dart.dart
index 644ab2466abcff73490a3a8a75f28698e98baa92..2a6f5fe26fd86979ac53a171af43ab86ee227650 100644
--- a/packages/analyzer/lib/task/dart.dart
+++ b/packages/analyzer/lib/task/dart.dart
@@ -4,10 +4,10 @@
library analyzer.task.dart;
-import 'package:analyzer/src/generated/ast.dart';
-import 'package:analyzer/src/generated/element.dart';
-import 'package:analyzer/src/generated/error.dart';
-import 'package:analyzer/src/generated/scanner.dart';
+import 'package:analyzer/dart/ast/ast.dart';
+import 'package:analyzer/dart/ast/token.dart';
+import 'package:analyzer/dart/element/element.dart';
+import 'package:analyzer/error/error.dart';
import 'package:analyzer/src/generated/source.dart';
import 'package:analyzer/src/generated/utilities_general.dart';
import 'package:analyzer/src/task/dart.dart';
@@ -67,15 +67,6 @@ final ListResultDescriptor<Source> IMPORTED_LIBRARIES =
final ListResultDescriptor<Source> INCLUDED_PARTS =
new ListResultDescriptor<Source>('INCLUDED_PARTS', Source.EMPTY_LIST);
-/**
- * A flag specifying whether a library is dependent on code that is only
- * available in a client.
- *
- * The result is only available for [Source]s representing a library.
- */
-final ResultDescriptor<bool> IS_CLIENT =
- new ResultDescriptor<bool>('IS_CLIENT', false);
-
/**
* A flag specifying whether a library is launchable.
*
@@ -111,7 +102,7 @@ final ResultDescriptor<CompilationUnit> PARSED_UNIT =
*/
final ResultDescriptor<CompilationUnit> RESOLVED_UNIT =
new ResultDescriptor<CompilationUnit>('RESOLVED_UNIT', null,
- cachingPolicy: AST_CACHING_POLICY);
+ cachingPolicy: AST_RESOLVED_CACHING_POLICY);
/**
* The kind of a [Source].
@@ -151,6 +142,9 @@ final ListResultDescriptor<Source> UNITS =
* change if a single part is included in more than one library.
*/
class LibrarySpecificUnit implements AnalysisTarget {
+ static const List<LibrarySpecificUnit> EMPTY_LIST =
+ const <LibrarySpecificUnit>[];
+
/**
* The defining compilation unit of the library in which the [unit]
* is analyzed.
@@ -172,6 +166,9 @@ class LibrarySpecificUnit implements AnalysisTarget {
return JenkinsSmiHash.combine(library.hashCode, unit.hashCode);
}
+ @override
+ Source get librarySource => library;
+
@override
Source get source => unit;
« no previous file with comments | « packages/analyzer/lib/src/util/yaml.dart ('k') | packages/analyzer/lib/task/html.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698