|
Luma 0.1.0
A low-level compiled alternative to C, C++, and more!
|
#include "../llvm.h"
Functions | |
| LLVMValueRef | codegen_module_access (CodeGenContext *ctx, AstNode *node) |
| Handle compile-time member access (::) | |
| bool | is_module_identifier (CodeGenContext *ctx, const char *name) |
| Check if an identifier might be a module/alias. | |
| const char * | get_module_name_from_access (AstNode *node) |
| Get module name/alias from a compile-time member access node. | |
| bool | validate_module_access (CodeGenContext *ctx, const char *prefix, const char *symbol_name) |
| Validate that a module access is permitted. | |
| LLVMValueRef codegen_module_access | ( | CodeGenContext * | ctx, |
| AstNode * | node | ||
| ) |
Handle compile-time member access (::)
Works with the existing import system:
| ctx | Code generation context |
| node | AST node for member access expression |
| const char * get_module_name_from_access | ( | AstNode * | node | ) |
Get module name/alias from a compile-time member access node.
| bool is_module_identifier | ( | CodeGenContext * | ctx, |
| const char * | name | ||
| ) |
Check if an identifier might be a module/alias.
| bool validate_module_access | ( | CodeGenContext * | ctx, |
| const char * | prefix, | ||
| const char * | symbol_name | ||
| ) |
Validate that a module access is permitted.
Checks that the qualified symbol exists