MCPcopy Create free account
hub / github.com/cel-expr/cel-go / GetText

Method GetText

parser/input.go:94–102  ·  view source on GitHub ↗

GetText implements (antlr.CharStream).GetText.

(start, stop int)

Source from the content-addressed store, hash-verified

92
93// GetText implements (antlr.CharStream).GetText.
94func (c *charStream) GetText(start, stop int) string {
95 if stop >= c.buf.Len() {
96 stop = c.buf.Len() - 1
97 }
98 if start >= c.buf.Len() {
99 return ""
100 }
101 return c.buf.Slice(start, stop+1)
102}
103
104// GetTextFromTokens implements (antlr.CharStream).GetTextFromTokens.
105func (c *charStream) GetTextFromTokens(start, stop antlr.Token) string {

Callers 15

GetTextFromTokensMethod · 0.95
GetTextFromIntervalMethod · 0.95
idMethod · 0.80
normalizeIdentMethod · 0.80
VisitRelationMethod · 0.80
VisitCalcMethod · 0.80
VisitMemberCallMethod · 0.80
VisitCreateMessageMethod · 0.80
VisitIdentMethod · 0.80
VisitGlobalCallMethod · 0.80
VisitIntMethod · 0.80
VisitUintMethod · 0.80

Calls 2

LenMethod · 0.65
SliceMethod · 0.65

Tested by

no test coverage detected