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

Function convertTopLevelNode

internal/compose/documentHighlight.go:281–288  ·  view source on GitHub ↗
(node *ast.MappingValueNode)

Source from the content-addressed store, hash-verified

279}
280
281func convertTopLevelNode(node *ast.MappingValueNode) (*ast.StringNode, *ast.MappingNode) {
282 if s, ok := resolveAnchor(node.Key).(*ast.StringNode); ok {
283 if m, ok := resolveAnchor(node.Value).(*ast.MappingNode); ok {
284 return s, m
285 }
286 }
287 return nil, nil
288}
289
290func DocumentHighlights(doc document.ComposeDocument, position protocol.Position) (string, dependencyReference) {
291 file := doc.File()

Callers 1

DocumentHighlightsFunction · 0.85

Calls 1

resolveAnchorFunction · 0.85

Tested by

no test coverage detected