MCPcopy Create free account
hub / github.com/microsoft/typescript-go / putParser

Function putParser

internal/parser/parser.go:132–135  ·  view source on GitHub ↗
(p *Parser)

Source from the content-addressed store, hash-verified

130}
131
132func putParser(p *Parser) {
133 *p = Parser{scanner: p.scanner, setParentFromContext: p.setParentFromContext}
134 parserPool.Put(p)
135}
136
137func ParseSourceFile(opts ast.SourceFileParseOptions, sourceText string, scriptKind core.ScriptKind) *ast.SourceFile {
138 p := getParser()

Callers 3

ParseSourceFileFunction · 0.85
ParseIsolatedEntityNameFunction · 0.85
parseJSDocForNodeFunction · 0.85

Calls 1

PutMethod · 0.80

Tested by

no test coverage detected