Lines Matching full:rules
5 """Base classes to represent dependency rules, used by checkdeps.py"""
88 class Rules(object): class
89 """Sets of rules for files in a directory.
91 By default, rules are added to the set of rules applicable to all
92 dependee files in the directory. Rules may also be added that apply
95 set of rules per unique regular expression.
99 """Initializes the current rules with an empty rule list for all
102 # We keep the general rules out of the specific rules dictionary,
106 # Keys are regular expression strings, values are arrays of rules
108 # expression. These are applied before the general rules, but
113 result = ['Rules = {\n (apply to all files): [\n%s\n ],' % '\n'.join(
115 for regexp, rules in list(self._specific_rules.items()):
117 regexp, '\n'.join(' %s' % x for x in rules)))
123 specified rules (general/specific). Currently only general rules are
125 def AddDependencyTuplesImpl(deps, rules, extra_dependent_suffix=""): argument
126 for rule in rules:
135 for regexp, rules in list(self._specific_rules.items()):
136 AddDependencyTuplesImpl(deps, rules, "/" + regexp)
162 # Remove any existing rules or sub-rules that apply. For example, if we're