aboutsummaryrefslogtreecommitdiffstats
path: root/gocapturedrefrace.go
AgeCommit message (Collapse)Author
2023-05-15Get assignments in closureTeddy Wing
Turns out this isn't what we want, as assignments means assignments. I was actually thinking of declarations.
2023-05-15Idea for building a list of variable assignmentsTeddy Wing
2023-05-15Ignore variables from the closure's formal argumentsTeddy Wing
Don't report variables that were passed as arguments to the closure.
2023-05-15Find out how to get closure argumentsTeddy Wing
2023-05-15Ideas for finding out whether a variable is a captured referenceTeddy Wing
2023-05-15Try to limit identifier enumeration to variablesTeddy Wing
This does ignore "strings" and "Repeat" in the "simple.go" test file.
2023-05-15Find variables in `go func` closuresTeddy Wing
Inspect function literals run by `go` statements, and find all variables in those function literals.
2023-05-14Find `go` statements using Go analyzerTeddy Wing
Build a basic Go analyser that finds `go` statements. Currently testing this with: $ go run ./cmd/gocapturedrefrace ./testdata/ Using the following tutorials as a guide: * https://arslan.io/2019/06/13/using-go-analysis-to-write-a-custom-linter/ * https://scribe.rip/codex/writing-custom-linter-in-go-54ef6f8080