]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] cmd/compile: add Node field getters and setters
authorRuss Cox <rsc@golang.org>
Tue, 17 Nov 2020 16:18:45 +0000 (11:18 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 25 Nov 2020 15:08:52 +0000 (15:08 +0000)
commitd166ef6876850571d08288c63315db2b47c851f5
tree8377a9b6df21ecac2fbc7a68b8166bf2b7c6f594
parent9262909764ea63285805c87f8d41837a532fda62
[dev.regabi] cmd/compile: add Node field getters and setters

The goal is to move Node to being an interface and then break
up the one big struct into many implementations.

Step 1 is to convert all current uses of Node to only use methods,
so that the existing algorithms keep working even as the underlying
implementations are adjusted.

Step 0 - this CL - is to add the getters and setters for Step 1.

Change-Id: I0570d8727c3ccb64113627bb9bebcb0dc39da07a
Reviewed-on: https://go-review.googlesource.com/c/go/+/273007
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/syntax.go