Documentation ¶
Index ¶
- type Document
- func (d *Document) AppendSymbolReference(symbol string, rng []int32, overrideType types.Type)
- func (d *Document) DeclareSymbols()
- func (d *Document) GetSymbol(pos token.Pos) (string, bool)
- func (d *Document) NewDefinition(symbol string, rng []int32)
- func (d *Document) SetNewSymbol(symbol string, parent ast.Node, ident *ast.Ident)
- func (d *Document) SetNewSymbolForPos(symbol string, parent ast.Node, ident *ast.Ident, pos token.Pos)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
func NewDocument ¶
func (*Document) AppendSymbolReference ¶
func (*Document) DeclareSymbols ¶
func (d *Document) DeclareSymbols()
DeclareSymbols will put all of the symbol information into the scip document itself.
func (*Document) NewDefinition ¶
NewDefinition emits a scip.Occurence ONLY. This will not emit a new symbol. You must do that using DeclareNewSymbol[ForPos]
func (*Document) SetNewSymbol ¶
SetNewSymbol declares a new symbol and tracks it within a Document.
NOTE: Does NOT emit a new occurrence
func (*Document) SetNewSymbolForPos ¶
func (d *Document) SetNewSymbolForPos( symbol string, parent ast.Node, ident *ast.Ident, pos token.Pos, )
SetNewSymbolForPos declares a new symbol and tracks it within a Document but allows for an override of the position. Generally speaking, you should use DeclareNewSymbol instead (since it will calculate the pos for most cases)
NOTE: Does NOT emit a new occurrence
Click to show internal directories.
Click to hide internal directories.