aboutsummaryrefslogtreecommitdiffstats
path: root/testdata
diff options
context:
space:
mode:
authorTeddy Wing2023-05-21 16:33:45 +0200
committerTeddy Wing2023-05-21 16:33:45 +0200
commit7ebe549a730f5b6201e13206969986e62d39afb0 (patch)
treea08a28f954c13e9f73f4afe1a3e8f46d9e2c8d56 /testdata
parent9e99cd0a6f42a7f7ceba89884d231eaf386a08f6 (diff)
downloadgodefererr-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