Documentation

Lean.Elab.Import

@[reducible, inline]
Equations
Instances For
    Equations
    Instances For
      Equations
      Instances For
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          Equations
          Instances For
            @[reducible, inline]
            abbrev Lean.Elab.headerToImports (stx : HeaderSyntax) (includeInit : Bool := true) :
            Equations
            Instances For
              def Lean.Elab.checkDeprecatedImports (env : Environment) (imports : Array Import) (opts : Options) (inputCtx : Parser.InputContext) (startPos : String.Pos.Raw) (messages : MessageLog) (headerStx? origHeaderStx? : Option HeaderSyntax := none) :

              Check imported modules for deprecation and emit warnings.

              The -- deprecated_module: ignore comment can be placed on the module keyword to suppress all warnings, or on individual import statements to suppress specific ones. This follows the same pattern as -- shake: keep in Lake shake.

              The headerStx? parameter carries the header syntax used for checking trailing comments. When called from the Language Server, the main header syntax may have its trailing trivia stripped by unsetTrailing for caching purposes, so origHeaderStx? can supply the original (untrimmed) syntax to preserve -- deprecated_module: ignore annotations on the last import.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                def Lean.Elab.checkModuleNamePortability (mainModule : Name) (inputCtx : Parser.InputContext) (startPos : String.Pos.Raw) (messages : MessageLog) :
                Equations
                Instances For
                  def Lean.Elab.processHeaderCore (startPos : String.Pos.Raw) (imports : Array Import) (isModule : Bool) (opts : Options) (messages : MessageLog) (inputCtx : Parser.InputContext) (trustLevel : UInt32 := 0) (plugins : Array Plugin := #[]) (leakEnv : Bool := false) (mainModule : Name := Name.anonymous) (package? : Option PkgId := none) (arts : NameMap ImportArtifacts := ) (headerStx? origHeaderStx? : Option HeaderSyntax := none) :
                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    @[inline]
                    def Lean.Elab.processHeader (header : HeaderSyntax) (opts : Options) (messages : MessageLog) (inputCtx : Parser.InputContext) (trustLevel : UInt32 := 0) (plugins : Array Plugin := #[]) (leakEnv : Bool := false) (mainModule : Name := Name.anonymous) :

                    Elaborates the given header syntax into an environment.

                    If mainModule is not given, Environment.setMainModule should be called manually. This is a backwards compatibility measure not compatible with the module system.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        def Lean.Elab.printImports (input : String) (fileName : Option String) :
                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For
                          def Lean.Elab.printImportSrcs (input : String) (fileName : Option String) :
                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For