Lines Matching refs:Rule
45 // A Rule represents a Ninja build rule that will be written to the output
47 type Rule interface {
61 rules map[string]Rule
70 rules: make(map[string]Rule),
147 func (s *basicScope) IsRuleVisible(rule Rule) bool {
148 _, isBuiltin := rule.(*builtinRule)
153 name := rule.name()
156 if s.rules[name] == rule {
161 if import_.rules[name] == rule {
237 func (s *basicScope) AddRule(r Rule) error {
241 return fmt.Errorf("rule %q is already defined in this scope", name)
271 func (s *localScope) IsRuleVisible(rule Rule) bool {
272 return s.scope.IsRuleVisible(rule)
410 return "<local rule>:" + r.namePrefix + r.name_