Documentation

Lean.DeclarationRange

  • charUtf16 : Nat

    A precomputed UTF-16 character field as in Lean.Lsp.Position. We need to store this because LSP clients want us to report the range in terms of UTF-16, but converting a Unicode codepoint stored in Lean.Position to UTF-16 requires loading and mapping the target source file, which is IO-heavy.

  • endPos : Lean.Position
  • endCharUtf16 : Nat

Store position information for declarations.

Instances For
    Instances For
      Instances For
        def Lean.addDeclarationRanges {m : TypeType} [Lean.MonadEnv m] (declName : Lake.Name) (declRanges : Lean.DeclarationRanges) :
        Instances For