()
| 1018 | func (s *ConditionalAndContext) SetE1(v []IRelationContext) { s.e1 = v } |
| 1019 | |
| 1020 | func (s *ConditionalAndContext) AllRelation() []IRelationContext { |
| 1021 | children := s.GetChildren() |
| 1022 | len := 0 |
| 1023 | for _, ctx := range children { |
| 1024 | if _, ok := ctx.(IRelationContext); ok { |
| 1025 | len++ |
| 1026 | } |
| 1027 | } |
| 1028 | |
| 1029 | tst := make([]IRelationContext, len) |
| 1030 | i := 0 |
| 1031 | for _, ctx := range children { |
| 1032 | if t, ok := ctx.(IRelationContext); ok { |
| 1033 | tst[i] = t.(IRelationContext) |
| 1034 | i++ |
| 1035 | } |
| 1036 | } |
| 1037 | |
| 1038 | return tst |
| 1039 | } |
| 1040 | |
| 1041 | func (s *ConditionalAndContext) Relation(i int) IRelationContext { |
| 1042 | var t antlr.RuleContext |
nothing calls this directly
no outgoing calls
no test coverage detected