Closed
Description
A defer
or go
statement is expected to be followed by an *ast.CallExpr
. If they are not, the parser treats them as *ast.BadExpr
s, causing completion to fail. We need to handle this particular case.
Repro:
package main
import "fmt"
func main() {
defer fmt.<>
}
Triggering a completion here will result in lexical completions, rather than the expected selector completions for package "fmt".