Lines Matching refs:macro_ref_str
260 def Expand(self, macro_ref_str): argument
272 match = _MACRO_RE.match(macro_ref_str)
273 if match is None or match.group(0) != macro_ref_str:
274 raise PDDMError('Failed to parse macro reference: "%s"' % macro_ref_str)
277 return self._Expand(match, [], macro_ref_str)
285 def _Expand(self, macro_ref_match, macro_stack, macro_ref_str=None): argument
286 if macro_ref_str is None:
287 macro_ref_str = macro_ref_match.group('macro_ref')
292 (macro_ref_str, self._FormatStack(macro_stack)))
300 (len(macro.args), macro_ref_str,
303 result = self._ReplaceArgValues(macro, args, macro_ref_str, macro_stack)
305 new_macro_stack = macro_stack + [(name, macro_ref_str)]