Class DocumentContext

java.lang.Object
com.github._1c_syntax.bsl.languageserver.context.DocumentContext

@Component @Scope("prototype") public class DocumentContext extends Object
  • Constructor Details

  • Method Details

    • getServerContext

      public ServerContext getServerContext()
    • getContent

      public String getContent()
    • getContentList

      public String[] getContentList()
    • getAst

      public BSLParser.FileContext getAst()
    • getTokens

      public List<Token> getTokens()
    • getTokensFromDefaultChannel

      public List<Token> getTokensFromDefaultChannel()
    • getComments

      public List<Token> getComments()
    • getText

      public String getText(Range range)
    • getScriptVariantLocale

      public Locale getScriptVariantLocale()
    • getMetrics

      public MetricStorage getMetrics()
    • getCognitiveComplexityData

      public ComplexityData getCognitiveComplexityData()
    • getCyclomaticComplexityData

      public ComplexityData getCyclomaticComplexityData()
    • getDiagnosticIgnorance

      public DiagnosticIgnoranceComputer.Data getDiagnosticIgnorance()
    • getModuleType

      public com.github._1c_syntax.bsl.types.ModuleType getModuleType()
    • getSupportVariant

      public com.github._1c_syntax.bsl.support.SupportVariant getSupportVariant()
    • getMdObject

      public Optional<MD> getMdObject()
    • getQueries

      public List<SDBLTokenizer> getQueries()
    • getDiagnostics

      public List<Diagnostic> getDiagnostics()
    • getComputedDiagnostics

      public List<Diagnostic> getComputedDiagnostics()
    • freezeComputedData

      public void freezeComputedData()
    • unfreezeComputedData

      public void unfreezeComputedData()
    • rebuild

      protected void rebuild(String content, int version)
    • rebuild

      protected void rebuild()
    • clearSecondaryData

      protected void clearSecondaryData()
    • getUri

      public URI getUri()
    • getVersion

      public int getVersion()
    • setContext

      @Autowired public void setContext(ServerContext context)
    • setDiagnosticComputer

      @Autowired public void setDiagnosticComputer(DiagnosticComputer diagnosticComputer)
    • setConfiguration

      @Autowired public void setConfiguration(LanguageServerConfiguration configuration)
    • setCognitiveComplexityComputerProvider

      @Autowired public void setCognitiveComplexityComputerProvider(ObjectProvider<CognitiveComplexityComputer> cognitiveComplexityComputerProvider)
    • setCyclomaticComplexityComputerProvider

      @Autowired public void setCyclomaticComplexityComputerProvider(ObjectProvider<CyclomaticComplexityComputer> cyclomaticComplexityComputerProvider)
    • getFileType

      public FileType getFileType()
    • getTokenizer

      public BSLTokenizer getTokenizer()
    • getSymbolTree

      public SymbolTree getSymbolTree()
    • isComputedDataFrozen

      public boolean isComputedDataFrozen()