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

Method AddIdent

checker/scopes.go:73–75  ·  view source on GitHub ↗

AddIdent adds the ident Decl in the current scope. Note: If the name collides with an existing identifier in the scope, the Decl is overwritten.

(decl *decls.VariableDecl)

Source from the content-addressed store, hash-verified

71// AddIdent adds the ident Decl in the current scope.
72// Note: If the name collides with an existing identifier in the scope, the Decl is overwritten.
73func (s *Scopes) AddIdent(decl *decls.VariableDecl) {
74 s.scopes.idents[decl.Name()] = decl
75}
76
77// FindIdent finds the first ident Decl with a matching name in Scopes, or nil if one cannot be
78// found.

Callers 1

addIdentMethod · 0.80

Calls 1

NameMethod · 0.65

Tested by

no test coverage detected