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

Function createFileLink

internal/compose/documentLink.go:46–52  ·  view source on GitHub ↗
(folderAbsolutePath string, wslDollarSign bool, serviceNode *ast.MappingValueNode)

Source from the content-addressed store, hash-verified

44}
45
46func createFileLink(folderAbsolutePath string, wslDollarSign bool, serviceNode *ast.MappingValueNode) *protocol.DocumentLink {
47 attributeValue := stringNode(serviceNode.Value)
48 if attributeValue != nil {
49 return createLink(folderAbsolutePath, wslDollarSign, attributeValue.GetToken())
50 }
51 return nil
52}
53
54func stringNode(value ast.Node) *ast.StringNode {
55 if s, ok := resolveAnchor(value).(*ast.StringNode); ok {

Callers 3

createdNestedLinkFunction · 0.85
createFileLinksFunction · 0.85
createObjectFileLinkFunction · 0.85

Calls 2

stringNodeFunction · 0.85
createLinkFunction · 0.85

Tested by

no test coverage detected