mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-20 22:51:17 -05:00
this fixes No builder in right-hand side of object binding pattern element #2693 and adds tests
This commit is contained in:
@@ -3011,6 +3011,9 @@ module ts {
|
||||
case SyntaxKind.TemplateMiddle:
|
||||
return containingNodeKind === SyntaxKind.TemplateSpan; // `aa ${10} dd ${|
|
||||
|
||||
case SyntaxKind.ColonToken:
|
||||
return containingNodeKind === SyntaxKind.BindingElement; // var {x :html|
|
||||
|
||||
case SyntaxKind.PublicKeyword:
|
||||
case SyntaxKind.PrivateKeyword:
|
||||
case SyntaxKind.ProtectedKeyword:
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////var { x:html/*1*/
|
||||
|
||||
goTo.marker("1");
|
||||
verify.completionListAllowsNewIdentifier();
|
||||
Reference in New Issue
Block a user