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

Method IsEternal

ast/temporal.go:354–357  ·  view source on GitHub ↗

IsEternal returns true if this interval represents all time.

()

Source from the content-addressed store, hash-verified

352
353// IsEternal returns true if this interval represents all time.
354func (i Interval) IsEternal() bool {
355 return i.Start.Type == NegativeInfinityBound &&
356 i.End.Type == PositiveInfinityBound
357}
358
359// IsPoint returns true if this interval represents a single point in time.
360func (i Interval) IsPoint() bool {

Callers 7

StringMethod · 0.95
EnsureDeclMethod · 0.80
StringMethod · 0.80
TestIntervalFunction · 0.80
StringMethod · 0.80
DisplayStringMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestIntervalFunction · 0.64