Skip to content

go/ast Object is deprecated #1456

@oittaa

Description

@oittaa

While exploring how this tool works and fixing issues I noticed that Go had deprecated the use of ast.Object https://pkg.go.dev/go/ast#Object

I have no idea how fast Go removes features from these packages that have been deprecated, but I think it would make sense to try to remove the use of ast.Object at some point. There's a draft pull request that fixes all the ones I could find, but there might be some harder to detect usages elsewhere. Additionally I fixed TODOs from tls.go and added new tests for those.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions