MCPcopy Create free account
hub / github.com/Effect-TS/tsgo / parseSource

Function parseSource

internal/completion/position_test.go:12–16  ·  view source on GitHub ↗
(source string)

Source from the content-addressed store, hash-verified

10)
11
12func parseSource(source string) *ast.SourceFile {
13 return parser.ParseSourceFile(ast.SourceFileParseOptions{
14 FileName: "/test.ts",
15 }, source, core.ScriptKindTS)
16}
17
18func TestParseDataForExtendsClassCompletion_AfterDot(t *testing.T) {
19 t.Parallel()

Calls

no outgoing calls

Tested by

no test coverage detected