rename parseOneAsync to openAndParse
Bug: 65683273
Test: build/soong/scripts/diff_build_graphs.sh \
'build/blueprint:work^^^' 'build/blueprint:work'
Change-Id: I56e08716057c3746b01b7a5e43f0223ee1f940db
diff --git a/context.go b/context.go
index c9a36b8..b3cbe9e 100644
--- a/context.go
+++ b/context.go
@@ -721,12 +721,12 @@
}
blueprintsSet := make(map[string]bool)
- // Channels to receive data back from parseOneAsync goroutines
+ // Channels to receive data back from openAndParse goroutines
blueprintsCh := make(chan fileParseContext)
errsCh := make(chan []error)
depsCh := make(chan string)
- // Channel to notify main loop that a parseOneAsync goroutine has finished
+ // Channel to notify main loop that a openAndParse goroutine has finished
doneParsingCh := make(chan fileParseContext)
// Number of outstanding goroutines to wait for
@@ -750,7 +750,7 @@
deps = append(deps, blueprint.fileName)
visitorWaitGroup.Add(1)
go func() {
- file := c.parseOneAsync(blueprint.fileName, blueprint.Scope, rootDir,
+ file := c.openAndParse(blueprint.fileName, blueprint.Scope, rootDir,
errsCh, blueprintsCh, depsCh, &blueprint)
doneParsingCh <- blueprint
@@ -854,13 +854,13 @@
c.fs = pathtools.MockFs(files)
}
-// parseOneAsync parses a single Blueprints file, and sends results through the provided channels
+// openAndParse parses a single Blueprints file, and sends results through the provided channels
//
// Errors are returned through errsCh.
// Any defined modules are returned through modulesCh.
// Any sub-Blueprints files are returned through blueprintsCh.
// Any dependencies on Blueprints files or directories are returned through depsCh.
-func (c *Context) parseOneAsync(filename string, scope *parser.Scope, rootDir string,
+func (c *Context) openAndParse(filename string, scope *parser.Scope, rootDir string,
errsCh chan<- []error, blueprintsCh chan<- fileParseContext,
depsCh chan<- string, parent *fileParseContext) (file *parser.File) {