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

Method newID

parser/helper.go:140–145  ·  view source on GitHub ↗
(ctx any)

Source from the content-addressed store, hash-verified

138}
139
140func (p *parserHelper) newID(ctx any) int64 {
141 if id, isID := ctx.(int64); isID {
142 return id
143 }
144 return p.id(ctx)
145}
146
147func (p *parserHelper) newExpr(ctx any) ast.Expr {
148 return p.exprFactory.NewUnspecifiedExpr(p.newID(ctx))

Callers 14

newLiteralMethod · 0.95
newIdentMethod · 0.95
newSelectMethod · 0.95
newPresenceTestMethod · 0.95
newGlobalCallMethod · 0.95
newReceiverCallMethod · 0.95
newListMethod · 0.95
newMapMethod · 0.95
newObjectMethod · 0.95
newComprehensionMethod · 0.95
newExprMethod · 0.95

Calls 1

idMethod · 0.95

Tested by

no test coverage detected