fourslash_test

package
v0.0.0-...-1d138ea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CompletionClassElementInJSKeywords = getInJSKeywords(CompletionClassElementKeywords)
View Source
var CompletionClassElementKeywords = []fourslash.CompletionsExpectedItem{
	&lsproto.CompletionItem{
		Label:    "abstract",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "accessor",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "async",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "constructor",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "declare",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "get",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "override",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "private",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "protected",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "public",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "readonly",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "set",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "static",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
}
View Source
var CompletionFunctionMembersWithPrototype = sortCompletionItems(slices.Concat(
	CompletionFunctionMembers,
	[]fourslash.CompletionsExpectedItem{
		&lsproto.CompletionItem{
			Label: "prototype",
			Kind:  PtrTo(lsproto.CompletionItemKindField),
		},
	},
))
View Source
var CompletionGlobalInJSKeywords = getInJSKeywords(CompletionGlobalKeywords)
View Source
var CompletionGlobalKeywords = []fourslash.CompletionsExpectedItem{
	&lsproto.CompletionItem{
		Label:    "abstract",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "any",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "as",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "asserts",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "async",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "await",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "bigint",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "boolean",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "break",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "case",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "catch",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "class",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "const",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "continue",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "debugger",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "declare",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "default",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "delete",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "do",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "else",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "enum",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "export",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "extends",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "false",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "finally",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "for",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "function",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "if",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "implements",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "import",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "in",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "infer",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "instanceof",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "interface",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "keyof",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "let",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "module",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "namespace",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "never",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "new",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "null",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "number",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "object",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "package",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "readonly",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "return",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "satisfies",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "string",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "super",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "switch",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "symbol",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "this",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "throw",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "true",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "try",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "type",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "typeof",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "unique",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "unknown",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "using",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "var",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "void",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "while",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "with",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "yield",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
}
View Source
var CompletionGlobalThisItem = &lsproto.CompletionItem{
	Label:    "globalThis",
	Kind:     PtrTo(lsproto.CompletionItemKindModule),
	SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
}
View Source
var CompletionGlobalTypeDecls = []fourslash.CompletionsExpectedItem{}/* 1671 elements not displayed */
View Source
var CompletionGlobalTypes = CompletionGlobalTypesPlus(nil)
View Source
var CompletionGlobalVars = []fourslash.CompletionsExpectedItem{}/* 917 elements not displayed */
View Source
var CompletionTypeKeywords = []fourslash.CompletionsExpectedItem{
	&lsproto.CompletionItem{
		Label:    "any",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "asserts",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "bigint",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "boolean",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "false",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "infer",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "keyof",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "never",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "null",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "number",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "object",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "readonly",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "string",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "symbol",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "true",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "typeof",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "undefined",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "unique",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "unknown",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
	&lsproto.CompletionItem{
		Label:    "void",
		Kind:     PtrTo(lsproto.CompletionItemKindKeyword),
		SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
	},
}
View Source
var CompletionUndefinedVarItem = &lsproto.CompletionItem{
	Label:    "undefined",
	Kind:     PtrTo(lsproto.CompletionItemKindVariable),
	SortText: PtrTo(string(ls.SortTextGlobalsOrKeywords)),
}
View Source
var DefaultCommitCharacters = []string{".", ",", ";"}
View Source
var Ignored = struct{}{}

Functions

func PtrTo

func PtrTo[T any](v T) *T

func ToAny

func ToAny[T any](items []T) []any

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL