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

Unified Diff: pkg/compiler/lib/src/parser/node_listener.dart

Issue 2535373003: Resolve type arguments to generic methods. (Closed)
Patch Set: Created 4 years 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/parser/node_listener.dart
diff --git a/pkg/compiler/lib/src/parser/node_listener.dart b/pkg/compiler/lib/src/parser/node_listener.dart
index f3e343c7a4cf15475b8dac35dc4030f46f4f1a29..26cbab3bc3960381805381aedd1f5de7ceea059c 100644
--- a/pkg/compiler/lib/src/parser/node_listener.dart
+++ b/pkg/compiler/lib/src/parser/node_listener.dart
@@ -29,10 +29,12 @@ class NodeListener extends ElementListener {
void endLibraryName(Token libraryKeyword, Token semicolon) {
Expression name = popNode();
- pushNode(new LibraryName(libraryKeyword, name,
- // TODO(sigmund): Import AST nodes have pointers to MetadataAnnotation
- // (element) instead of Metatada (node).
- null));
+ pushNode(new LibraryName(
+ libraryKeyword,
+ name,
+ // TODO(sigmund): Import AST nodes have pointers to MetadataAnnotation
+ // (element) instead of Metatada (node).
+ null));
}
void endImport(Token importKeyword, Token deferredKeyword, Token asKeyword,
@@ -41,37 +43,50 @@ class NodeListener extends ElementListener {
Identifier prefix = asKeyword != null ? popNode() : null;
NodeList conditionalUris = popNode();
StringNode uri = popLiteralString();
- pushNode(new Import(importKeyword, uri, conditionalUris, prefix,
- combinators,
- // TODO(sigmund): Import AST nodes have pointers to MetadataAnnotation
- // (element) instead of Metatada (node).
- null, isDeferred: deferredKeyword != null));
+ pushNode(new Import(
+ importKeyword,
+ uri,
+ conditionalUris,
+ prefix,
+ combinators,
+ // TODO(sigmund): Import AST nodes have pointers to MetadataAnnotation
+ // (element) instead of Metatada (node).
+ null,
+ isDeferred: deferredKeyword != null));
}
void endExport(Token exportKeyword, Token semicolon) {
NodeList combinators = popNode();
NodeList conditionalUris = popNode();
StringNode uri = popLiteralString();
- pushNode(new Export(exportKeyword, uri, conditionalUris, combinators,
- // TODO(sigmund): Import AST nodes have pointers to MetadataAnnotation
- // (element) instead of Metatada (node).
- null));
+ pushNode(new Export(
+ exportKeyword,
+ uri,
+ conditionalUris,
+ combinators,
+ // TODO(sigmund): Import AST nodes have pointers to MetadataAnnotation
+ // (element) instead of Metatada (node).
+ null));
}
void endPart(Token partKeyword, Token semicolon) {
StringNode uri = popLiteralString();
- pushNode(new Part(partKeyword, uri,
- // TODO(sigmund): Import AST nodes have pointers to MetadataAnnotation
- // (element) instead of Metatada (node).
- null));
+ pushNode(new Part(
+ partKeyword,
+ uri,
+ // TODO(sigmund): Import AST nodes have pointers to MetadataAnnotation
+ // (element) instead of Metatada (node).
+ null));
}
void endPartOf(Token partKeyword, Token semicolon) {
Expression name = popNode(); // name
- pushNode(new PartOf(partKeyword, name,
- // TODO(sigmund): Import AST nodes have pointers to MetadataAnnotation
- // (element) instead of Metatada (node).
- null));
+ pushNode(new PartOf(
+ partKeyword,
+ name,
+ // TODO(sigmund): Import AST nodes have pointers to MetadataAnnotation
+ // (element) instead of Metatada (node).
+ null));
}
void endClassDeclaration(int interfacesCount, Token beginToken,
@@ -365,10 +380,10 @@ class NodeListener extends ElementListener {
void endSend(Token token) {
NodeList arguments = popNode();
- popNode(); // typeArguments
+ NodeList typeArguments = popNode();
Node selector = popNode();
// TODO(ahe): Handle receiver.
- pushNode(new Send(null, selector, arguments));
+ pushNode(new Send(null, selector, arguments, typeArguments));
}
void endFunctionBody(int count, Token beginToken, Token endToken) {

Powered by Google App Engine
This is Rietveld 408576698