(node *ast.MappingNode)
| 139 | } |
| 140 | |
| 141 | func declarations(node *ast.MappingNode) []*token.Token { |
| 142 | tokens := []*token.Token{} |
| 143 | for _, serviceNode := range node.Values { |
| 144 | tokens = append(tokens, resolveAnchor(serviceNode.Key).GetToken()) |
| 145 | } |
| 146 | return tokens |
| 147 | } |
| 148 | |
| 149 | func findFragments(node ast.Node, anchors []*ast.AnchorNode, aliases []*ast.AliasNode) ([]*ast.AnchorNode, []*ast.AliasNode) { |
| 150 | if anchor, ok := node.(*ast.AnchorNode); ok { |
no test coverage detected