]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: simplify lexinit and lexfini
authorMatthew Dempsky <mdempsky@google.com>
Fri, 26 Feb 2016 10:10:29 +0000 (02:10 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Sat, 27 Feb 2016 01:02:25 +0000 (01:02 +0000)
commit52f099c4263f2ffd1cda777d7f6ed9689bb481a5
treeb1a762536da83f5e874de61a73429949445c85ca
parent188e3d251507adb1b2910b49a091c7ba594819b6
cmd/compile: simplify lexinit and lexfini

Split the syms array into separate basicTypes and builtinFuncs arrays.

Also, in lexfini, instead of duplicating the code from lexinit to
declare the builtin identifiers in the user package, just import them
from builtinpkg like how importdot works.

Change-Id: Ic3b3b454627a46f7bd5f290d0e31443e659d431f
Reviewed-on: https://go-review.googlesource.com/19936
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/lex.go