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

Function volumeToken

internal/compose/documentHighlight.go:93–103  ·  view source on GitHub ↗
(t *token.Token)

Source from the content-addressed store, hash-verified

91}
92
93func volumeToken(t *token.Token) *token.Token {
94 idx := strings.Index(t.Value, ":")
95 if idx != -1 {
96 return &token.Token{
97 Type: t.Type,
98 Value: t.Value[0:idx],
99 Position: t.Position,
100 }
101 }
102 return t
103}
104
105func volumeReferences(servicesNode *ast.MappingNode) []*token.Token {
106 tokens := []*token.Token{}

Callers 1

volumeReferencesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected