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

Function networkHover

internal/compose/hover.go:146–154  ·  view source on GitHub ↗
(doc document.ComposeDocument, mappingNode *ast.MappingNode, nodePath []ast.Node)

Source from the content-addressed store, hash-verified

144}
145
146func networkHover(doc document.ComposeDocument, mappingNode *ast.MappingNode, nodePath []ast.Node) *protocol.Hover {
147 if len(nodePath) == 4 && nodePath[0].GetToken().Value == "services" {
148 if nodePath[2].GetToken().Value == "networks" {
149 t := nodePath[3].GetToken()
150 return createDependencyHover(doc, mappingNode, t, "networks", t.Value)
151 }
152 }
153 return nil
154}
155
156func configHover(doc document.ComposeDocument, mappingNode *ast.MappingNode, nodePath []ast.Node) *protocol.Hover {
157 if len(nodePath) == 4 && nodePath[0].GetToken().Value == "services" {

Callers 1

HoverFunction · 0.85

Calls 1

createDependencyHoverFunction · 0.85

Tested by

no test coverage detected