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

Function NewVariableBound

ast/temporal.go:185–190  ·  view source on GitHub ↗

NewVariableBound creates a bound from a variable.

(v Variable)

Source from the content-addressed store, hash-verified

183
184// NewVariableBound creates a bound from a variable.
185func NewVariableBound(v Variable) TemporalBound {
186 return TemporalBound{
187 Type: VariableBound,
188 Variable: v,
189 }
190}
191
192// NegativeInfinity returns a bound representing negative infinity.
193func NegativeInfinity() TemporalBound {

Callers 12

VisitTemporalBoundMethod · 0.92
TestParseTemporalFactFunction · 0.92
TestParseTemporalRuleFunction · 0.92
TestIntervalString_PointFunction · 0.85
TestTemporalBoundFunction · 0.85
TestTemporalBoundEqualsFunction · 0.85
TestIntervalFunction · 0.85
ApplySubstMethod · 0.85

Calls

no outgoing calls

Tested by 10

TestParseTemporalFactFunction · 0.74
TestParseTemporalRuleFunction · 0.74
TestIntervalString_PointFunction · 0.68
TestTemporalBoundFunction · 0.68
TestTemporalBoundEqualsFunction · 0.68
TestIntervalFunction · 0.68