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

Function DocumentHighlight

internal/compose/documentHighlight.go:273–279  ·  view source on GitHub ↗
(doc document.ComposeDocument, position protocol.Position)

Source from the content-addressed store, hash-verified

271}
272
273func DocumentHighlight(doc document.ComposeDocument, position protocol.Position) ([]protocol.DocumentHighlight, error) {
274 _, references := DocumentHighlights(doc, position)
275 if len(references.documentHighlights) == 0 {
276 return nil, nil
277 }
278 return references.documentHighlights, nil
279}
280
281func convertTopLevelNode(node *ast.MappingValueNode) (*ast.StringNode, *ast.MappingNode) {
282 if s, ok := resolveAnchor(node.Key).(*ast.StringNode); ok {

Calls 1

DocumentHighlightsFunction · 0.85