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

Unified Diff: pkg/analyzer2dart/lib/src/semantic_visitor.dart

Issue 710163002: Add support for type references to AccessSemantics. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
Index: pkg/analyzer2dart/lib/src/semantic_visitor.dart
diff --git a/pkg/analyzer2dart/lib/src/semantic_visitor.dart b/pkg/analyzer2dart/lib/src/semantic_visitor.dart
index d53051c01e9dd3a015677ee38259d248845031e7..f3e7d82efe21ec5a572c58decd5264aedf962297 100644
--- a/pkg/analyzer2dart/lib/src/semantic_visitor.dart
+++ b/pkg/analyzer2dart/lib/src/semantic_visitor.dart
@@ -164,6 +164,14 @@ abstract class SemanticVisitor<R> extends RecursiveAstVisitor<R> {
return giveUp(node, 'visitStaticPropertyAccess of $semantics');
}
+ R visitToplevelClassAccess(AstNode node, AccessSemantics semantics) {
+ return giveUp(node, 'visitToplevelClassAccess of $semantics');
+ }
+
+ R visitTypeParameterAccess(AstNode node, AccessSemantics semantics) {
+ return giveUp(node, 'visitTypeParameterAccess of $semantics');
+ }
+
R _handlePropertyAccess(AstNode node, AccessSemantics semantics) {
switch (semantics.kind) {
case AccessKind.DYNAMIC:
@@ -180,6 +188,10 @@ abstract class SemanticVisitor<R> extends RecursiveAstVisitor<R> {
return visitStaticMethodAccess(node, semantics);
case AccessKind.STATIC_PROPERTY:
return visitStaticPropertyAccess(node, semantics);
+ case AccessKind.TOPLEVEL_CLASS:
+ return visitToplevelClassAccess(node, semantics);
+ case AccessKind.TYPE_PARAMETER:
+ return visitTypeParameterAccess(node, semantics);
default:
// Unexpected access kind.
return giveUp(node,

Powered by Google App Engine
This is Rietveld 408576698