Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
go/ast: the position of "range" keyword is lost during parsing #13590
Although the AST does not record the entire concrete syntax, it does record most of the important tokens. The position of the "range" token can't be reliably reconstructed from an ast.RangeStmt, and I need to use it to indicate the location of an implicit channel receive operation. I propose to add a 'Range token.Pos' field to ast.RangeStmt and set it in the parser.