Functions for analyzing projections for pretty printing #
def
Lean.PrettyPrinter.Delaborator.fieldNotationCandidate?
(f : Expr)
(args : Array Expr)
(useGeneralizedFieldNotation : Bool)
:
If f
is a function that can be used for field notation,
returns the field name to use and the argument index for the object of the field notation.
Equations
Instances For
Returns the field name of the projection if e
is an application that is a projection to a parent structure.
If explicit
is true
, then requires that the structure have no parameters.