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

Method DisplayString

ast/temporal.go:499–504  ·  view source on GitHub ↗

DisplayString returns a string representation of the temporal atom using unescaped constants.

()

Source from the content-addressed store, hash-verified

497
498// DisplayString returns a string representation of the temporal atom using unescaped constants.
499func (ta TemporalAtom) DisplayString() string {
500 if ta.Interval == nil || ta.Interval.IsEternal() {
501 return ta.Atom.DisplayString()
502 }
503 return ta.Atom.DisplayString() + ta.Interval.String()
504}
505
506// Equals returns true if two temporal atoms are equal.
507func (ta TemporalAtom) Equals(u Term) bool {

Callers

nothing calls this directly

Calls 2

IsEternalMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected