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

Unified Diff: pkg/compiler/lib/src/resolution/semantic_visitor.dart

Issue 1238783003: Handle deferred access as pre-step in SemanticSendVisitor. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 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
Index: pkg/compiler/lib/src/resolution/semantic_visitor.dart
diff --git a/pkg/compiler/lib/src/resolution/semantic_visitor.dart b/pkg/compiler/lib/src/resolution/semantic_visitor.dart
index 131f52dacf80454bd26d2499b76b3e9b08af7a3f..3c265cc097ada4d20dc7a1e88160acc172212ba8 100644
--- a/pkg/compiler/lib/src/resolution/semantic_visitor.dart
+++ b/pkg/compiler/lib/src/resolution/semantic_visitor.dart
@@ -4055,6 +4055,21 @@ abstract class SemanticSendVisitor<R, A> {
NodeList arguments,
CallStructure callStructure,
A arg);
+
+ /// Access of library through a deferred [prefix].
+ ///
+ /// For instance
+ /// import 'lib.dart' deferred as prefix;
+ ///
+ /// m() => prefix.foo;
+ ///
+ /// This visit method is special in that it is called as a pre-step to calling
+ /// the visit method for the actual access. Therefore this method cannot
+ /// return a result to its caller.
+ void previsitDeferredAccess(
+ Send node,
+ PrefixElement prefix,
+ A arg);
}
abstract class SemanticDeclarationVisitor<R, A> {
« no previous file with comments | « pkg/compiler/lib/src/resolution/resolution_result.dart ('k') | pkg/compiler/lib/src/resolution/semantic_visitor_mixins.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698