Zen-C
Loading...
Searching...
No Matches
lsp_index.h File Reference
#include "parser.h"
Include dependency graph for lsp_index.h:
This graph shows which files directly or indirectly include this file:

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

LSPIndexlsp_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)
 
LSPRangelsp_find_at (LSPIndex *idx, int line, int col)
 
void lsp_build_index (LSPIndex *idx, ASTNode *root)
 

Typedef Documentation

◆ LSPIndex

typedef struct LSPIndex LSPIndex

Index of a single file.

◆ LSPRange

typedef struct LSPRange LSPRange

A range in the source code mapping to semantic info.

Enumeration Type Documentation

◆ RangeType

enum RangeType

Type of an indexed AST range.

Enumerator
RANGE_DEFINITION 

Defines a symbol.

RANGE_REFERENCE 

References a symbol.

Function Documentation

◆ lsp_build_index()

void lsp_build_index ( LSPIndex idx,
ASTNode root 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lsp_find_at()

LSPRange * lsp_find_at ( LSPIndex idx,
int  line,
int  col 
)
Here is the caller graph for this function:

◆ lsp_index_add_def()

void lsp_index_add_def ( LSPIndex idx,
Token  t,
const char *  hover,
ASTNode node 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lsp_index_add_ref()

void lsp_index_add_ref ( LSPIndex idx,
Token  t,
Token  def_t,
ASTNode node 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lsp_index_free()

void lsp_index_free ( LSPIndex idx)
Here is the caller graph for this function:

◆ lsp_index_new()

LSPIndex * lsp_index_new ( )
Here is the caller graph for this function: