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

Function findModifier

internal/ls/documenthighlights.go:745–752  ·  view source on GitHub ↗
(node *ast.Node, kind ast.Kind)

Source from the content-addressed store, hash-verified

743}
744
745func findModifier(node *ast.Node, kind ast.Kind) *ast.Node {
746 for _, modifier := range node.ModifierNodes() {
747 if modifier.Kind == kind {
748 return modifier
749 }
750 }
751 return nil
752}

Callers 1

getModifierOccurrencesFunction · 0.85

Calls 1

ModifierNodesMethod · 0.80

Tested by

no test coverage detected