A preprocessor macro. Note that macros are not strictly part of the AST, and as such are always in the global scope. A macro is "temporary" if it was #undefined in the same file it was #defined in.
| Operations Summary: | |
| __init__(self, file, line, language, type, name, parameters, text) Constructor [Source] | |
| parameters(self) Returns a list of parameter names (strings) for this macro if it has any. [Source] | |
| text(self) Returns the replacement text for this macro as a string [Source] | |
| accept(self, visitor) [Source] | |
| Operations Inherited from Declaration | |
| file, line, language, type, name, comments, accessibility, set_name, set_accessibility | |
| Operation Details: |
Returns a list of parameter names (strings) for this macro if it has any. Note that if the macro is not a function-like macro, this method will return None. If it is a function-like macro but with no parameters, an empty list will be returned.