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

Method Label

internal/ast/ast.go:953–963  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

951}
952
953func (n *Node) Label() *Node {
954 switch n.Kind {
955 case KindLabeledStatement:
956 return n.AsLabeledStatement().Label
957 case KindBreakStatement:
958 return n.AsBreakStatement().Label
959 case KindContinueStatement:
960 return n.AsContinueStatement().Label
961 }
962 panic("Unhandled case in Node.Label: " + n.Kind.String())
963}
964
965func (n *Node) Attributes() *Node {
966 switch n.Kind {

Callers 12

isJumpStatementTargetFunction · 0.80
getTargetLabelFunction · 0.80
getBreakOrContinueOwnerFunction · 0.80
isLabeledByFunction · 0.80
checkLabeledStatementMethod · 0.80
IsJumpStatementTargetFunction · 0.80
bindBreakStatementMethod · 0.80
bindContinueStatementMethod · 0.80

Calls 5

AsLabeledStatementMethod · 0.95
AsBreakStatementMethod · 0.95
AsContinueStatementMethod · 0.95
panicFunction · 0.85
StringMethod · 0.65

Tested by

no test coverage detected