summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorAlan Donovan <adonovan@google.com>2023-02-01 14:15:41 -0500
committerAlan Donovan <adonovan@google.com>2023-02-02 16:40:29 +0000
commit18772915a1b9ca211a4bb707de59ee0941b4773b (patch)
treed9bfbc96282c4738c12fb61ff1aa2079fa3ab5c9 /api
parentcb3c50db2256ddad6fb2e7474b4052c6b2ca4bf1 (diff)
downloadgo-git-18772915a1b9ca211a4bb707de59ee0941b4773b.tar.gz
go/token: add (*File).Lines method
This method returns the array updated by SetLines, for use in exporter packages. Fixes #57708 Change-Id: I12ed5e7e1bae7517f40cb25e76e51997c25d84f4 Reviewed-on: https://go-review.googlesource.com/c/go/+/464515 Reviewed-by: Robert Griesemer <gri@google.com> Reviewed-by: Robert Findley <rfindley@google.com> Run-TryBot: Alan Donovan <adonovan@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Alan Donovan <adonovan@google.com>
Diffstat (limited to 'api')
-rw-r--r--api/next/57708.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/next/57708.txt b/api/next/57708.txt
new file mode 100644
index 0000000000..c7389adbd0
--- /dev/null
+++ b/api/next/57708.txt
@@ -0,0 +1 @@
+pkg go/token, method (*File) Lines() []int #57708