|
|
@ -562,11 +562,11 @@ MemberExpression
|
|
|
|
= base:(
|
|
|
|
= base:(
|
|
|
|
PrimaryExpression
|
|
|
|
PrimaryExpression
|
|
|
|
/ FunctionExpression
|
|
|
|
/ FunctionExpression
|
|
|
|
/ NewToken __ constructor:MemberExpression __ arguments:Arguments {
|
|
|
|
/ NewToken __ constructor:MemberExpression __ args:Arguments {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
type: "NewOperator",
|
|
|
|
type: "NewOperator",
|
|
|
|
constructor: constructor,
|
|
|
|
constructor: constructor,
|
|
|
|
arguments: arguments
|
|
|
|
arguments: args
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -597,19 +597,19 @@ NewExpression
|
|
|
|
|
|
|
|
|
|
|
|
CallExpression
|
|
|
|
CallExpression
|
|
|
|
= base:(
|
|
|
|
= base:(
|
|
|
|
name:MemberExpression __ arguments:Arguments {
|
|
|
|
name:MemberExpression __ args:Arguments {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
type: "FunctionCall",
|
|
|
|
type: "FunctionCall",
|
|
|
|
name: name,
|
|
|
|
name: name,
|
|
|
|
arguments: arguments
|
|
|
|
arguments: args
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
argumentsOrAccessors:(
|
|
|
|
argumentsOrAccessors:(
|
|
|
|
__ arguments:Arguments {
|
|
|
|
__ args:Arguments {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
type: "FunctionCallArguments",
|
|
|
|
type: "FunctionCallArguments",
|
|
|
|
arguments: arguments
|
|
|
|
arguments: args
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/ __ "[" __ name:Expression __ "]" {
|
|
|
|
/ __ "[" __ name:Expression __ "]" {
|
|
|
@ -652,8 +652,8 @@ CallExpression
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Arguments
|
|
|
|
Arguments
|
|
|
|
= "(" __ arguments:ArgumentList? __ ")" {
|
|
|
|
= "(" __ args:ArgumentList? __ ")" {
|
|
|
|
return arguments !== "" ? arguments : [];
|
|
|
|
return args !== "" ? args : [];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ArgumentList
|
|
|
|
ArgumentList
|
|
|
|