AlwaysFalseNode is mainly used for unit testing to make a Node immediately.
(n Node)
| 24 | |
| 25 | // AlwaysFalseNode is mainly used for unit testing to make a Node immediately. |
| 26 | func AlwaysFalseNode(n Node) Node { |
| 27 | return alwaysFalse{ |
| 28 | InnerNode: n, |
| 29 | Matcher: nil, |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | // UseAs uses a type no one supports to always override with false. |
| 34 | func (alwaysFalse) UseAs() Node { return alwaysFalse{} } |
no outgoing calls