#include <compilerplugin.hpp>
Info struct for compiling an unary operator. This struct is used with method TryCompilation(CIUnaryOp&) to provide information to derived compiler plug-ins, as well as to receive information back.
Definition at line 318 of file compilerplugin.hpp.
| Public Fields | |
| bool | ArgIsConst | 
| String & | Operator | 
| Input/Output: The unary operator. | |
|  Public Fields inherited from CompilerPlugin::CompilationInfo | |
| ArgIterator | ArgsBegin | 
| ArgIterator | ArgsEnd | 
| CallbackDecl | Callback = nullptr | 
| MonoAllocator & | CompileTimeAllocator | 
| Scope & | CompileTimeScope | 
| const nchar * | DbgCallbackName = nullptr | 
| Box | TypeOrValue = nullptr | 
| Public Methods | |
| CIUnaryOp (Scope &scope, MonoAllocator &compileTimeAllocator, String &op, bool argIsConst) | |
|  Public Methods inherited from CompilerPlugin::CompilationInfo | |
| CompilationInfo (Scope &scope, MonoAllocator &allocator) | |
| 
 | inline | 
Constructor.
| scope | Passed to parent. | 
| compileTimeAllocator | Passed to parent. | 
| op | Stored in Operator. | 
| argIsConst | Passed to field ArgIsConst. | 
Definition at line 338 of file compilerplugin.hpp.
| bool ArgIsConst | 
Input: Denotes if the argument is a constant value. Operator callbacks that do not use context information from the scope, should calculate the then constant result and return this value instead of the callback method. (Compile-time optimization.)
Definition at line 327 of file compilerplugin.hpp.