newAxisNode returns new axis node AxisNode.
(axisType string, typeTest NodeType, localName, prefix, prop string, n node, opts ...func(p *axisNode))
| 87 | |
| 88 | // newAxisNode returns new axis node AxisNode. |
| 89 | func newAxisNode(axisType string, typeTest NodeType, localName, prefix, prop string, n node, opts ...func(p *axisNode)) node { |
| 90 | a := axisNode{ |
| 91 | nodeType: nodeAxis, |
| 92 | typeTest: typeTest, |
| 93 | LocalName: localName, |
| 94 | Prefix: prefix, |
| 95 | AxisType: axisType, |
| 96 | Prop: prop, |
| 97 | Input: n, |
| 98 | } |
| 99 | for _, o := range opts { |
| 100 | o(&a) |
| 101 | } |
| 102 | return &a |
| 103 | } |
| 104 | |
| 105 | // newVariableNode returns new variable node VariableNode. |
| 106 | func newVariableNode(prefix, name string) node { |
no outgoing calls
no test coverage detected
searching dependent graphs…