-
Couldn't load subscription status.
- Fork 10
Closed
Description
Lines 33 to 36 in 84af658
| if (!code.includes('func '+funcname)) { | |
| setMessageBox('GOFUNCNAME does not exist in your code.', false) | |
| return | |
| } |
Currently 'func '+funcname cannot cover the case of anonymous functions.
Eg, in following code func() {x++} can be resolved by GOSSAFUNC=main.func1.
func main() { var x int go func() { x++ }() }And there are more complicated cases (such as nested anonymous functions),
I think before further code analysis is integrated in frontend, it's better to temporarily remove this.
Metadata
Metadata
Assignees
Labels
No labels