|
Zen-C
|
#include "parser.h"

Go to the source code of this file.
Data Structures | |
| struct | LSPRange |
| A range in the source code mapping to semantic info. More... | |
| struct | LSPIndex |
| Index of a single file. More... | |
Typedefs | |
| typedef struct LSPRange | LSPRange |
| A range in the source code mapping to semantic info. | |
| typedef struct LSPIndex | LSPIndex |
| Index of a single file. | |
Enumerations | |
| enum | RangeType { RANGE_DEFINITION , RANGE_REFERENCE } |
| Type of an indexed AST range. More... | |
Functions | |
| LSPIndex * | lsp_index_new () |
| void | lsp_index_free (LSPIndex *idx) |
| void | lsp_index_add_def (LSPIndex *idx, Token t, const char *hover, ASTNode *node) |
| void | lsp_index_add_ref (LSPIndex *idx, Token t, Token def_t, ASTNode *node) |
| LSPRange * | lsp_find_at (LSPIndex *idx, int line, int col) |
| void | lsp_build_index (LSPIndex *idx, ASTNode *root) |
| enum RangeType |
Type of an indexed AST range.
| Enumerator | |
|---|---|
| RANGE_DEFINITION | Defines a symbol. |
| RANGE_REFERENCE | References a symbol. |







| void lsp_index_free | ( | LSPIndex * | idx | ) |

| LSPIndex * lsp_index_new | ( | ) |
