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

Unified Diff: pkg/compiler/lib/src/tree/nodes.dart

Issue 1942763002: Rebased and retested version of CL 1915123008. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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/tree/nodes.dart
diff --git a/pkg/compiler/lib/src/tree/nodes.dart b/pkg/compiler/lib/src/tree/nodes.dart
index ae8111bfe100ec90b452a139d55b33826de8ccd0..d2e9d965310e3a9b28f2ab85d4e8537f864e442f 100644
--- a/pkg/compiler/lib/src/tree/nodes.dart
+++ b/pkg/compiler/lib/src/tree/nodes.dart
@@ -1076,6 +1076,7 @@ class AsyncModifier extends Node {
class FunctionExpression extends Expression with StoredTreeElementMixin {
final Node name;
+ final NodeList typeVariables;
/**
* List of VariableDefinitions or NodeList.
@@ -1092,8 +1093,16 @@ class FunctionExpression extends Expression with StoredTreeElementMixin {
final Token getOrSet;
final AsyncModifier asyncModifier;
- FunctionExpression(this.name, this.parameters, this.body, this.returnType,
- this.modifiers, this.initializers, this.getOrSet, this.asyncModifier) {
+ FunctionExpression(
+ this.name,
+ this.typeVariables,
+ this.parameters,
+ this.body,
+ this.returnType,
+ this.modifiers,
+ this.initializers,
+ this.getOrSet,
+ this.asyncModifier) {
assert(modifiers != null);
}
@@ -1111,6 +1120,7 @@ class FunctionExpression extends Expression with StoredTreeElementMixin {
if (modifiers != null) modifiers.accept(visitor);
if (returnType != null) returnType.accept(visitor);
if (name != null) name.accept(visitor);
+ if (typeVariables != null) typeVariables.accept(visitor);
if (parameters != null) parameters.accept(visitor);
if (initializers != null) initializers.accept(visitor);
if (asyncModifier != null) asyncModifier.accept(visitor);
@@ -1121,6 +1131,7 @@ class FunctionExpression extends Expression with StoredTreeElementMixin {
if (modifiers != null) modifiers.accept1(visitor, arg);
if (returnType != null) returnType.accept1(visitor, arg);
if (name != null) name.accept1(visitor, arg);
+ if (typeVariables != null) typeVariables.accept1(visitor, arg);
if (parameters != null) parameters.accept1(visitor, arg);
if (initializers != null) initializers.accept1(visitor, arg);
if (asyncModifier != null) asyncModifier.accept1(visitor, arg);
@@ -3102,6 +3113,7 @@ class ErrorNode extends Node
// FunctionExpression.
get asyncModifier => null;
+ get typeVariables => null;
get parameters => null;
get body => null;
get returnType => null;
« no previous file with comments | « pkg/compiler/lib/src/serialization/resolved_ast_serialization.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698