this fixes No builder in right-hand side of object binding pattern element #2693 and adds tests

This commit is contained in:
Paul van Brenk
2015-04-30 15:01:37 -07:00
parent 8b26423848
commit fd5a04cb14
2 changed files with 9 additions and 0 deletions

View File

@@ -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:

View File

@@ -0,0 +1,6 @@
/// <reference path='fourslash.ts' />
////var { x:html/*1*/
goTo.marker("1");
verify.completionListAllowsNewIdentifier();