(folderAbsolutePath string, wslDollarSign bool, serviceNode *ast.MappingValueNode, parent, child string)
| 59 | } |
| 60 | |
| 61 | func createdNestedLink(folderAbsolutePath string, wslDollarSign bool, serviceNode *ast.MappingValueNode, parent, child string) *protocol.DocumentLink { |
| 62 | if resolveAnchor(serviceNode.Key).GetToken().Value == parent { |
| 63 | if mappingNode, ok := resolveAnchor(serviceNode.Value).(*ast.MappingNode); ok { |
| 64 | for _, buildAttribute := range mappingNode.Values { |
| 65 | if resolveAnchor(buildAttribute.Key).GetToken().Value == child { |
| 66 | return createFileLink(folderAbsolutePath, wslDollarSign, buildAttribute) |
| 67 | } |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 | return nil |
| 72 | } |
| 73 | |
| 74 | func createImageLink(serviceNode *ast.MappingValueNode) *protocol.DocumentLink { |
| 75 | if resolveAnchor(serviceNode.Key).GetToken().Value == "image" { |
no test coverage detected