mirror of https://github.com/golang/go.git
31 lines
555 B
Plaintext
31 lines
555 B
Plaintext
-- functionextraction_extract_basic_3_10 --
|
|
package extract
|
|
|
|
func _() { //@mark(exSt25, "{")
|
|
//@mark(exSt1, "a")
|
|
newFunction() //@mark(exEn1, "4")
|
|
//@extractfunc(exSt1, exEn1)
|
|
//@extractfunc(exSt25, exEn25)
|
|
}
|
|
|
|
func newFunction() {
|
|
a := 1
|
|
_ = 3 + 4
|
|
} //@mark(exEn25, "}")
|
|
|
|
-- functionextraction_extract_basic_4_2 --
|
|
package extract
|
|
|
|
func _() { //@mark(exSt25, "{")
|
|
//@mark(exSt1, "a")
|
|
newFunction() //@mark(exEn1, "4")
|
|
//@extractfunc(exSt1, exEn1)
|
|
//@extractfunc(exSt25, exEn25)
|
|
}
|
|
|
|
func newFunction() {
|
|
a := 1
|
|
_ = 3 + 4
|
|
} //@mark(exEn25, "}")
|
|
|