Semantic returns the evaluation semantic for the rule.
()
| 213 | |
| 214 | // Semantic returns the evaluation semantic for the rule. |
| 215 | func (r *Rule) Semantic() SemanticType { |
| 216 | if r.semantic == unspecified { |
| 217 | return firstMatch |
| 218 | } |
| 219 | return r.semantic |
| 220 | } |
| 221 | |
| 222 | // SetSemantic configures the evaluation semantic for the rule. |
| 223 | func (r *Rule) SetSemantic(s SemanticType) { |
no outgoing calls