TypeScript/tests/cases/fourslash/completionListInNamedClassExpression.ts
2019-05-20 15:53:51 -07:00

20 lines
579 B
TypeScript

///<reference path="fourslash.ts" />
//// var x = class myClass {
//// getClassName (){
//// m/*0*/
//// }
//// /*1*/
//// }
verify.completions(
{ marker: "0", includes: { name: "myClass", text: "(local class) myClass", kind: "local class" } },
{
marker: "1",
exact: ["private", "protected", "public", "static", "abstract", "async", "constructor", "get", "readonly", "set"].map(
name => ({ name, sortText: completion.SortText.GlobalsOrKeywords })
),
isNewIdentifierLocation: true,
}
);