Documentation

Lean.Server.References

Representing collected and deduplicated definitions and usages #

Instances For

    Content of individual .ilean files

    Instances For

      Collecting and deduplicating definitions and usages #

      The FVarIds of a function parameter in the function's signature and body differ. However, they have TermInfo nodes with binder := true in the exact same position. Moreover, macros such as do-reassignment x := e may create chains of variable definitions where a helper definition overlaps with a use of a variable.

      This function changes every such group to use a single FVarId (the head of the chain/DAG) and gets rid of duplicate definitions.

      Instances For
        def Lean.Server.findModuleRefs (text : Lean.FileMap) (trees : Array Lean.Elab.InfoTree) (localVars : optParam Bool true) (allowSimultaneousBinderUse : optParam Bool false) :
        Instances For

          Collecting and maintaining reference info from different sources #

          Instances For
            def Lean.Server.References.referringTo (self : Lean.Server.References) (identModule : Lake.Name) (ident : Lean.Lsp.RefIdent) (srcSearchPath : Lean.SearchPath) (includeDefinition : optParam Bool true) :
            Instances For
              def Lean.Server.References.definitionsMatching {α : Type} (self : Lean.Server.References) (srcSearchPath : Lean.SearchPath) (filter : Lake.NameOption α) (maxAmount? : optParam (Option Nat) none) :
              Instances For