diff options
author | Patrice Arruda <patricearruda@google.com> | 2019-03-08 13:42:29 -0800 |
---|---|---|
committer | Patrice Arruda <patricearruda@google.com> | 2019-03-08 14:17:43 -0800 |
commit | b0a40a717aa5c2faaea0c493a7d0398c9255528a (patch) | |
tree | fa723428deebcd4e2ac0bc5e5dfeea25ce08d4ba | |
parent | 5e9f9070d5eca7de4d136e6e828b3640cf26ed55 (diff) | |
download | android_build_blueprint-b0a40a717aa5c2faaea0c493a7d0398c9255528a.tar.gz android_build_blueprint-b0a40a717aa5c2faaea0c493a7d0398c9255528a.tar.bz2 android_build_blueprint-b0a40a717aa5c2faaea0c493a7d0398c9255528a.zip |
Moving the ParseBlueprintsFiles go comment in context.go.
The go comment for the blueprint.Context.ParseBlueprintsFiles was
actually place above the blueprint.Context.ParseFileList.
Bug: N/A
Test: N/A
Change-Id: I065d2f6ec034c614e40de745931f4c87cdb73422
-rw-r--r-- | context.go | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -604,15 +604,6 @@ type fileParseContext struct { doneVisiting chan struct{} } -func (c *Context) ParseBlueprintsFiles(rootFile string) (deps []string, errs []error) { - baseDir := filepath.Dir(rootFile) - pathsToParse, err := c.ListModulePaths(baseDir) - if err != nil { - return nil, []error{err} - } - return c.ParseFileList(baseDir, pathsToParse) -} - // ParseBlueprintsFiles parses a set of Blueprints files starting with the file // at rootFile. When it encounters a Blueprints file with a set of subdirs // listed it recursively parses any Blueprints files found in those @@ -622,6 +613,15 @@ func (c *Context) ParseBlueprintsFiles(rootFile string) (deps []string, errs []e // which the future output will depend is returned. This list will include both // Blueprints file paths as well as directory paths for cases where wildcard // subdirs are found. +func (c *Context) ParseBlueprintsFiles(rootFile string) (deps []string, errs []error) { + baseDir := filepath.Dir(rootFile) + pathsToParse, err := c.ListModulePaths(baseDir) + if err != nil { + return nil, []error{err} + } + return c.ParseFileList(baseDir, pathsToParse) +} + func (c *Context) ParseFileList(rootDir string, filePaths []string) (deps []string, errs []error) { |