Error returns the error with the given name.
(name string)
| 161 | |
| 162 | // Error returns the error with the given name. |
| 163 | func (r *RootExpr) Error(name string) *ErrorExpr { |
| 164 | for _, e := range r.Errors { |
| 165 | if e.Name == name { |
| 166 | return e |
| 167 | } |
| 168 | } |
| 169 | return nil |
| 170 | } |
| 171 | |
| 172 | // EvalName is the name of the DSL. |
| 173 | func (*RootExpr) EvalName() string { |
no outgoing calls