SetSemantic configures the evaluation semantic for the rule.
(s SemanticType)
| 221 | |
| 222 | // SetSemantic configures the evaluation semantic for the rule. |
| 223 | func (r *Rule) SetSemantic(s SemanticType) { |
| 224 | if r.semantic != unspecified && r.semantic != s { |
| 225 | return |
| 226 | } |
| 227 | r.semantic = s |
| 228 | } |
| 229 | |
| 230 | // SourceID returns the source identifier associated with the rule. |
| 231 | func (r *Rule) SourceID() int64 { |
no outgoing calls