(t *token.Token)
| 91 | } |
| 92 | |
| 93 | func 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 | |
| 105 | func volumeReferences(servicesNode *ast.MappingNode) []*token.Token { |
| 106 | tokens := []*token.Token{} |