summaryrefslogtreecommitdiff
path: root/src/cmd/gofmt/gofmt.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2012-01-24 16:36:20 -0800
committerRobert Griesemer <gri@golang.org>2012-01-24 16:36:20 -0800
commite7d513eab0b7a29698eb6057ec93818a10aae2a8 (patch)
tree18adf2541ba6ddbff402e080fab46b469e53affa /src/cmd/gofmt/gofmt.go
parent324513bc5f1aa44685e547fec5e04fd0b2c8af40 (diff)
downloadgo-git-e7d513eab0b7a29698eb6057ec93818a10aae2a8.tar.gz
go/parser: Use explicit parser.Mode type.
R=r, bradfitz CC=golang-dev https://golang.org/cl/5574058
Diffstat (limited to 'src/cmd/gofmt/gofmt.go')
-rw-r--r--src/cmd/gofmt/gofmt.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/gofmt/gofmt.go b/src/cmd/gofmt/gofmt.go
index 0023e2f218..6d610adc0e 100644
--- a/src/cmd/gofmt/gofmt.go
+++ b/src/cmd/gofmt/gofmt.go
@@ -44,7 +44,7 @@ var (
fset = token.NewFileSet()
exitCode = 0
rewrite func(*ast.File) *ast.File
- parserMode uint
+ parserMode parser.Mode
printerMode uint
)
@@ -60,7 +60,7 @@ func usage() {
}
func initParserMode() {
- parserMode = uint(0)
+ parserMode = parser.Mode(0)
if *comments {
parserMode |= parser.ParseComments
}