MCPcopy Create free account
hub / github.com/docker/docker-language-server / declarations

Function declarations

internal/compose/documentHighlight.go:141–147  ·  view source on GitHub ↗
(node *ast.MappingNode)

Source from the content-addressed store, hash-verified

139}
140
141func declarations(node *ast.MappingNode) []*token.Token {
142 tokens := []*token.Token{}
143 for _, serviceNode := range node.Values {
144 tokens = append(tokens, resolveAnchor(serviceNode.Key).GetToken())
145 }
146 return tokens
147}
148
149func findFragments(node ast.Node, anchors []*ast.AnchorNode, aliases []*ast.AliasNode) ([]*ast.AnchorNode, []*ast.AliasNode) {
150 if anchor, ok := node.(*ast.AnchorNode); ok {

Callers 1

DocumentHighlightsFunction · 0.85

Calls 1

resolveAnchorFunction · 0.85

Tested by

no test coverage detected