mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: stop representing keywords as Syms
Instead add a dedicated keywords map for use in lexer.ident and drop Sym's Lexical field. Change-Id: Ia668e65499035ff7167fabbbd0cd027102b21231 Reviewed-on: https://go-review.googlesource.com/19935 Reviewed-by: Robert Griesemer <gri@golang.org> Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
af558acc47
commit
071e43a958
3 changed files with 104 additions and 110 deletions
|
|
@ -122,10 +122,9 @@ type Pkg struct {
|
|||
}
|
||||
|
||||
type Sym struct {
|
||||
Lexical uint16
|
||||
Flags uint8
|
||||
Link *Sym
|
||||
Uniqgen uint32
|
||||
Link *Sym
|
||||
Importdef *Pkg // where imported definition was found
|
||||
Linkname string // link name
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue