2017-04-28 00:46:07 +02:00
|
|
|
///<reference path="fourslash.ts" />
|
2015-06-26 03:22:33 +02:00
|
|
|
|
|
|
|
//// var x = class myClass {
|
|
|
|
//// getClassName (){
|
|
|
|
//// m/*0*/
|
|
|
|
//// }
|
|
|
|
//// /*1*/
|
|
|
|
//// }
|
|
|
|
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions(
|
|
|
|
{ marker: "0", includes: { name: "myClass", text: "(local class) myClass", kind: "local class" } },
|
|
|
|
{
|
|
|
|
marker: "1",
|
2020-01-22 19:43:33 +01:00
|
|
|
exact: ["private", "protected", "public", "static", "abstract", "async", "constructor", "declare", "get", "readonly", "set"].map(
|
2019-05-16 23:46:10 +02:00
|
|
|
name => ({ name, sortText: completion.SortText.GlobalsOrKeywords })
|
|
|
|
),
|
2018-10-29 18:03:25 +01:00
|
|
|
isNewIdentifierLocation: true,
|
2019-05-16 23:46:10 +02:00
|
|
|
}
|
2018-10-29 18:03:25 +01:00
|
|
|
);
|