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

Method newIdentifier

internal/checker/nodebuilderimpl.go:3514–3520  ·  view source on GitHub ↗
(text string, symbol *ast.Symbol)

Source from the content-addressed store, hash-verified

3512}
3513
3514func (b *NodeBuilderImpl) newIdentifier(text string, symbol *ast.Symbol) *ast.Node {
3515 id := b.f.NewIdentifier(text)
3516 if symbol != nil {
3517 b.idToSymbol[id] = symbol
3518 }
3519 return id
3520}
3521
3522func (b *NodeBuilderImpl) createAccessExpression(node *ast.Node) *ast.Expression {
3523 switch {

Calls 1

NewIdentifierMethod · 0.80

Tested by

no test coverage detected