2019-09-18 13:26:39 -06:00
|
|
|
package labels
|
|
|
|
|
|
|
|
func _() {
|
2019-10-22 15:13:24 -06:00
|
|
|
goto F //@complete(" //", label1, label5)
|
2019-09-18 13:26:39 -06:00
|
|
|
|
|
|
|
Foo1: //@item(label1, "Foo1", "label", "const")
|
2019-10-22 15:13:24 -06:00
|
|
|
for a, b := range []int{} {
|
2019-09-18 13:26:39 -06:00
|
|
|
Foo2: //@item(label2, "Foo2", "label", "const")
|
|
|
|
switch {
|
|
|
|
case true:
|
|
|
|
break F //@complete(" //", label2, label1)
|
|
|
|
|
|
|
|
continue F //@complete(" //", label1)
|
|
|
|
|
|
|
|
{
|
|
|
|
FooUnjumpable:
|
|
|
|
}
|
|
|
|
|
2019-10-22 15:13:24 -06:00
|
|
|
goto F //@complete(" //", label1, label2, label4, label5)
|
2019-09-18 13:26:39 -06:00
|
|
|
|
|
|
|
func() {
|
|
|
|
goto F //@complete(" //", label3)
|
|
|
|
|
|
|
|
break F //@complete(" //")
|
|
|
|
|
|
|
|
continue F //@complete(" //")
|
|
|
|
|
|
|
|
Foo3: //@item(label3, "Foo3", "label", "const")
|
|
|
|
}()
|
|
|
|
}
|
2019-10-22 15:13:24 -06:00
|
|
|
|
|
|
|
Foo4: //@item(label4, "Foo4", "label", "const")
|
|
|
|
switch interface{}(a).(type) {
|
|
|
|
case int:
|
|
|
|
break F //@complete(" //", label4, label1)
|
|
|
|
}
|
2019-09-18 13:26:39 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
break F //@complete(" //")
|
|
|
|
|
|
|
|
continue F //@complete(" //")
|
|
|
|
|
2019-10-22 15:13:24 -06:00
|
|
|
Foo5: //@item(label5, "Foo5", "label", "const")
|
|
|
|
for {
|
|
|
|
break F //@complete(" //", label5)
|
|
|
|
}
|
|
|
|
|
2019-09-18 13:26:39 -06:00
|
|
|
return
|
|
|
|
}
|