Skip to content

syntaxwalk

def Syntax.anyOf (flags : List Bool) : Bool

Whether any of the flags holds.

def Init.anyOption (p : Expr -> Bool) (m : Option Init) : Bool

Whether p holds on any expression in an optional initializer.

def Param.any (p : Expr -> Bool) (x : Param) : Bool

Whether p holds on any expression in a parameter (its default).

def Param.anyIn (p : Expr -> Bool) (xs : List Param) : Bool

Whether p holds on any expression in parameters.

def Enumerator.any (p : Expr -> Bool) (x : Enumerator) : Bool

Whether p holds on any expression in an enumerator (its value).

def Enumerator.anyIn (p : Expr -> Bool) (xs : List Enumerator) : Bool

Whether p holds on any expression in enumerators.

def TypeDefinition.any (p : Expr -> Bool) (x : TypeDefinition) : Bool

Whether p holds on any expression in a type defined in a block (its enumerators’ values).

def MemberInit.any (p : Expr -> Bool) (x : MemberInit) : Bool

Whether p holds on any expression in a member’s initializer in a constructor.

def MemberInit.anyIn (p : Expr -> Bool) (xs : List MemberInit) : Bool

Whether p holds on any expression in members’ initializers.

def FunctionDefinition.any (p : Expr -> Bool) (x : FunctionDefinition) : Bool

Whether p holds on any expression in a function’s definition.

def ClassDefinition.any (p : Expr -> Bool) (x : ClassDefinition) : Bool

Whether p holds on any expression in a class’s definition.