diff options
author | Fumitoshi Ukai <fumitoshi.ukai@gmail.com> | 2015-06-25 16:10:30 +0900 |
---|---|---|
committer | Fumitoshi Ukai <fumitoshi.ukai@gmail.com> | 2015-06-25 16:10:30 +0900 |
commit | adc14447b43c159816e8c4efc0e5e6001373b0c1 (patch) | |
tree | b6f370f28373c0a2c8292b8262519f5f835e75c8 /rule_parser.go | |
parent | c9ff91b1f04a3a299dd34fadada5cff39c5ed4ee (diff) | |
download | android_build_kati-adc14447b43c159816e8c4efc0e5e6001373b0c1.tar.gz android_build_kati-adc14447b43c159816e8c4efc0e5e6001373b0c1.tar.bz2 android_build_kati-adc14447b43c159816e8c4efc0e5e6001373b0c1.zip |
unexport Rule
Diffstat (limited to 'rule_parser.go')
-rw-r--r-- | rule_parser.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rule_parser.go b/rule_parser.go index 98914fe..b7908ac 100644 --- a/rule_parser.go +++ b/rule_parser.go @@ -55,7 +55,7 @@ func (p pattern) subst(repl, str string) string { return rs[0] + trimed + rs[1] } -type Rule struct { +type rule struct { outputs []string inputs []string orderOnlyInputs []string @@ -76,7 +76,7 @@ func isPatternRule(s []byte) (pattern, bool) { return pattern{prefix: string(s[:i]), suffix: string(s[i+1:])}, true } -func (r *Rule) parseInputs(s []byte) { +func (r *rule) parseInputs(s []byte) { ws := newWordScanner(s) isOrderOnly := false for ws.Scan() { @@ -93,7 +93,7 @@ func (r *Rule) parseInputs(s []byte) { } } -func (r *Rule) parseVar(s []byte) *assignAST { +func (r *rule) parseVar(s []byte) *assignAST { eq := bytes.IndexByte(s, '=') if eq <= 0 { return nil @@ -122,7 +122,7 @@ func (r *Rule) parseVar(s []byte) *assignAST { return assign } -func (r *Rule) parse(line []byte) (*assignAST, error) { +func (r *rule) parse(line []byte) (*assignAST, error) { index := bytes.IndexByte(line, ':') if index < 0 { return nil, errors.New("*** missing separator.") |