Public Member Functions | |
| Compiler (Engine &engine) | |
| BytecodeChunk | compile (const ASTNode *ast, std::shared_ptr< const std::string > sourceCode=nullptr) |
| BytecodeChunk | compileFunction (const ASTNode *funcDef, std::shared_ptr< const std::string > sourceCode=nullptr) |
| void | registerFunction (const ASTNode *funcDef) |
| void | registerFunctionAs (const std::string &qualifiedName, const ASTNode *funcDef) |
| const BytecodeChunk * | ensureClassMethodCompiled (const UserFunction &uf) |
| const std::unordered_map< std::string, BytecodeChunk > & | compiledFuncs () const |
| void | clearCompiledFuncs () |
| void | eraseCompiledFunc (const std::string &name) |
| void | eraseCompiledFuncsForClass (const std::string &className) |
| const std::unordered_map< std::string, BytecodeChunk > & | scriptLocalCompiledFuncs () const |
| const BytecodeChunk * | findCompiled (const std::string &name) const |
| void | beginScriptScope () |
| void | endScriptScope () |
| bool | inScriptScope () const |
| void | promoteScriptLocalsToWorkspace () |
Static Public Member Functions | |
| static std::string | disassemble (const BytecodeChunk &chunk) |
Friends | |
| class | IndexContextGuard |
Definition at line 44 of file core/include/nk/core/compiler.hpp.
|
inline |
Definition at line 88 of file core/include/nk/core/compiler.hpp.
|
inline |
Definition at line 84 of file core/include/nk/core/compiler.hpp.
|
inline |
Definition at line 91 of file core/include/nk/core/compiler.hpp.
|
inline |
Definition at line 120 of file core/include/nk/core/compiler.hpp.
|
inline |
Definition at line 103 of file core/include/nk/core/compiler.hpp.
|
friend |
Definition at line 46 of file core/include/nk/core/compiler.hpp.