CompileAll is called on the top-level Rule to compile all nodes it calls SetRuleMap first. Returns true if everything is ok, false if there were compile errors
(ps *State)
| 223 | // it calls SetRuleMap first. |
| 224 | // Returns true if everything is ok, false if there were compile errors |
| 225 | func (pr *Rule) CompileAll(ps *State) bool { |
| 226 | pr.SetRuleMap(ps) |
| 227 | allok := true |
| 228 | pr.WalkDown(func(k tree.Node) bool { |
| 229 | pri := k.(*Rule) |
| 230 | ok := pri.Compile(ps) |
| 231 | if !ok { |
| 232 | allok = false |
| 233 | } |
| 234 | return true |
| 235 | }) |
| 236 | return allok |
| 237 | } |
| 238 | |
| 239 | // Compile compiles string rules into their runnable elements. |
| 240 | // Returns true if everything is ok, false if there were compile errors. |
nothing calls this directly
no test coverage detected