diff options
author | Colin Cross <ccross@android.com> | 2015-06-30 16:05:22 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2015-06-30 16:43:32 -0700 |
commit | 23d7aa1b68c96e10d871ce8a06a8dca2c6d99a2f (patch) | |
tree | 3f880712a1eb8eb8398401ddd88bfc55e7f76844 /parser | |
parent | 210897114524136d6a0f063ea022e55f1e779339 (diff) | |
download | android_build_blueprint-23d7aa1b68c96e10d871ce8a06a8dca2c6d99a2f.tar.gz android_build_blueprint-23d7aa1b68c96e10d871ce8a06a8dca2c6d99a2f.tar.bz2 android_build_blueprint-23d7aa1b68c96e10d871ce8a06a8dca2c6d99a2f.zip |
Refactor parsing to allow reuse
Refactor parsing Blueprints and walking the Blueprints tree to
allow reuse for tasks that don't involve creating moduleInfo
structures.
Change-Id: I677857a3462999426c8306432074ea97fdcb86c8
Diffstat (limited to 'parser')
-rw-r--r-- | parser/parser.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/parser/parser.go b/parser/parser.go index a53be9e..a4282a1 100644 --- a/parser/parser.go +++ b/parser/parser.go @@ -38,6 +38,7 @@ func (e *ParseError) Error() string { } type File struct { + Name string Defs []Definition Comments []Comment } @@ -59,6 +60,7 @@ func parse(p *parser) (file *File, errs []error) { comments := p.comments return &File{ + Name: p.scanner.Filename, Defs: defs, Comments: comments, }, errs |