LintVisitor
Defined in: types.ts:64
Visitor pattern for AST traversal Rules implement the hooks they’re interested in
Methods
Section titled “Methods”onDefinition()?
Section titled “onDefinition()?”
optionalonDefinition(entry,allEntriesForTerm):void
Defined in: types.ts:70
Called for each definition in the document
Parameters
Section titled “Parameters”IndexDefinitionEntry
The definition entry
allEntriesForTerm
Section titled “allEntriesForTerm”IndexDefinitionEntry[]
All entries for this normalized term across the workspace
Returns
Section titled “Returns”void
onDocument()?
Section titled “onDocument()?”
optionalonDocument(doc):void
Defined in: types.ts:83
Called once per document before visiting nodes
Parameters
Section titled “Parameters”Document
The document
Returns
Section titled “Returns”void
onReference()?
Section titled “onReference()?”
optionalonReference(ref,target):void
Defined in: types.ts:77
Called for each reference in the document
Parameters
Section titled “Parameters”InlineReference
The reference node
target
Section titled “target”The resolved target definition (null if unresolved)
IndexDefinitionEntry | null
Returns
Section titled “Returns”void