Documentation

Lean.Syntax

Equations
inductive Lean.IsNode :
Lean.Syntax → Prop
noncomputable def Lean.SyntaxNode :
Type
Equations
def Lean.unreachIsNodeAtom {β : Sort u_1} {info : Lean.SourceInfo} {val : String} (h : Lean.IsNode (Lean.Syntax.atom info val)) :
β
Equations
def Lean.unreachIsNodeIdent {β : Sort u_1} {info : Lean.SourceInfo} {rawVal : Substring} {val : Lean.Name} {preresolved : List (Lean.Name × List String)} (h : Lean.IsNode (Lean.Syntax.ident info rawVal val preresolved)) :
β
Equations
@[inline]
Equations
@[inline]
def Lean.SyntaxNode.withArgs {β : Sort u_1} (n : Lean.SyntaxNode) (fn : Array Lean.Syntax → β) :
β
Equations
@[inline]
Equations
Equations
Equations
@[inline]
def Lean.Syntax.ifNode {β : Sort u_1} (stx : Lean.Syntax) (hyes : Lean.SyntaxNode → β) (hno : Unit → β) :
β
Equations
@[inline]
def Lean.Syntax.ifNodeKind {β : Sort u_1} (stx : Lean.Syntax) (kind : Lean.SyntaxNodeKind) (hyes : Lean.SyntaxNode → β) (hno : Unit → β) :
β
Equations
Equations
@[inline]
Equations
@[inline]
Equations
@[specialize]
partial def Lean.Syntax.replaceM {m : Type → Type} [inst : Monad m] (fn : Lean.Syntax → m (Option Lean.Syntax)) :
@[specialize]
partial def Lean.Syntax.rewriteBottomUpM {m : Type → Type} [inst : Monad m] (fn : Lean.Syntax → m Lean.Syntax) :
Equations
Equations
structure Lean.Syntax.TopDown :
Type
Equations
Equations
@[specialize]
partial def Lean.Syntax.instForInTopDownSyntax.loop {m : Type u_1 → Type u_2} :
{β : Type u_1} → [inst : Monad m] → (Lean.Syntax → β → m (ForInStep β)) → Bool → Lean.Syntax → β → [inst : Inhabited β] → m (ForInStep β)
Equations
Equations
structure Lean.Syntax.Traverser :
Type
Equations
Equations
Equations
Equations
def Lean.Syntax.MonadTraverser.getCur {m : Type → Type} [inst : Monad m] [t : Lean.Syntax.MonadTraverser m] :
Equations
Equations
Equations
Equations
def Lean.Syntax.MonadTraverser.getIdx {m : Type → Type} [inst : Monad m] [t : Lean.Syntax.MonadTraverser m] :
m Nat
Equations
Equations
Equations
Equations
Equations
Equations
Equations
Equations
Equations
Equations