golang.org/x/tools/gopls@v0.15.3/internal/test/marker/testdata/stubmethods/basic_resolve.txt (about)

     1  This test exercises basic 'stub methods' functionality, with resolve support.
     2  See basic.txt for the same test without resolve support.
     3  
     4  -- capabilities.json --
     5  {
     6  	"textDocument": {
     7  		"codeAction": {
     8  			"dataSupport": true,
     9  			"resolveSupport": {
    10  				"properties": ["edit"]
    11  			}
    12  		}
    13  	}
    14  }
    15  -- go.mod --
    16  module example.com
    17  go 1.12
    18  
    19  -- a/a.go --
    20  package a
    21  
    22  type C int
    23  
    24  var _ error = C(0) //@suggestedfix(re"C.0.", re"missing method Error", stub)
    25  -- @stub/a/a.go --
    26  @@ -5 +5,5 @@
    27  +// Error implements error.
    28  +func (c C) Error() string {
    29  +	panic("unimplemented")
    30  +}
    31  +