()
| 4976 | func (s *ConditionalAndContext) SetE1(v []IRelationContext) { s.e1 = v } |
| 4977 | |
| 4978 | func (s *ConditionalAndContext) AllRelation() []IRelationContext { |
| 4979 | children := s.GetChildren() |
| 4980 | len := 0 |
| 4981 | for _, ctx := range children { |
| 4982 | if _, ok := ctx.(IRelationContext); ok { |
| 4983 | len++ |
| 4984 | } |
| 4985 | } |
| 4986 | |
| 4987 | tst := make([]IRelationContext, len) |
| 4988 | i := 0 |
| 4989 | for _, ctx := range children { |
| 4990 | if t, ok := ctx.(IRelationContext); ok { |
| 4991 | tst[i] = t.(IRelationContext) |
| 4992 | i++ |
| 4993 | } |
| 4994 | } |
| 4995 | |
| 4996 | return tst |
| 4997 | } |
| 4998 | |
| 4999 | func (s *ConditionalAndContext) Relation(i int) IRelationContext { |
| 5000 | var t antlr.RuleContext |
nothing calls this directly
no outgoing calls
no test coverage detected