|
def | _EvalMacrosRefs (self, text, macro_stack) |
|
def | _EvalMacrosRefs (self, text, macro_stack) |
|
def | _Expand (self, macro_ref_match, macro_stack, macro_ref_str=None) |
|
def | _Expand (self, macro_ref_match, macro_stack, macro_ref_str=None) |
|
def | _FormatStack (self, macro_ref_stack) |
|
def | _FormatStack (self, macro_ref_stack) |
|
def | _ParseDefineLine (self, input_line) |
|
def | _ParseDefineLine (self, input_line) |
|
def | _ReplaceArgValues (self, macro, arg_values, macro_ref_to_report, macro_stack) |
|
def | _ReplaceArgValues (self, macro, arg_values, macro_ref_to_report, macro_stack) |
|
Hold a set of macros and can resolve/expand them.
Definition at line 140 of file bloaty/third_party/protobuf/objectivec/DevTools/pddm.py.
◆ __init__() [1/2]
def pddm.MacroCollection.__init__ |
( |
|
self, |
|
|
|
a_file = None |
|
) |
| |
◆ __init__() [2/2]
def pddm.MacroCollection.__init__ |
( |
|
self, |
|
|
|
a_file = None |
|
) |
| |
◆ _EvalMacrosRefs() [1/2]
def pddm.MacroCollection._EvalMacrosRefs |
( |
|
self, |
|
|
|
text, |
|
|
|
macro_stack |
|
) |
| |
|
private |
◆ _EvalMacrosRefs() [2/2]
def pddm.MacroCollection._EvalMacrosRefs |
( |
|
self, |
|
|
|
text, |
|
|
|
macro_stack |
|
) |
| |
|
private |
◆ _Expand() [1/2]
def pddm.MacroCollection._Expand |
( |
|
self, |
|
|
|
macro_ref_match, |
|
|
|
macro_stack, |
|
|
|
macro_ref_str = None |
|
) |
| |
|
private |
◆ _Expand() [2/2]
def pddm.MacroCollection._Expand |
( |
|
self, |
|
|
|
macro_ref_match, |
|
|
|
macro_stack, |
|
|
|
macro_ref_str = None |
|
) |
| |
|
private |
◆ _FormatStack() [1/2]
def pddm.MacroCollection._FormatStack |
( |
|
self, |
|
|
|
macro_ref_stack |
|
) |
| |
|
private |
◆ _FormatStack() [2/2]
def pddm.MacroCollection._FormatStack |
( |
|
self, |
|
|
|
macro_ref_stack |
|
) |
| |
|
private |
◆ _ParseDefineLine() [1/2]
def pddm.MacroCollection._ParseDefineLine |
( |
|
self, |
|
|
|
input_line |
|
) |
| |
|
private |
◆ _ParseDefineLine() [2/2]
def pddm.MacroCollection._ParseDefineLine |
( |
|
self, |
|
|
|
input_line |
|
) |
| |
|
private |
◆ _ReplaceArgValues() [1/2]
def pddm.MacroCollection._ReplaceArgValues |
( |
|
self, |
|
|
|
macro, |
|
|
|
arg_values, |
|
|
|
macro_ref_to_report, |
|
|
|
macro_stack |
|
) |
| |
|
private |
◆ _ReplaceArgValues() [2/2]
def pddm.MacroCollection._ReplaceArgValues |
( |
|
self, |
|
|
|
macro, |
|
|
|
arg_values, |
|
|
|
macro_ref_to_report, |
|
|
|
macro_stack |
|
) |
| |
|
private |
◆ Expand() [1/2]
def pddm.MacroCollection.Expand |
( |
|
self, |
|
|
|
macro_ref_str |
|
) |
| |
◆ Expand() [2/2]
def pddm.MacroCollection.Expand |
( |
|
self, |
|
|
|
macro_ref_str |
|
) |
| |
Expands the macro reference.
Args:
macro_ref_str: String of a macro reference (i.e. foo(a, b)).
Returns:
The text from the expansion.
Raises:
PDDMError if there are any issues.
Definition at line 260 of file protobuf/objectivec/DevTools/pddm.py.
◆ ParseInput() [1/2]
def pddm.MacroCollection.ParseInput |
( |
|
self, |
|
|
|
a_file |
|
) |
| |
Consumes input extracting definitions.
Args:
a_file: The file like stream to parse.
Raises:
PDDMError if there are any issues.
Definition at line 183 of file protobuf/objectivec/DevTools/pddm.py.
◆ ParseInput() [2/2]
def pddm.MacroCollection.ParseInput |
( |
|
self, |
|
|
|
a_file |
|
) |
| |
◆ ParseLines() [1/2]
def pddm.MacroCollection.ParseLines |
( |
|
self, |
|
|
|
input_lines |
|
) |
| |
◆ ParseLines() [2/2]
def pddm.MacroCollection.ParseLines |
( |
|
self, |
|
|
|
input_lines |
|
) |
| |
Parses list of lines.
Args:
input_lines: A list of strings of input to parse (no newlines on the
strings).
Raises:
PDDMError if there are any issues.
Definition at line 195 of file protobuf/objectivec/DevTools/pddm.py.
◆ _macros
pddm.MacroCollection._macros |
|
private |
The documentation for this class was generated from the following file: