Class DocumentContext
java.lang.Object
com.github._1c_syntax.bsl.languageserver.context.DocumentContext
- All Implemented Interfaces:
Comparable<DocumentContext>
@Component
@Scope("prototype")
public class DocumentContext
extends Object
implements Comparable<DocumentContext>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected void
int
compareTo
(DocumentContext other) boolean
void
getAst()
List<org.eclipse.lsp4j.Diagnostic>
String[]
List<org.eclipse.lsp4j.Diagnostic>
getText
(org.eclipse.lsp4j.Range range) getUri()
int
int
hashCode()
boolean
protected void
rebuild()
protected void
void
setCognitiveComplexityComputerProvider
(ObjectProvider<CognitiveComplexityComputer> cognitiveComplexityComputerProvider) void
setConfiguration
(LanguageServerConfiguration configuration) void
setContext
(ServerContext context) void
setCyclomaticComplexityComputerProvider
(ObjectProvider<CyclomaticComplexityComputer> cyclomaticComplexityComputerProvider) void
setDiagnosticComputer
(DiagnosticComputer diagnosticComputer) void
-
Constructor Details
-
DocumentContext
-
-
Method Details
-
getServerContext
-
getContent
-
getContentList
-
getAst
-
getTokens
-
getTokensFromDefaultChannel
-
getComments
-
getText
-
getScriptVariantLocale
-
getMetrics
-
getCognitiveComplexityData
-
getCyclomaticComplexityData
-
getDiagnosticIgnorance
-
getModuleType
-
getSupportVariant
-
getMdObject
-
getQueries
-
getDiagnostics
-
getComputedDiagnostics
-
freezeComputedData
public void freezeComputedData() -
unfreezeComputedData
public void unfreezeComputedData() -
rebuild
-
rebuild
protected void rebuild() -
clearSecondaryData
protected void clearSecondaryData() -
compareTo
- Specified by:
compareTo
in interfaceComparable<DocumentContext>
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getUri
-
getVersion
public int getVersion() -
setContext
-
setDiagnosticComputer
-
setConfiguration
-
setCognitiveComplexityComputerProvider
@Autowired public void setCognitiveComplexityComputerProvider(ObjectProvider<CognitiveComplexityComputer> cognitiveComplexityComputerProvider) -
setCyclomaticComplexityComputerProvider
@Autowired public void setCyclomaticComplexityComputerProvider(ObjectProvider<CyclomaticComplexityComputer> cyclomaticComplexityComputerProvider) -
getFileType
-
getTokenizer
-
getSymbolTree
-
isComputedDataFrozen
public boolean isComputedDataFrozen()
-