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 319 of file compilerplugin.hpp.
#include <compilerplugin.hpp>
Public Field Index: | |
bool | ArgIsConst |
String & | Operator |
Input/Output: The unary operator. | |
Public Field Index: inherited from CompilerPlugin::CompilationInfo | |
ArgIterator | ArgsBegin |
ArgIterator | ArgsEnd |
CallbackDecl | Callback = nullptr |
MonoAllocator & | CompileTimeAllocator |
Scope & | CompileTimeScope |
const nchar * | DbgCallbackName = nullptr |
Box | TypeOrValue = nullptr |
Public Method Index: | |
CIUnaryOp (Scope &scope, MonoAllocator &compileTimeAllocator, String &op, bool argIsConst) | |
Public Method Index: inherited from CompilerPlugin::CompilationInfo | |
CompilationInfo (Scope &scope, MonoAllocator &allocator) | |
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 328 of file compilerplugin.hpp.
String& Operator |
Input/Output: The unary operator.
Definition at line 321 of file compilerplugin.hpp.
|
inline |
Constructor.
scope | Passed to parent. |
compileTimeAllocator | Passed to parent. |
op | Stored in Operator. |
argIsConst | Passed to field ArgIsConst. |
Definition at line 339 of file compilerplugin.hpp.