Parse an object literal property as shorthand unless followed by '(' or ':' (#28121)

This commit is contained in:
Andy
2018-10-26 15:00:31 -07:00
committed by GitHub
parent abce9ae0be
commit 36dfd775b3
40 changed files with 163 additions and 93 deletions

View File

@@ -1,4 +1,4 @@
var tt = { aa; } // After this point, no useful parsing occurs in the entire file
var tt = { aa; }
if (true) {
}

View File

@@ -0,0 +1,14 @@
/// <reference path='fourslash.ts' />
// @noLib: true
////f({
//// a/**/
//// xyz: ``,
////});
////declare function f(options: { abc?: number, xyz?: string }): void;
verify.completions({
marker: "",
exact: ["abc"],
});