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

Unified Diff: pkg/analyzer/lib/src/task/dart.dart

Issue 2522143003: Create a new AstFactory class to be used by analyzer and its clients. (Closed)
Patch Set: Address code review comments Created 4 years, 1 month 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 | « pkg/analyzer/lib/src/dart/ast/ast_factory.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/task/dart.dart
diff --git a/pkg/analyzer/lib/src/task/dart.dart b/pkg/analyzer/lib/src/task/dart.dart
index 8821bc4d93011afe13a43f09ec1f6d5b239a5396..e251ea56352d0dc1c69bcff75e9c1f6c5eba3cc6 100644
--- a/pkg/analyzer/lib/src/task/dart.dart
+++ b/pkg/analyzer/lib/src/task/dart.dart
@@ -16,7 +16,7 @@ import 'package:analyzer/error/listener.dart';
import 'package:analyzer/exception/exception.dart';
import 'package:analyzer/src/context/cache.dart';
import 'package:analyzer/src/dart/ast/ast.dart'
- show NamespaceDirectiveImpl, UriBasedDirectiveImpl;
+ show NamespaceDirectiveImpl, UriBasedDirectiveImpl, UriValidationCode;
import 'package:analyzer/src/dart/ast/utilities.dart';
import 'package:analyzer/src/dart/element/builder.dart';
import 'package:analyzer/src/dart/element/element.dart';
@@ -6239,8 +6239,8 @@ class VerifyUnitTask extends SourceBasedAnalysisTask {
* Check the given [directive] to see if the referenced source exists and
* report an error if it does not.
*/
- void validateReferencedSource(UriBasedDirective directive) {
- if (directive is NamespaceDirective) {
+ void validateReferencedSource(UriBasedDirectiveImpl directive) {
+ if (directive is NamespaceDirectiveImpl) {
for (Configuration configuration in directive.configurations) {
Source source = configuration.uriSource;
StringLiteral uriLiteral = configuration.uri;
« no previous file with comments | « pkg/analyzer/lib/src/dart/ast/ast_factory.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698