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

Method LA

parser/input.go:38–50  ·  view source on GitHub ↗

LA implements (antlr.CharStream).LA.

(offset int)

Source from the content-addressed store, hash-verified

36
37// LA implements (antlr.CharStream).LA.
38func (c *charStream) LA(offset int) int {
39 if offset == 0 {
40 return 0
41 }
42 if offset < 0 {
43 offset++
44 }
45 pos := c.pos + offset - 1
46 if pos < 0 || pos >= c.buf.Len() {
47 return antlr.TokenEOF
48 }
49 return int(c.buf.Get(pos))
50}
51
52// LT mimics (*antlr.InputStream).LT.
53func (c *charStream) LT(offset int) int {

Callers 15

LTMethod · 0.95
ExprMethod · 0.80
ConditionalOrMethod · 0.80
ConditionalAndMethod · 0.80
relationMethod · 0.80
calcMethod · 0.80
UnaryMethod · 0.80
memberMethod · 0.80
PrimaryMethod · 0.80
ExprListMethod · 0.80
OptFieldMethod · 0.80
EscapeIdentMethod · 0.80

Calls 2

LenMethod · 0.65
GetMethod · 0.65

Tested by

no test coverage detected