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

Method VarDecl

repl/parser/commands_parser.go:1048–1062  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1046}
1047
1048func (s *LetContext) VarDecl() IVarDeclContext {
1049 var t antlr.RuleContext
1050 for _, ctx := range s.GetChildren() {
1051 if _, ok := ctx.(IVarDeclContext); ok {
1052 t = ctx.(antlr.RuleContext)
1053 break
1054 }
1055 }
1056
1057 if t == nil {
1058 return nil
1059 }
1060
1061 return t.(IVarDeclContext)
1062}
1063
1064func (s *LetContext) FnDecl() IFnDeclContext {
1065 var t antlr.RuleContext

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected