]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types2: review of pos.go and move into syntax package
authorRobert Griesemer <gri@golang.org>
Mon, 29 Mar 2021 22:15:56 +0000 (15:15 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 6 Apr 2021 18:57:04 +0000 (18:57 +0000)
commit93466cc1b697836200e73bb103522324d38e894f
treeec8e32fa317b4bdf994d192c79b61798e055aa21
parentd57189e92b9b4cd6909aefbcee02e9cb6fc05cff
cmd/compile/internal/types2: review of pos.go and move into syntax package

This moves the two helper functions startPos and endPos into
the syntax package where they belong. Export the functions and
adjust dependent code.

Change-Id: I8170faeadd7cfa8f53009f81fcffd50ec0fc6a98
Reviewed-on: https://go-review.googlesource.com/c/go/+/305578
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/syntax/positions.go [moved from src/cmd/compile/internal/types2/pos.go with 52% similarity]
src/cmd/compile/internal/types2/assignments.go
src/cmd/compile/internal/types2/decl.go
src/cmd/compile/internal/types2/errors.go
src/cmd/compile/internal/types2/expr.go
src/cmd/compile/internal/types2/labels.go
src/cmd/compile/internal/types2/resolver.go
src/cmd/compile/internal/types2/stmt.go
src/cmd/compile/internal/types2/typexpr.go