x/tools/go/packages: document whether Package.GoFiles and Package.Syntax contain the files in the same order #26915
Labels
Documentation
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
The documentation for packages.Package.GoFiles says:
The documentation for packages.Package.Syntax says:
Are these always going to be in the same order?
Specifically, I'm trying to alter the contents of an
*ast.File
and write it back to disk. How can I get the filename of the abstract syntax tree I am trying to use?The text was updated successfully, but these errors were encountered: