(name string)
| 201 | } |
| 202 | |
| 203 | func (f *function) CheckRepeatedLabel(name string) { |
| 204 | for _, l := range f.p.activeLabels[f.block.firstLabel:] { |
| 205 | if l.name == name { |
| 206 | f.semanticError(fmt.Sprintf("label '%s' already defined on line %d", name, l.line)) |
| 207 | } |
| 208 | } |
| 209 | } |
| 210 | |
| 211 | func (f *function) FindGotos(label int) { |
| 212 | for i, l := f.block.firstGoto, f.p.activeLabels[label]; i < len(f.p.pendingGotos); { |
no test coverage detected