Details
Description
pragma: blocks are compiler directive macros that cannot yield nodes, and are executed before any macro:.
It can directly access .Parameters moreover .Context
It also has a few nested macros handy such as: define, undefine, suppressWarnings, warnAsError.
Example (with nested macros 'dsl'):
pragma: undefine BOO_0_8 define BOO_0_9 suppressWarnings BCW0001, BCW0002
Example (without nested macros 'dsl'):
pragma: Parameters.Undefine("BOO_0_8") Parameters.Define("BOO_0_9") Parameters.SuppressWarning("BCW0001") Parameters.SuppressWarning("BCW0002") Parameters.DefaultClassVisibility = TypeMemberModifiers.Private
One-liners should also be possible:
pragma Parameters.Undefine("BOO_0_8")