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

Method internIdentifier

internal/parser/parser.go:5906–5916  ·  view source on GitHub ↗
(text string)

Source from the content-addressed store, hash-verified

5904}
5905
5906func (p *Parser) internIdentifier(text string) string {
5907 if identifier, ok := p.identifiers[text]; ok {
5908 return identifier
5909 }
5910 identifier := text
5911 if p.identifiers == nil {
5912 p.identifiers = make(map[string]string)
5913 }
5914 p.identifiers[identifier] = identifier
5915 return identifier
5916}
5917
5918func (p *Parser) newNodeList(loc core.TextRange, nodes []*ast.Node) *ast.NodeList {
5919 list := p.factory.NewNodeList(nodes)

Calls 1

makeFunction · 0.50

Tested by

no test coverage detected