summaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/gc/syntax.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2017-01-11 15:48:30 -0800
committerMatthew Dempsky <mdempsky@google.com>2017-01-13 23:07:14 +0000
commitec63158d7104ab6eb3765f7d4ea48744f97d9ff9 (patch)
tree4148adfb7821e413a15518b2d3a7a35e3c821d7a /src/cmd/compile/internal/gc/syntax.go
parentb90aed020dc9bd430c9a451386550d26c2355ea5 (diff)
downloadgo-git-dev.inline.tar.gz
[dev.inline] cmd/compile: parse source files concurrentlydev.inline
Conversion to Nodes still happens sequentially at the moment. Change-Id: I3407ba0711b8b92e22ece0a06fefaff863c3ccc9 Reviewed-on: https://go-review.googlesource.com/35126 Run-TryBot: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Robert Griesemer <gri@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/gc/syntax.go')
-rw-r--r--src/cmd/compile/internal/gc/syntax.go17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/cmd/compile/internal/gc/syntax.go b/src/cmd/compile/internal/gc/syntax.go
index 8be9f21df2..3039aeb402 100644
--- a/src/cmd/compile/internal/gc/syntax.go
+++ b/src/cmd/compile/internal/gc/syntax.go
@@ -6,7 +6,10 @@
package gc
-import "cmd/internal/src"
+import (
+ "cmd/compile/internal/syntax"
+ "cmd/internal/src"
+)
// A Node is a single node in the syntax tree.
// Actually the syntax tree is a syntax DAG, because there is only one
@@ -285,7 +288,7 @@ type Param struct {
// OTYPE pragmas
//
// TODO: Should Func pragmas also be stored on the Name?
- Pragma Pragma
+ Pragma syntax.Pragma
}
// Func holds Node fields used only with function-like nodes.
@@ -313,11 +316,11 @@ type Func struct {
Endlineno src.XPos
WBPos src.XPos // position of first write barrier
- Pragma Pragma // go:xxx function annotations
- Dupok bool // duplicate definitions ok
- Wrapper bool // is method wrapper
- Needctxt bool // function uses context register (has closure variables)
- ReflectMethod bool // function calls reflect.Type.Method or MethodByName
+ Pragma syntax.Pragma // go:xxx function annotations
+ Dupok bool // duplicate definitions ok
+ Wrapper bool // is method wrapper
+ Needctxt bool // function uses context register (has closure variables)
+ ReflectMethod bool // function calls reflect.Type.Method or MethodByName
IsHiddenClosure bool
NoFramePointer bool // Must not use a frame pointer for this function
}