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

Function isJumpStatementTarget

internal/ls/utilities.go:419–421  ·  view source on GitHub ↗
(node *ast.Node)

Source from the content-addressed store, hash-verified

417}
418
419func isJumpStatementTarget(node *ast.Node) bool {
420 return node.Kind == ast.KindIdentifier && ast.IsBreakOrContinueStatement(node.Parent) && node.Parent.Label() == node
421}
422
423func isLabelOfLabeledStatement(node *ast.Node) bool {
424 return node.Kind == ast.KindIdentifier && node.Parent.Kind == ast.KindLabeledStatement && node.Parent.Label() == node

Callers 2

getLabelReferencesInNodeFunction · 0.85

Calls 2

LabelMethod · 0.80

Tested by

no test coverage detected