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

Function IsLabelName

internal/ast/utilities.go:2244–2246  ·  view source on GitHub ↗
(node *Node)

Source from the content-addressed store, hash-verified

2242}
2243
2244func IsLabelName(node *Node) bool {
2245 return IsLabelOfLabeledStatement(node) || IsJumpStatementTarget(node)
2246}
2247
2248func IsLabelOfLabeledStatement(node *Node) bool {
2249 if !IsIdentifier(node) {

Callers 4

getRenameInfoForNodeMethod · 0.92
shouldGetTypeFunction · 0.92
fallbackVisitorMethod · 0.92
writeTypeOrSymbolMethod · 0.92

Calls 2

IsJumpStatementTargetFunction · 0.85

Tested by

no test coverage detected