Documentation

Lean.Elab.DeprecatedSyntax.Basic

Entry recording that a syntax kind has been deprecated.

  • The syntax node kind that is deprecated.

  • text? : Option String

    Optional deprecation message.

  • since? : Option String

    Optional version or date at which the syntax was deprecated.

Instances For

    Maps each deprecated syntax kind to the Macro declaration generated from the alternatives of the latest deprecated_syntax command for that kind, if any.

    Whether kind is marked by deprecated_syntax.

    Equations
    Instances For

      Check whether stx is a deprecated syntax kind, and if so, emit a warning.

      If stx was written by the user (its head token has .original source info), the warning is attributed to the syntax itself even inside a macro expansion: enclosing macros (e.g. the internal namespace expansion of def Foo.bar ...) merely passed the user's syntax through. Only macro-generated syntax (synthetic source info, as produced by syntax quotations) is attributed to the macro call site via macroStack. Replacement suggestions are only offered for syntax written by the user.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        Check whether stx, which is part of a syntax quotation, is a deprecated syntax kind, and if so, emit a warning.

        Syntax produced by expanding macros in the quotation (synthetic source info) is not reported: it is not part of the quotation, and elaborating the result of the quotation reports it as produced by these macros.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For