|
Luma 0.1.0
A low-level compiled alternative to C, C++, and more!
|
#include <ctype.h>#include <dirent.h>#include <stdlib.h>#include <string.h>#include <sys/stat.h>#include "lsp.h"
Macros | |
| #define | LUMA_STD_PATH "/usr/local/lib/luma" |
| #define | NEGATIVE_CACHE_MAX 64 |
Functions | |
| void | lsp_negative_cache_clear (void) |
| const char * | extract_module_name (const char *content, ArenaAllocator *arena) |
| void | scan_file_for_module (LSPServer *server, const char *file_uri, ArenaAllocator *temp_arena) |
| void | scan_directory_recursive (LSPServer *server, const char *dir_path, ArenaAllocator *temp_arena) |
| void | build_module_registry (LSPServer *server, const char *workspace_uri) |
| const char * | lookup_module (LSPServer *server, const char *module_name) |
| void | extract_imports (LSPDocument *doc, ArenaAllocator *arena) |
| const char * | resolve_module_path (const char *current_uri, const char *module_path, ArenaAllocator *arena) |
| void | lsp_ast_cache_init (LSPServer *server) |
| void | lsp_ast_cache_invalidate (LSPServer *server, const char *uri) |
| AstNode * | parse_imported_module_ast (LSPServer *server, const char *module_uri, BuildConfig *config, ArenaAllocator *arena) |
| void | resolve_imports (LSPServer *server, LSPDocument *doc, BuildConfig *config, GrowableArray *imported_modules) |
| #define LUMA_STD_PATH "/usr/local/lib/luma" |
| #define NEGATIVE_CACHE_MAX 64 |
| void build_module_registry | ( | LSPServer * | server, |
| const char * | workspace_uri | ||
| ) |
| void extract_imports | ( | LSPDocument * | doc, |
| ArenaAllocator * | arena | ||
| ) |
| const char * extract_module_name | ( | const char * | content, |
| ArenaAllocator * | arena | ||
| ) |
| const char * lookup_module | ( | LSPServer * | server, |
| const char * | module_name | ||
| ) |
| void lsp_ast_cache_init | ( | LSPServer * | server | ) |
| void lsp_ast_cache_invalidate | ( | LSPServer * | server, |
| const char * | uri | ||
| ) |
| void lsp_negative_cache_clear | ( | void | ) |
| AstNode * parse_imported_module_ast | ( | LSPServer * | server, |
| const char * | module_uri, | ||
| BuildConfig * | config, | ||
| ArenaAllocator * | arena | ||
| ) |
| void resolve_imports | ( | LSPServer * | server, |
| LSPDocument * | doc, | ||
| BuildConfig * | config, | ||
| GrowableArray * | imported_modules | ||
| ) |
| const char * resolve_module_path | ( | const char * | current_uri, |
| const char * | module_path, | ||
| ArenaAllocator * | arena | ||
| ) |
| void scan_directory_recursive | ( | LSPServer * | server, |
| const char * | dir_path, | ||
| ArenaAllocator * | temp_arena | ||
| ) |
| void scan_file_for_module | ( | LSPServer * | server, |
| const char * | file_uri, | ||
| ArenaAllocator * | temp_arena | ||
| ) |