]> Cypherpunks repositories - gostls13.git/commit
text/template: remove unnecessary lexer field
authorAriel Mashraki <ariel@mashraki.co.il>
Sat, 1 Jul 2017 16:12:59 +0000 (19:12 +0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 10 Nov 2017 04:13:30 +0000 (04:13 +0000)
commit3e97c42f77288b06a125cecd199aee4c6a23bc10
tree7c667e9886eb9103cbf59e9b712160640b6650df
parentd58bf64d5acbcad1ae5b605228ce51038d4df631
text/template: remove unnecessary lexer field

this change removes the state field from the lexer,
because it's only used by the run method and can be
replaced with a local variable

Change-Id: Ib7a90ab6e9a894716cba2c7d9ed71bf2ad1240c0
Reviewed-on: https://go-review.googlesource.com/47338
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/text/template/parse/lex.go