diff options
author | Teddy Wing | 2023-05-21 16:33:45 +0200 |
---|---|---|
committer | Teddy Wing | 2023-05-21 16:33:45 +0200 |
commit | 7ebe549a730f5b6201e13206969986e62d39afb0 (patch) | |
tree | a08a28f954c13e9f73f4afe1a3e8f46d9e2c8d56 /testdata | |
parent | 9e99cd0a6f42a7f7ceba89884d231eaf386a08f6 (diff) | |
download | godefererr-7ebe549a730f5b6201e13206969986e62d39afb0.tar.bz2 |
Correctly `setFirstErrorDeferEndPos` for `doesDeclareErrInSignature`
Since `ident.Obj.Decl` is a `*ast.ValueSpec` in
`shouldDeclareErrInSignature` but a `*ast.Field` in
`doesDeclareErrInSignature`, we need to handle both declaration types.
Turn the value into an `ast.Node`, which covers both, and use that to
determine whether the variable is declared in the closure.
Diffstat (limited to 'testdata')
0 files changed, 0 insertions, 0 deletions