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

Unified Diff: pkg/compiler/lib/src/tree/nodes.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/tree/nodes.dart
diff --git a/pkg/compiler/lib/src/tree/nodes.dart b/pkg/compiler/lib/src/tree/nodes.dart
index ff36cfe75e9a571617397da92c81af63114879f6..1e5f9ddbdd41e6e4b2cf65bb0957ce6282f35458 100644
--- a/pkg/compiler/lib/src/tree/nodes.dart
+++ b/pkg/compiler/lib/src/tree/nodes.dart
@@ -593,6 +593,7 @@ class Send extends Expression with StoredTreeElementMixin {
final Node receiver;
final Node selector;
final NodeList argumentsNode;
+ final NodeList typeArgumentsNode;
/// Whether this is a conditional send of the form `a?.b`.
final bool isConditional;
@@ -603,16 +604,19 @@ class Send extends Expression with StoredTreeElementMixin {
[this.receiver,
this.selector,
this.argumentsNode,
+ this.typeArgumentsNode,
this.isConditional = false]);
Send.postfix(this.receiver, this.selector,
[Node argument = null, this.isConditional = false])
: argumentsNode = (argument == null)
? new Postfix()
- : new Postfix.singleton(argument);
+ : new Postfix.singleton(argument),
+ typeArgumentsNode = null;
Send.prefix(this.receiver, this.selector,
[Node argument = null, this.isConditional = false])
: argumentsNode =
- (argument == null) ? new Prefix() : new Prefix.singleton(argument);
+ (argument == null) ? new Prefix() : new Prefix.singleton(argument),
+ typeArgumentsNode = null;
Send asSend() => this;
@@ -695,7 +699,8 @@ class Send extends Expression with StoredTreeElementMixin {
Send copyWithReceiver(Node newReceiver, bool isConditional) {
assert(receiver == null);
- return new Send(newReceiver, selector, argumentsNode, isConditional);
+ return new Send(
+ newReceiver, selector, argumentsNode, typeArgumentsNode, isConditional);
}
}
@@ -713,7 +718,7 @@ class SendSet extends Send {
final Operator assignmentOperator;
SendSet(receiver, selector, this.assignmentOperator, argumentsNode,
[bool isConditional = false])
- : super(receiver, selector, argumentsNode, isConditional);
+ : super(receiver, selector, argumentsNode, null, isConditional);
SendSet.postfix(receiver, selector, this.assignmentOperator,
[Node argument = null, bool isConditional = false])
: super.postfix(receiver, selector, argument, isConditional);

Powered by Google App Engine
This is Rietveld 408576698