Lines Matching refs:macro_ref_str
259 def Expand(self, macro_ref_str): argument
271 match = _MACRO_RE.match(macro_ref_str)
272 if match is None or match.group(0) != macro_ref_str:
273 raise PDDMError('Failed to parse macro reference: "%s"' % macro_ref_str)
276 return self._Expand(match, [], macro_ref_str)
284 def _Expand(self, macro_ref_match, macro_stack, macro_ref_str=None): argument
285 if macro_ref_str is None:
286 macro_ref_str = macro_ref_match.group('macro_ref')
291 (macro_ref_str, self._FormatStack(macro_stack)))
299 (len(macro.args), macro_ref_str,
302 result = self._ReplaceArgValues(macro, args, macro_ref_str, macro_stack)
304 new_macro_stack = macro_stack + [(name, macro_ref_str)]