MCPcopy Create free account
hub / github.com/crossoverJie/gscript / NewStmIfElseContext

Function NewStmIfElseContext

parser/gscript_parser.go:4976–4984  ·  view source on GitHub ↗
(parser antlr.Parser, ctx antlr.ParserRuleContext)

Source from the content-addressed store, hash-verified

4974}
4975
4976func NewStmIfElseContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *StmIfElseContext {
4977 var p = new(StmIfElseContext)
4978
4979 p.StatementContext = NewEmptyStatementContext()
4980 p.parser = parser
4981 p.CopyFrom(ctx.(*StatementContext))
4982
4983 return p
4984}
4985
4986func (s *StmIfElseContext) GetRuleContext() antlr.RuleContext {
4987 return s

Callers 1

StatementMethod · 0.85

Calls 2

NewEmptyStatementContextFunction · 0.85
CopyFromMethod · 0.45

Tested by

no test coverage detected