]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: add doc comment to the parseFiles function
authorYury Smolsky <yury@smolsky.by>
Sun, 10 Jun 2018 07:26:40 +0000 (10:26 +0300)
committerRobert Griesemer <gri@golang.org>
Mon, 11 Jun 2018 17:27:48 +0000 (17:27 +0000)
Change-Id: Ifa14557ba834865602c207297ccf0c63e93feb4c
Reviewed-on: https://go-review.googlesource.com/117695
Run-TryBot: Yury Smolsky <yury@smolsky.by>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/noder.go

index ec1654b83f6521ea9c0592e597d498e631cca1d3..8a42fcefd1f2e548b110847ee03924993e087bfb 100644 (file)
@@ -19,6 +19,10 @@ import (
        "cmd/internal/src"
 )
 
+// parseFiles concurrently parses files into *syntax.File structures.
+// Each declaration in every *syntax.File is converted to a syntax tree
+// and its root represented by *Node is appended to xtop.
+// Returns the total count of parsed lines.
 func parseFiles(filenames []string) uint {
        var noders []*noder
        // Limit the number of simultaneously open files.