This test verifies the fix for the crash encountered in golang/go#44806.

-- go.mod --
module mod.test/symbol

go 1.18
-- symbol.go --
package symbol

//@workspacesymbol("M", M)

type T struct{}

// We should accept all valid receiver syntax when scanning symbols.
func (*(T)) M1() {}
func (*T) M2()   {}
func (T) M3()    {}
func ((T)) M4()    {}
func ((*T)) M5()   {}

-- @M --
symbol.go:8:13-15 T.M1 Method
symbol.go:9:11-13 T.M2 Method
symbol.go:10:10-12 T.M3 Method
symbol.go:11:12-14 T.M4 Method
symbol.go:12:13-15 T.M5 Method
symbol.go:5:6-7 symbol.T Struct
