MCPcopy
hub / github.com/google/mangle / IsTemporal

Method IsTemporal

ast/decl.go:120–122  ·  view source on GitHub ↗

IsTemporal returns true if decl is for a temporal predicate. Temporal predicates have facts with validity intervals.

()

Source from the content-addressed store, hash-verified

118// IsTemporal returns true if decl is for a temporal predicate.
119// Temporal predicates have facts with validity intervals.
120func (d Decl) IsTemporal() bool {
121 return d.findDescr(DescrTemporal, nil)
122}
123
124// IsMaybeTemporal returns true if decl is for a predicate that might be temporal.
125func (d Decl) IsMaybeTemporal() bool {

Callers 5

TestParseTemporalDeclFunction · 0.95
EnsureDeclMethod · 0.80
CheckRuleMethod · 0.80
CheckTemporalRecursionFunction · 0.80

Calls 1

findDescrMethod · 0.95

Tested by 2

TestParseTemporalDeclFunction · 0.76