go/ast: (*ast.BasicLit).End() is wrong for raw literals with carriage returns ('\r') #69861
Labels
Documentation
Issues describing a change to documentation.
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
Same as #41197, but for
*ast.BasicLit
can happen for raw literal strings.As per the go spec:
The End pos is calculated as such:
go/src/go/ast/ast.go
Line 528 in b521ebb
We are not storing the end pos in the
*ast.BasicLit
, so it might be not accurate for raw string literals containing carriage returns.I think that same as in #41197, we should only document that.
The text was updated successfully, but these errors were encountered: