mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Parse and emit for bind
This commit is contained in:
@@ -4026,6 +4026,14 @@ namespace ts {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (parseOptional(SyntaxKind.ColonColonToken)) {
|
||||
const bindExpression = <BindExpression>createNode(SyntaxKind.BindExpression, expression.pos);
|
||||
bindExpression.expression = expression;
|
||||
bindExpression.targetExpression = parseMemberExpressionOrHigher();
|
||||
expression = finishNode(bindExpression);
|
||||
continue;
|
||||
}
|
||||
|
||||
return <MemberExpression>expression;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user