moonbitlang/parser/syntax does not have a README file
pub(open) trait IterVisitor {
base(Self) -> IterVisitorBase[Self] = _
visit_Visibility(Self, Visibility) -> Unit = _
visit_Visibility_Pub(Self, attr~ : String?, loc~ : Location) -> Unit = _
visit_Visibility_Priv(Self, loc~ : Location) -> Unit = _
visit_Constant(Self, Constant) -> Unit = _
visit_Label(Self, Label) -> Unit = _
visit_ConstrName(Self, ConstrName) -> Unit = _
visit_LongIdent(Self, LongIdent) -> Unit = _
visit_LongIdent_Ident(Self, name~ : String) -> Unit = _
visit_LongIdent_Dot(Self, pkg~ : String, id~ : String) -> Unit = _
visit_TypeName(Self, TypeName) -> Unit = _
visit_ConstrId(Self, ConstrId) -> Unit = _
visit_Type(Self, Type) -> Unit = _
visit_Type_Any(Self, loc~ : Location) -> Unit = _
visit_Type_Arrow(Self, args~ : List[Type], res~ : Type, err~ : ErrorType, is_async~ : Location?, loc~ : Location) -> Unit = _
visit_Type_Name(Self, constr_id~ : ConstrId, tys~ : List[Type], loc~ : Location) -> Unit = _
visit_Type_Tuple(Self, tys~ : List[Type], loc~ : Location) -> Unit = _
visit_Type_Option(Self, ty~ : Type, loc~ : Location, question_loc~ : Location) -> Unit = _
visit_Type_Object(Self, ConstrId) -> Unit = _
visit_ErrorType(Self, ErrorType) -> Unit = _
visit_ErrorType_ErrorType(Self, ty~ : Type) -> Unit = _
visit_ErrorType_DefaultErrorType(Self, loc~ : Location) -> Unit = _
visit_ErrorType_Noraise(Self, loc~ : Location) -> Unit = _
visit_ErrorType_MaybeError(Self, ty~ : Type) -> Unit = _
visit_ConstrParam(Self, ConstrParam) -> Unit = _
visit_ConstrDecl(Self, ConstrDecl) -> Unit = _
visit_ExceptionDecl(Self, ExceptionDecl) -> Unit = _
visit_ExceptionDecl_SinglePayload(Self, Type) -> Unit = _
visit_ExceptionDecl_EnumPayload(Self, List[ConstrDecl]) -> Unit = _
visit_FieldName(Self, FieldName) -> Unit = _
visit_FieldDecl(Self, FieldDecl) -> Unit = _
visit_TypeDesc(Self, TypeDesc) -> Unit = _
visit_TypeDesc_Newtype(Self, Type) -> Unit = _
visit_TypeDesc_Error(Self, ExceptionDecl) -> Unit = _
visit_TypeDesc_Variant(Self, List[ConstrDecl]) -> Unit = _
visit_TypeDesc_Record(Self, fields~ : List[FieldDecl], constr_decl~ : FunDecl?) -> Unit = _
visit_TypeDesc_TupleStruct(Self, List[Type]) -> Unit = _
visit_TypeDesc_Alias(Self, Type) -> Unit = _
visit_Hole(Self, Hole) -> Unit = _
visit_ArgumentKind(Self, ArgumentKind) -> Unit = _
visit_ArgumentKind_Labelled(Self, Label) -> Unit = _
visit_ArgumentKind_LabelledPun(Self, Label) -> Unit = _
visit_ArgumentKind_LabelledOption(Self, label~ : Label, question_loc~ : Location) -> Unit = _
visit_ArgumentKind_LabelledOptionPun(Self, label~ : Label, question_loc~ : Location) -> Unit = _
visit_FnKind(Self, FnKind) -> Unit = _
visit_Group(Self, Group) -> Unit = _
visit_TrailingMark(Self, TrailingMark) -> Unit = _
visit_ApplyAttr(Self, ApplyAttr) -> Unit = _
visit_TypeVarConstraint(Self, TypeVarConstraint) -> Unit = _
visit_TypeVarBinder(Self, TypeVarBinder) -> Unit = _
visit_TypeDeclBinder(Self, TypeDeclBinder) -> Unit = _
visit_Binder(Self, Binder) -> Unit = _
visit_Var(Self, Var) -> Unit = _
visit_ConstructorExtraInfo(Self, ConstructorExtraInfo) -> Unit = _
visit_ConstructorExtraInfo_TypeName(Self, TypeName) -> Unit = _
visit_ConstructorExtraInfo_Package(Self, String) -> Unit = _
visit_Constructor(Self, Constructor) -> Unit = _
visit_Accessor(Self, Accessor) -> Unit = _
visit_Accessor_Label(Self, Label) -> Unit = _
visit_Accessor_Index(Self, tuple_index~ : Int, loc~ : Location) -> Unit = _
visit_Accessor_Newtype(Self, loc~ : Location) -> Unit = _
visit_AliasTarget(Self, AliasTarget) -> Unit = _
visit_Argument(Self, Argument) -> Unit = _
visit_Parameter(Self, Parameter) -> Unit = _
visit_Parameter_DiscardPositional(Self, ty~ : Type?, loc~ : Location) -> Unit = _
visit_Parameter_Positional(Self, binder~ : Binder, ty~ : Type?) -> Unit = _
visit_Parameter_Labelled(Self, binder~ : Binder, ty~ : Type?) -> Unit = _
visit_Parameter_Optional(Self, binder~ : Binder, default~ : Expr, ty~ : Type?) -> Unit = _
visit_Parameter_QuestionOptional(Self, binder~ : Binder, ty~ : Type?) -> Unit = _
visit_Case(Self, Case) -> Unit = _
visit_LexCase(Self, LexCase) -> Unit = _
visit_LexTopPattern(Self, LexTopPattern) -> Unit = _
visit_LexTopPattern_Pattern(Self, LexPattern) -> Unit = _
visit_LexTopPattern_Binder(Self, Binder) -> Unit = _
visit_LexTopPattern_Wildcard(Self, loc~ : Location) -> Unit = _
visit_LexPattern(Self, LexPattern) -> Unit = _
visit_LexPattern_Regex(Self, lit~ : String, loc~ : Location) -> Unit = _
visit_LexPattern_RegexInterp(Self, elems~ : List[InterpElem], loc~ : Location) -> Unit = _
visit_LexPattern_Alias(Self, pat~ : LexPattern, binder~ : Binder, loc~ : Location) -> Unit = _
visit_LexPattern_Sequence(Self, pats~ : List[LexPattern], loc~ : Location) -> Unit = _
visit_SpreadableElem(Self, SpreadableElem) -> Unit = _
visit_SpreadableElem_Regular(Self, Expr) -> Unit = _
visit_SpreadableElem_Spread(Self, expr~ : Expr, loc~ : Location) -> Unit = _
visit_MapExprElem(Self, MapExprElem) -> Unit = _
visit_StaticAssertion(Self, StaticAssertion) -> Unit = _
visit_Func(Self, Func) -> Unit = _
visit_FieldDef(Self, FieldDef) -> Unit = _
visit_InterpElem(Self, InterpElem) -> Unit = _
visit_InterpElem_Literal(Self, repr~ : String, loc~ : Location) -> Unit = _
visit_InterpElem_Expr(Self, expr~ : Expr, loc~ : Location) -> Unit = _
visit_InterpElem_Source(Self, InterpSource) -> Unit = _
visit_MultilineStringElem(Self, MultilineStringElem) -> Unit = _
visit_MultilineStringElem_String(Self, String) -> Unit = _
visit_MultilineStringElem_Interp(Self, List[InterpElem]) -> Unit = _
visit_TryOperatorKind(Self, TryOperatorKind) -> Unit = _
visit_DotDotBinder(Self, DotDotBinder) -> Unit = _
visit_DotDotBinder_BinderAs(Self, Binder) -> Unit = _
visit_DotDotBinder_Binder(Self, Binder) -> Unit = _
visit_ArrayPattern(Self, ArrayPattern) -> Unit = _
visit_ArrayPattern_Pattern(Self, Pattern) -> Unit = _
visit_ArrayPattern_StringSpread(Self, str~ : String, loc~ : Location) -> Unit = _
visit_ArrayPattern_BytesSpread(Self, bytes~ : String, loc~ : Location) -> Unit = _
visit_ArrayPattern_ConstSpread(Self, binder~ : Binder, pkg~ : String?, loc~ : Location) -> Unit = _
visit_ArrayPatterns(Self, ArrayPatterns) -> Unit = _
visit_ArrayPatterns_Closed(Self, List[ArrayPattern]) -> Unit = _
visit_ArrayPatterns_Open(Self, List[ArrayPattern], List[ArrayPattern], DotDotBinder) -> Unit = _
visit_WhereClause(Self, WhereClause) -> Unit = _
visit_FieldPat(Self, FieldPat) -> Unit = _
visit_ConstrPatArg(Self, ConstrPatArg) -> Unit = _
visit_MapPatElem(Self, MapPatElem) -> Unit = _
visit_RangeKind(Self, RangeKind) -> Unit = _
visit_Pattern(Self, Pattern) -> Unit = _
visit_Pattern_Alias(Self, pat~ : Pattern, alias_~ : Binder, loc~ : Location) -> Unit = _
visit_Pattern_Any(Self, loc~ : Location) -> Unit = _
visit_Pattern_Array(Self, pats~ : ArrayPatterns, loc~ : Location) -> Unit = _
visit_Pattern_Constant(Self, c~ : Constant, loc~ : Location) -> Unit = _
visit_Pattern_Constraint(Self, pat~ : Pattern, ty~ : Type, loc~ : Location) -> Unit = _
visit_Pattern_Constr(Self, constr~ : Constructor, args~ : List[ConstrPatArg]?, is_open~ : Bool, loc~ : Location) -> Unit = _
visit_Pattern_Or(Self, pat1~ : Pattern, pat2~ : Pattern, loc~ : Location) -> Unit = _
visit_Pattern_Tuple(Self, pats~ : List[Pattern], loc~ : Location) -> Unit = _
visit_Pattern_Var(Self, Binder) -> Unit = _
visit_Pattern_Record(Self, fields~ : List[FieldPat], is_closed~ : Bool, loc~ : Location) -> Unit = _
visit_Pattern_Map(Self, elems~ : List[MapPatElem], is_closed~ : Bool, loc~ : Location) -> Unit = _
visit_Pattern_Range(Self, lhs~ : Pattern, rhs~ : Pattern, kind~ : RangeKind, loc~ : Location) -> Unit = _
visit_Pattern_SpecialConstr(Self, binder~ : Binder, args~ : List[ConstrPatArg], loc~ : Location) -> Unit = _
visit_LocalTypeDecl(Self, LocalTypeDecl) -> Unit = _
visit_DerivingDirective(Self, DerivingDirective) -> Unit = _
visit_TypeDecl(Self, TypeDecl) -> Unit = _
visit_FuncStubs(Self, FuncStubs) -> Unit = _
visit_FuncStubs_Import(Self, module_name~ : String, func_name~ : String, language~ : String?) -> Unit = _
visit_FuncStubs_Embedded(Self, language~ : String?, code~ : EmbeddedCode) -> Unit = _
visit_EmbeddedCode(Self, EmbeddedCode) -> Unit = _
visit_EmbeddedCode_CodeString(Self, String) -> Unit = _
visit_EmbeddedCode_CodeMultilineString(Self, List[String]) -> Unit = _
visit_DeclBody(Self, DeclBody) -> Unit = _
visit_DeclBody_DeclBody(Self, local_types~ : List[LocalTypeDecl], expr~ : Expr) -> Unit = _
visit_DeclBody_DeclStubs(Self, FuncStubs) -> Unit = _
visit_FunDecl(Self, FunDecl) -> Unit = _
visit_TraitMethodDecl(Self, TraitMethodDecl) -> Unit = _
visit_TraitDecl(Self, TraitDecl) -> Unit = _
visit_Impl(Self, Impl) -> Unit = _
visit_Impl_TopExpr(Self, expr~ : Expr, is_main~ : Bool, local_types~ : List[LocalTypeDecl], is_async~ : Location?, loc~ : Location) -> Unit = _
visit_Impl_TopTest(Self, expr~ : Expr, name~ : (String, Location)?, params~ : List[Parameter]?, local_types~ : List[LocalTypeDecl], is_async~ : Location?, loc~ : Location, attrs~ : List[Attribute], doc~ : DocString) -> Unit = _
visit_Impl_TopTypeDef(Self, TypeDecl) -> Unit = _
visit_Impl_TopFuncDef(Self, fun_decl~ : FunDecl, decl_body~ : DeclBody, loc~ : Location) -> Unit = _
visit_Impl_TopFuncAlias(Self, pkg~ : Label?, type_name~ : Label?, targets~ : List[AliasTarget], vis~ : Visibility, attrs~ : List[Attribute], is_list~ : Bool, doc~ : DocString, loc~ : Location) -> Unit = _
visit_Impl_TopLetDef(Self, binder~ : Binder, ty~ : Type?, expr~ : Expr, vis~ : Visibility, is_constant~ : Bool, loc~ : Location, attrs~ : List[Attribute], doc~ : DocString, is_declare~ : Bool) -> Unit = _
visit_Impl_TopTrait(Self, TraitDecl) -> Unit = _
visit_Impl_TopBatchTypeAlias(Self, pkg~ : Label?, targets~ : List[AliasTarget], vis~ : Visibility, loc~ : Location, attrs~ : List[Attribute], is_list~ : Bool, doc~ : DocString) -> Unit = _
visit_Impl_TopBatchTraitAlias(Self, pkg~ : Label?, targets~ : List[AliasTarget], vis~ : Visibility, loc~ : Location, attrs~ : List[Attribute], is_list~ : Bool, doc~ : DocString) -> Unit = _
visit_Impl_TopImpl(Self, self_ty~ : Type?, trait_~ : TypeName, method_name~ : Binder, has_error~ : Location?, quantifiers~ : List[TypeVarBinder], params~ : List[Parameter], ret_ty~ : Type?, err_ty~ : ErrorType, body~ : DeclBody, vis~ : Visibility, loc~ : Location, attrs~ : List[Attribute], doc~ : DocString) -> Unit = _
visit_Impl_TopView(Self, quantifiers~ : List[TypeVarBinder], source_ty~ : Type, view_type_name~ : String, view_type_loc~ : Location, view_constrs~ : List[ConstrDecl], view_func_name~ : Binder, parameters~ : List[Parameter], params_loc~ : Location, body~ : Expr, vis~ : Visibility, loc~ : Location, attrs~ : List[Attribute], doc~ : DocString) -> Unit = _
visit_Impl_TopImplRelation(Self, self_ty~ : Type, trait_~ : TypeName, quantifiers~ : List[TypeVarBinder], vis~ : Visibility, attrs~ : List[Attribute], loc~ : Location, doc~ : DocString, is_declare~ : Bool) -> Unit = _
visit_Impl_TopUsing(Self, pkg~ : Label, names~ : List[(AliasTarget, UsingKind)], vis~ : Visibility, attrs~ : List[Attribute], loc~ : Location, doc~ : DocString) -> Unit = _
visit_UsingKind(Self, UsingKind) -> Unit = _
visit_Expr(Self, Expr) -> Unit = _
visit_Expr_Apply(Self, func~ : Expr, args~ : List[Argument], attr~ : ApplyAttr, loc~ : Location) -> Unit = _
visit_Expr_Infix(Self, op~ : Var, lhs~ : Expr, rhs~ : Expr, loc~ : Location) -> Unit = _
visit_Expr_Unary(Self, op~ : Var, expr~ : Expr, loc~ : Location) -> Unit = _
visit_Expr_Array(Self, exprs~ : List[Expr], loc~ : Location) -> Unit = _
visit_Expr_ArraySpread(Self, elems~ : List[SpreadableElem], loc~ : Location) -> Unit = _
visit_Expr_ArrayGet(Self, array~ : Expr, index~ : Expr, loc~ : Location) -> Unit = _
visit_Expr_ArrayGetSlice(Self, array~ : Expr, start_index~ : Expr?, end_index~ : Expr?, index_loc~ : Location, loc~ : Location) -> Unit = _
visit_Expr_ArraySet(Self, array~ : Expr, index~ : Expr, value~ : Expr, loc~ : Location) -> Unit = _
visit_Expr_ArrayAugmentedSet(Self, op~ : Var, array~ : Expr, index~ : Expr, value~ : Expr, loc~ : Location) -> Unit = _
visit_Expr_Constant(Self, c~ : Constant, loc~ : Location) -> Unit = _
visit_Expr_MultilineString(Self, elems~ : List[MultilineStringElem], loc~ : Location) -> Unit = _
visit_Expr_Interp(Self, elems~ : List[InterpElem], loc~ : Location) -> Unit = _
visit_Expr_Constraint(Self, expr~ : Expr, ty~ : Type, loc~ : Location) -> Unit = _
visit_Expr_Constr(Self, constr~ : Constructor, loc~ : Location) -> Unit = _
visit_Expr_While(Self, loop_cond~ : Expr, loop_body~ : Expr, while_else~ : Expr?, label~ : Label?, loc~ : Location) -> Unit = _
visit_Expr_Function(Self, func~ : Func, loc~ : Location) -> Unit = _
visit_Expr_Ident(Self, id~ : Var, loc~ : Location) -> Unit = _
visit_Expr_If(Self, cond~ : Expr, ifso~ : Expr, ifnot~ : Expr?, loc~ : Location) -> Unit = _
visit_Expr_Guard(Self, cond~ : Expr, otherwise~ : Expr?, body~ : Expr, loc~ : Location) -> Unit = _
visit_Expr_Is(Self, expr~ : Expr, pat~ : Pattern, loc~ : Location) -> Unit = _
visit_Expr_IsLexMatch(Self, expr~ : Expr, strategy~ : Label?, pat~ : List[LexTopPattern], pat_loc~ : Location, loc~ : Location) -> Unit = _
visit_Expr_Defer(Self, expr~ : Expr, body~ : Expr, loc~ : Location) -> Unit = _
visit_Expr_LetFn(Self, name~ : Binder, func~ : Func, body~ : Expr, loc~ : Location) -> Unit = _
visit_Expr_LetRec(Self, bindings~ : List[(Binder, Func)], body~ : Expr, loc~ : Location) -> Unit = _
visit_Expr_LetAnd(Self, bindings~ : List[(Binder, Type?, Func)], body~ : Expr, loc~ : Location) -> Unit = _
visit_Expr_Let(Self, pattern~ : Pattern, expr~ : Expr, body~ : Expr, loc~ : Location) -> Unit = _
visit_Expr_Sequence(Self, exprs~ : List[Expr], last_expr~ : Expr, loc~ : Location) -> Unit = _
visit_Expr_Tuple(Self, exprs~ : List[Expr], loc~ : Location) -> Unit = _
visit_Expr_Record(Self, type_name~ : TypeName?, fields~ : List[FieldDef], trailing~ : TrailingMark, loc~ : Location) -> Unit = _
visit_Expr_RecordUpdate(Self, type_name~ : TypeName?, record~ : Expr, fields~ : List[FieldDef], loc~ : Location) -> Unit = _
visit_Expr_Field(Self, record~ : Expr, accessor~ : Accessor, loc~ : Location) -> Unit = _
visit_Expr_Method(Self, type_name~ : TypeName, method_name~ : Label, loc~ : Location) -> Unit = _
visit_Expr_DotApply(Self, self~ : Expr, method_name~ : Label, args~ : List[Argument], return_self~ : Bool, attr~ : ApplyAttr, loc~ : Location) -> Unit = _
visit_Expr_As(Self, expr~ : Expr, trait_~ : TypeName, loc~ : Location) -> Unit = _
visit_Expr_Mutate(Self, record~ : Expr, accessor~ : Accessor, field~ : Expr, augmented_by~ : Var?, loc~ : Location) -> Unit = _
visit_Expr_Match(Self, expr~ : Expr, cases~ : List[Case], match_loc~ : Location, loc~ : Location) -> Unit = _
visit_Expr_LexMatch(Self, strategy~ : Label?, expr~ : Expr, match_loc~ : Location, cases~ : List[LexCase], loc~ : Location) -> Unit = _
visit_Expr_LetMut(Self, binder~ : Binder, ty~ : Type?, expr~ : Expr, body~ : Expr, loc~ : Location) -> Unit = _
visit_Expr_Pipe(Self, lhs~ : Expr, rhs~ : Expr, loc~ : Location) -> Unit = _
visit_Expr_Assign(Self, var_~ : Var, expr~ : Expr, augmented_by~ : Var?, loc~ : Location) -> Unit = _
visit_Expr_Hole(Self, loc~ : Location, kind~ : Hole) -> Unit = _
visit_Expr_Return(Self, return_value~ : Expr?, loc~ : Location) -> Unit = _
visit_Expr_Raise(Self, err_value~ : Expr, loc~ : Location) -> Unit = _
visit_Expr_Unit(Self, loc~ : Location, faked~ : Bool) -> Unit = _
visit_Expr_Break(Self, arg~ : Expr?, label~ : Label?, loc~ : Location) -> Unit = _
visit_Expr_Continue(Self, args~ : List[Expr], label~ : Label?, loc~ : Location) -> Unit = _
visit_Expr_Loop(Self, arg~ : Expr, body~ : List[Case], label~ : Label?, loop_loc~ : Location, loc~ : Location) -> Unit = _
visit_Expr_For(Self, binders~ : List[(Binder, Expr)], condition~ : Expr?, continue_block~ : List[(Binder, Expr)], body~ : Expr, for_else~ : Expr?, label~ : Label?, loc~ : Location, where_clause~ : WhereClause?) -> Unit = _
visit_Expr_ForEach(Self, binders~ : List[Binder?], expr~ : Expr, body~ : Expr, else_block~ : Expr?, label~ : Label?, loc~ : Location) -> Unit = _
visit_Expr_Try(Self, body~ : Expr, catch_~ : List[Case], catch_all~ : Bool, try_else~ : List[Case]?, has_try~ : Bool, try_loc~ : Location, catch_loc~ : Location, else_loc~ : Location, loc~ : Location) -> Unit = _
visit_Expr_TryOperator(Self, body~ : Expr, kind~ : TryOperatorKind, try_loc~ : Location, loc~ : Location) -> Unit = _
visit_Expr_Map(Self, elems~ : List[MapExprElem], loc~ : Location) -> Unit = _
visit_Expr_Group(Self, expr~ : Expr, group~ : Group, loc~ : Location) -> Unit = _
visit_Expr_StaticAssert(Self, asserts~ : List[StaticAssertion], body~ : Expr) -> Unit = _
}pub(open) trait MapVisitor {
base(Self) -> MapVisitorBase[Self] = _
visit_Visibility(Self, Visibility) -> Visibility = _
visit_Visibility_Pub(Self, attr~ : String?, loc~ : Location) -> Visibility = _
visit_Visibility_Priv(Self, loc~ : Location) -> Visibility = _
visit_Constant(Self, Constant) -> Constant = _
visit_Label(Self, Label) -> Label = _
visit_ConstrName(Self, ConstrName) -> ConstrName = _
visit_LongIdent(Self, LongIdent) -> LongIdent = _
visit_LongIdent_Ident(Self, name~ : String) -> LongIdent = _
visit_LongIdent_Dot(Self, pkg~ : String, id~ : String) -> LongIdent = _
visit_TypeName(Self, TypeName) -> TypeName = _
visit_ConstrId(Self, ConstrId) -> ConstrId = _
visit_Type(Self, Type) -> Type = _
visit_Type_Any(Self, loc~ : Location) -> Type = _
visit_Type_Arrow(Self, args~ : List[Type], res~ : Type, err~ : ErrorType, is_async~ : Location?, loc~ : Location) -> Type = _
visit_Type_Tuple(Self, tys~ : List[Type], loc~ : Location) -> Type = _
visit_Type_Name(Self, constr_id~ : ConstrId, tys~ : List[Type], loc~ : Location) -> Type = _
visit_Type_Option(Self, ty~ : Type, loc~ : Location, question_loc~ : Location) -> Type = _
visit_Type_Object(Self, ConstrId) -> Type = _
visit_ErrorType(Self, ErrorType) -> ErrorType = _
visit_ErrorType_ErrorType(Self, ty~ : Type) -> ErrorType = _
visit_ErrorType_DefaultErrorType(Self, loc~ : Location) -> ErrorType = _
visit_ErrorType_Noraise(Self, loc~ : Location) -> ErrorType = _
visit_ErrorType_MaybeError(Self, ty~ : Type) -> ErrorType = _
visit_ConstrParam(Self, ConstrParam) -> ConstrParam = _
visit_ConstrDecl(Self, ConstrDecl) -> ConstrDecl = _
visit_ExceptionDecl(Self, ExceptionDecl) -> ExceptionDecl = _
visit_ExceptionDecl_SinglePayload(Self, Type) -> ExceptionDecl = _
visit_ExceptionDecl_EnumPayload(Self, List[ConstrDecl]) -> ExceptionDecl = _
visit_FieldName(Self, FieldName) -> FieldName = _
visit_FieldDecl(Self, FieldDecl) -> FieldDecl = _
visit_TypeDesc(Self, TypeDesc) -> TypeDesc = _
visit_TypeDesc_Newtype(Self, Type) -> TypeDesc = _
visit_TypeDesc_Error(Self, ExceptionDecl) -> TypeDesc = _
visit_TypeDesc_Variant(Self, List[ConstrDecl]) -> TypeDesc = _
visit_TypeDesc_Record(Self, fields~ : List[FieldDecl], constr_decl~ : FunDecl?) -> TypeDesc = _
visit_TypeDesc_TupleStruct(Self, List[Type]) -> TypeDesc = _
visit_TypeDesc_Alias(Self, Type) -> TypeDesc = _
visit_Hole(Self, Hole) -> Hole = _
visit_ArgumentKind(Self, ArgumentKind) -> ArgumentKind = _
visit_ArgumentKind_Labelled(Self, Label) -> ArgumentKind = _
visit_ArgumentKind_LabelledPun(Self, Label) -> ArgumentKind = _
visit_ArgumentKind_LabelledOption(Self, label~ : Label, question_loc~ : Location) -> ArgumentKind = _
visit_ArgumentKind_LabelledOptionPun(Self, label~ : Label, question_loc~ : Location) -> ArgumentKind = _
visit_FnKind(Self, FnKind) -> FnKind = _
visit_Group(Self, Group) -> Group = _
visit_TrailingMark(Self, TrailingMark) -> TrailingMark = _
visit_ApplyAttr(Self, ApplyAttr) -> ApplyAttr = _
visit_TypeVarConstraint(Self, TypeVarConstraint) -> TypeVarConstraint = _
visit_TypeVarBinder(Self, TypeVarBinder) -> TypeVarBinder = _
visit_TypeDeclBinder(Self, TypeDeclBinder) -> TypeDeclBinder = _
visit_Binder(Self, Binder) -> Binder = _
visit_Var(Self, Var) -> Var = _
visit_ConstructorExtraInfo(Self, ConstructorExtraInfo) -> ConstructorExtraInfo = _
visit_ConstructorExtraInfo_TypeName(Self, TypeName) -> ConstructorExtraInfo = _
visit_ConstructorExtraInfo_Package(Self, String) -> ConstructorExtraInfo = _
visit_Constructor(Self, Constructor) -> Constructor = _
visit_Accessor(Self, Accessor) -> Accessor = _
visit_Accessor_Label(Self, Label) -> Accessor = _
visit_Accessor_Index(Self, tuple_index~ : Int, loc~ : Location) -> Accessor = _
visit_Accessor_Newtype(Self, loc~ : Location) -> Accessor = _
visit_AliasTarget(Self, AliasTarget) -> AliasTarget = _
visit_Argument(Self, Argument) -> Argument = _
visit_Parameter(Self, Parameter) -> Parameter = _
visit_Parameter_DiscardPositional(Self, ty~ : Type?, loc~ : Location) -> Parameter = _
visit_Parameter_Positional(Self, binder~ : Binder, ty~ : Type?) -> Parameter = _
visit_Parameter_Labelled(Self, binder~ : Binder, ty~ : Type?) -> Parameter = _
visit_Parameter_Optional(Self, binder~ : Binder, default~ : Expr, ty~ : Type?) -> Parameter = _
visit_Parameter_QuestionOptional(Self, binder~ : Binder, ty~ : Type?) -> Parameter = _
visit_Case(Self, Case) -> Case = _
visit_LexCase(Self, LexCase) -> LexCase = _
visit_LexTopPattern(Self, LexTopPattern) -> LexTopPattern = _
visit_LexTopPattern_Pattern(Self, LexPattern) -> LexTopPattern = _
visit_LexTopPattern_Binder(Self, Binder) -> LexTopPattern = _
visit_LexTopPattern_Wildcard(Self, loc~ : Location) -> LexTopPattern = _
visit_LexPattern(Self, LexPattern) -> LexPattern = _
visit_LexPattern_Regex(Self, lit~ : String, loc~ : Location) -> LexPattern = _
visit_LexPattern_RegexInterp(Self, elems~ : List[InterpElem], loc~ : Location) -> LexPattern = _
visit_LexPattern_Alias(Self, pat~ : LexPattern, binder~ : Binder, loc~ : Location) -> LexPattern = _
visit_LexPattern_Sequence(Self, pats~ : List[LexPattern], loc~ : Location) -> LexPattern = _
visit_SpreadableElem(Self, SpreadableElem) -> SpreadableElem = _
visit_SpreadableElem_Regular(Self, Expr) -> SpreadableElem = _
visit_SpreadableElem_Spread(Self, expr~ : Expr, loc~ : Location) -> SpreadableElem = _
visit_MapExprElem(Self, MapExprElem) -> MapExprElem = _
visit_StaticAssertion(Self, StaticAssertion) -> StaticAssertion = _
visit_Func(Self, Func) -> Func = _
visit_FieldDef(Self, FieldDef) -> FieldDef = _
visit_InterpElem(Self, InterpElem) -> InterpElem = _
visit_InterpElem_Literal(Self, repr~ : String, loc~ : Location) -> InterpElem = _
visit_InterpElem_Expr(Self, expr~ : Expr, loc~ : Location) -> InterpElem = _
visit_InterpElem_Source(Self, InterpSource) -> InterpElem = _
visit_MultilineStringElem(Self, MultilineStringElem) -> MultilineStringElem = _
visit_MultilineStringElem_String(Self, String) -> MultilineStringElem = _
visit_MultilineStringElem_Interp(Self, List[InterpElem]) -> MultilineStringElem = _
visit_TryOperatorKind(Self, TryOperatorKind) -> TryOperatorKind = _
visit_DotDotBinder(Self, DotDotBinder) -> DotDotBinder = _
visit_DotDotBinder_BinderAs(Self, Binder) -> DotDotBinder = _
visit_DotDotBinder_Binder(Self, Binder) -> DotDotBinder = _
visit_ArrayPattern(Self, ArrayPattern) -> ArrayPattern = _
visit_ArrayPattern_Pattern(Self, Pattern) -> ArrayPattern = _
visit_ArrayPattern_StringSpread(Self, str~ : String, loc~ : Location) -> ArrayPattern = _
visit_ArrayPattern_BytesSpread(Self, bytes~ : String, loc~ : Location) -> ArrayPattern = _
visit_ArrayPattern_ConstSpread(Self, binder~ : Binder, pkg~ : String?, loc~ : Location) -> ArrayPattern = _
visit_ArrayPatterns(Self, ArrayPatterns) -> ArrayPatterns = _
visit_ArrayPatterns_Closed(Self, List[ArrayPattern]) -> ArrayPatterns = _
visit_ArrayPatterns_Open(Self, List[ArrayPattern], List[ArrayPattern], DotDotBinder) -> ArrayPatterns = _
visit_WhereClause(Self, WhereClause) -> WhereClause = _
visit_FieldPat(Self, FieldPat) -> FieldPat = _
visit_ConstrPatArg(Self, ConstrPatArg) -> ConstrPatArg = _
visit_MapPatElem(Self, MapPatElem) -> MapPatElem = _
visit_RangeKind(Self, RangeKind) -> RangeKind = _
visit_Pattern(Self, Pattern) -> Pattern = _
visit_Pattern_Alias(Self, pat~ : Pattern, alias_~ : Binder, loc~ : Location) -> Pattern = _
visit_Pattern_Any(Self, loc~ : Location) -> Pattern = _
visit_Pattern_Array(Self, pats~ : ArrayPatterns, loc~ : Location) -> Pattern = _
visit_Pattern_Constant(Self, c~ : Constant, loc~ : Location) -> Pattern = _
visit_Pattern_Constraint(Self, pat~ : Pattern, ty~ : Type, loc~ : Location) -> Pattern = _
visit_Pattern_Constr(Self, constr~ : Constructor, args~ : List[ConstrPatArg]?, is_open~ : Bool, loc~ : Location) -> Pattern = _
visit_Pattern_Or(Self, pat1~ : Pattern, pat2~ : Pattern, loc~ : Location) -> Pattern = _
visit_Pattern_Tuple(Self, pats~ : List[Pattern], loc~ : Location) -> Pattern = _
visit_Pattern_Var(Self, Binder) -> Pattern = _
visit_Pattern_Record(Self, fields~ : List[FieldPat], is_closed~ : Bool, loc~ : Location) -> Pattern = _
visit_Pattern_Map(Self, elems~ : List[MapPatElem], is_closed~ : Bool, loc~ : Location) -> Pattern = _
visit_Pattern_Range(Self, lhs~ : Pattern, rhs~ : Pattern, kind~ : RangeKind, loc~ : Location) -> Pattern = _
visit_Pattern_SpecialConstr(Self, binder~ : Binder, args~ : List[ConstrPatArg], loc~ : Location) -> Pattern = _
visit_LocalTypeDecl(Self, LocalTypeDecl) -> LocalTypeDecl = _
visit_DerivingDirective(Self, DerivingDirective) -> DerivingDirective = _
visit_TypeDecl(Self, TypeDecl) -> TypeDecl = _
visit_FuncStubs(Self, FuncStubs) -> FuncStubs = _
visit_FuncStubs_Import(Self, module_name~ : String, func_name~ : String, language~ : String?) -> FuncStubs = _
visit_FuncStubs_Embedded(Self, language~ : String?, code~ : EmbeddedCode) -> FuncStubs = _
visit_EmbeddedCode(Self, EmbeddedCode) -> EmbeddedCode = _
visit_EmbeddedCode_CodeString(Self, String) -> EmbeddedCode = _
visit_EmbeddedCode_CodeMultilineString(Self, List[String]) -> EmbeddedCode = _
visit_DeclBody(Self, DeclBody) -> DeclBody = _
visit_DeclBody_DeclBody(Self, local_types~ : List[LocalTypeDecl], expr~ : Expr) -> DeclBody = _
visit_DeclBody_DeclStubs(Self, FuncStubs) -> DeclBody = _
visit_FunDecl(Self, FunDecl) -> FunDecl = _
visit_TraitMethodDecl(Self, TraitMethodDecl) -> TraitMethodDecl = _
visit_TraitDecl(Self, TraitDecl) -> TraitDecl = _
visit_UsingKind(Self, UsingKind) -> UsingKind = _
visit_Impl(Self, Impl) -> Impl = _
visit_Impl_TopExpr(Self, expr~ : Expr, is_main~ : Bool, local_types~ : List[LocalTypeDecl], is_async~ : Location?, loc~ : Location) -> Impl = _
visit_Impl_TopTest(Self, expr~ : Expr, name~ : (String, Location)?, params~ : List[Parameter]?, local_types~ : List[LocalTypeDecl], is_async~ : Location?, loc~ : Location, attrs~ : List[Attribute], doc~ : DocString) -> Impl = _
visit_Impl_TopTypeDef(Self, TypeDecl) -> Impl = _
visit_Impl_TopFuncDef(Self, fun_decl~ : FunDecl, decl_body~ : DeclBody, loc~ : Location) -> Impl = _
visit_Impl_TopFuncAlias(Self, pkg~ : Label?, type_name~ : Label?, targets~ : List[AliasTarget], vis~ : Visibility, attrs~ : List[Attribute], is_list~ : Bool, doc~ : DocString, loc~ : Location) -> Impl = _
visit_Impl_TopLetDef(Self, binder~ : Binder, ty~ : Type?, expr~ : Expr, vis~ : Visibility, is_constant~ : Bool, loc~ : Location, attrs~ : List[Attribute], doc~ : DocString, is_declare~ : Bool) -> Impl = _
visit_Impl_TopTrait(Self, TraitDecl) -> Impl = _
visit_Impl_TopBatchTypeAlias(Self, pkg~ : Label?, targets~ : List[AliasTarget], vis~ : Visibility, loc~ : Location, attrs~ : List[Attribute], is_list~ : Bool, doc~ : DocString) -> Impl = _
visit_Impl_TopBatchTraitAlias(Self, pkg~ : Label?, targets~ : List[AliasTarget], vis~ : Visibility, loc~ : Location, attrs~ : List[Attribute], is_list~ : Bool, doc~ : DocString) -> Impl = _
visit_Impl_TopImpl(Self, self_ty~ : Type?, trait_~ : TypeName, method_name~ : Binder, has_error~ : Location?, quantifiers~ : List[TypeVarBinder], params~ : List[Parameter], ret_ty~ : Type?, err_ty~ : ErrorType, body~ : DeclBody, vis~ : Visibility, loc~ : Location, attrs~ : List[Attribute], doc~ : DocString) -> Impl = _
visit_Impl_TopView(Self, quantifiers~ : List[TypeVarBinder], source_ty~ : Type, view_type_name~ : String, view_type_loc~ : Location, view_constrs~ : List[ConstrDecl], view_func_name~ : Binder, parameters~ : List[Parameter], params_loc~ : Location, body~ : Expr, vis~ : Visibility, loc~ : Location, attrs~ : List[Attribute], doc~ : DocString) -> Impl = _
visit_Impl_TopImplRelation(Self, self_ty~ : Type, trait_~ : TypeName, quantifiers~ : List[TypeVarBinder], vis~ : Visibility, attrs~ : List[Attribute], loc~ : Location, doc~ : DocString, is_declare~ : Bool) -> Impl = _
visit_Impl_TopUsing(Self, pkg~ : Label, names~ : List[(AliasTarget, UsingKind)], vis~ : Visibility, attrs~ : List[Attribute], loc~ : Location, doc~ : DocString) -> Impl = _
visit_Expr(Self, Expr) -> Expr = _
visit_Expr_Apply(Self, func~ : Expr, args~ : List[Argument], attr~ : ApplyAttr, loc~ : Location) -> Expr = _
visit_Expr_Infix(Self, op~ : Var, lhs~ : Expr, rhs~ : Expr, loc~ : Location) -> Expr = _
visit_Expr_Unary(Self, op~ : Var, expr~ : Expr, loc~ : Location) -> Expr = _
visit_Expr_Array(Self, exprs~ : List[Expr], loc~ : Location) -> Expr = _
visit_Expr_ArraySpread(Self, elems~ : List[SpreadableElem], loc~ : Location) -> Expr = _
visit_Expr_ArrayGet(Self, array~ : Expr, index~ : Expr, loc~ : Location) -> Expr = _
visit_Expr_ArrayGetSlice(Self, array~ : Expr, start_index~ : Expr?, end_index~ : Expr?, index_loc~ : Location, loc~ : Location) -> Expr = _
visit_Expr_ArraySet(Self, array~ : Expr, index~ : Expr, value~ : Expr, loc~ : Location) -> Expr = _
visit_Expr_ArrayAugmentedSet(Self, op~ : Var, array~ : Expr, index~ : Expr, value~ : Expr, loc~ : Location) -> Expr = _
visit_Expr_Constant(Self, c~ : Constant, loc~ : Location) -> Expr = _
visit_Expr_MultilineString(Self, elems~ : List[MultilineStringElem], loc~ : Location) -> Expr = _
visit_Expr_Interp(Self, elems~ : List[InterpElem], loc~ : Location) -> Expr = _
visit_Expr_Constraint(Self, expr~ : Expr, ty~ : Type, loc~ : Location) -> Expr = _
visit_Expr_Constr(Self, constr~ : Constructor, loc~ : Location) -> Expr = _
visit_Expr_While(Self, loop_cond~ : Expr, loop_body~ : Expr, while_else~ : Expr?, label~ : Label?, loc~ : Location) -> Expr = _
visit_Expr_Function(Self, func~ : Func, loc~ : Location) -> Expr = _
visit_Expr_Ident(Self, id~ : Var, loc~ : Location) -> Expr = _
visit_Expr_If(Self, cond~ : Expr, ifso~ : Expr, ifnot~ : Expr?, loc~ : Location) -> Expr = _
visit_Expr_Guard(Self, cond~ : Expr, otherwise~ : Expr?, body~ : Expr, loc~ : Location) -> Expr = _
visit_Expr_Is(Self, expr~ : Expr, pat~ : Pattern, loc~ : Location) -> Expr = _
visit_Expr_IsLexMatch(Self, expr~ : Expr, strategy~ : Label?, pat~ : List[LexTopPattern], pat_loc~ : Location, loc~ : Location) -> Expr = _
visit_Expr_Defer(Self, expr~ : Expr, body~ : Expr, loc~ : Location) -> Expr = _
visit_Expr_LetFn(Self, name~ : Binder, func~ : Func, body~ : Expr, loc~ : Location) -> Expr = _
visit_Expr_LetRec(Self, bindings~ : List[(Binder, Func)], body~ : Expr, loc~ : Location) -> Expr = _
visit_Expr_LetAnd(Self, bindings~ : List[(Binder, Type?, Func)], body~ : Expr, loc~ : Location) -> Expr = _
visit_Expr_Let(Self, pattern~ : Pattern, expr~ : Expr, body~ : Expr, loc~ : Location) -> Expr = _
visit_Expr_Sequence(Self, exprs~ : List[Expr], last_expr~ : Expr, loc~ : Location) -> Expr = _
visit_Expr_Tuple(Self, exprs~ : List[Expr], loc~ : Location) -> Expr = _
visit_Expr_Record(Self, type_name~ : TypeName?, fields~ : List[FieldDef], trailing~ : TrailingMark, loc~ : Location) -> Expr = _
visit_Expr_RecordUpdate(Self, type_name~ : TypeName?, record~ : Expr, fields~ : List[FieldDef], loc~ : Location) -> Expr = _
visit_Expr_Field(Self, record~ : Expr, accessor~ : Accessor, loc~ : Location) -> Expr = _
visit_Expr_Method(Self, type_name~ : TypeName, method_name~ : Label, loc~ : Location) -> Expr = _
visit_Expr_DotApply(Self, self~ : Expr, method_name~ : Label, args~ : List[Argument], return_self~ : Bool, attr~ : ApplyAttr, loc~ : Location) -> Expr = _
visit_Expr_As(Self, expr~ : Expr, trait_~ : TypeName, loc~ : Location) -> Expr = _
visit_Expr_Mutate(Self, record~ : Expr, accessor~ : Accessor, field~ : Expr, augmented_by~ : Var?, loc~ : Location) -> Expr = _
visit_Expr_Match(Self, expr~ : Expr, cases~ : List[Case], match_loc~ : Location, loc~ : Location) -> Expr = _
visit_Expr_LexMatch(Self, strategy~ : Label?, expr~ : Expr, match_loc~ : Location, cases~ : List[LexCase], loc~ : Location) -> Expr = _
visit_Expr_LetMut(Self, binder~ : Binder, ty~ : Type?, expr~ : Expr, body~ : Expr, loc~ : Location) -> Expr = _
visit_Expr_Pipe(Self, lhs~ : Expr, rhs~ : Expr, loc~ : Location) -> Expr = _
visit_Expr_Assign(Self, var_~ : Var, expr~ : Expr, augmented_by~ : Var?, loc~ : Location) -> Expr = _
visit_Expr_Hole(Self, loc~ : Location, kind~ : Hole) -> Expr = _
visit_Expr_Return(Self, return_value~ : Expr?, loc~ : Location) -> Expr = _
visit_Expr_Raise(Self, err_value~ : Expr, loc~ : Location) -> Expr = _
visit_Expr_Unit(Self, loc~ : Location, faked~ : Bool) -> Expr = _
visit_Expr_Break(Self, arg~ : Expr?, label~ : Label?, loc~ : Location) -> Expr = _
visit_Expr_Continue(Self, args~ : List[Expr], label~ : Label?, loc~ : Location) -> Expr = _
visit_Expr_Loop(Self, arg~ : Expr, body~ : List[Case], label~ : Label?, loop_loc~ : Location, loc~ : Location) -> Expr = _
visit_Expr_For(Self, binders~ : List[(Binder, Expr)], condition~ : Expr?, continue_block~ : List[(Binder, Expr)], body~ : Expr, for_else~ : Expr?, label~ : Label?, loc~ : Location, where_clause~ : WhereClause?) -> Expr = _
visit_Expr_ForEach(Self, binders~ : List[Binder?], expr~ : Expr, body~ : Expr, else_block~ : Expr?, label~ : Label?, loc~ : Location) -> Expr = _
visit_Expr_Try(Self, body~ : Expr, catch_~ : List[Case], catch_all~ : Bool, try_else~ : List[Case]?, has_try~ : Bool, try_loc~ : Location, catch_loc~ : Location, else_loc~ : Location, loc~ : Location) -> Expr = _
visit_Expr_TryOperator(Self, body~ : Expr, kind~ : TryOperatorKind, try_loc~ : Location, loc~ : Location) -> Expr = _
visit_Expr_Map(Self, elems~ : List[MapExprElem], loc~ : Location) -> Expr = _
visit_Expr_Group(Self, expr~ : Expr, group~ : Group, loc~ : Location) -> Expr = _
visit_Expr_StaticAssert(Self, asserts~ : List[StaticAssertion], body~ : Expr) -> Expr = _
}pub(all) enum ArrayPatterns {
Closed(List[ArrayPattern])
Open(List[ArrayPattern], List[ArrayPattern], DotDotBinder)
}pub(all) enum Constant {
Bool(Bool)
Byte(String)
Bytes(String)
Char(String)
Int(String)
Int64(String)
UInt(String)
UInt64(String)
Float(String)
Double(String)
String(String)
BigInt(String)
}pub(all) struct ConstrDecl {
name : ConstrName
args : List[ConstrParam]?
tag : (String, Location)?
loc : Location
attrs : List[Attribute]
doc : DocString
}pub(all) enum Expr {
Apply(Expr, List[Argument], ApplyAttr, Location)
Infix(Var, Expr, Expr, Location)
Unary(Var, Expr, Location)
Array(List[Expr], Location)
ArraySpread(List[SpreadableElem], Location)
ArrayGet(Expr, Expr, Location)
ArrayGetSlice(Expr, Expr?, Expr?, Location, Location)
ArraySet(Expr, Expr, Expr, Location)
ArrayAugmentedSet(Var, Expr, Expr, Expr, Location)
Constant(Constant, Location)
MultilineString(List[MultilineStringElem], Location)
Interp(List[InterpElem], Location)
Constraint(Expr, Type, Location)
Constr(Constructor, Location)
While(Expr, Expr, Expr?, Label?, Location)
Function(Func, Location)
Ident(Var, Location)
If(Expr, Expr, Expr?, Location)
Guard(Expr, Expr?, Expr, Location)
Is(Expr, Pattern, Location)
IsLexMatch(Expr, Label?, List[LexTopPattern], Location, Location)
Defer(Expr, Expr, Location)
LetFn(Binder, Func, Expr, Location)
LetRec(List[(Binder, Func)], Expr, Location)
LetAnd(List[(Binder, Type?, Func)], Expr, Location)
Let(Pattern, Expr, Expr, Location)
Sequence(List[Expr], Expr, Location)
Tuple(List[Expr], Location)
Record(TypeName?, List[FieldDef], TrailingMark, Location)
RecordUpdate(TypeName?, Expr, List[FieldDef], Location)
Field(Expr, Accessor, Location)
Method(TypeName, Label, Location)
DotApply(Expr, Label, List[Argument], Bool, ApplyAttr, Location)
As(Expr, TypeName, Location)
Mutate(Expr, Accessor, Expr, Var?, Location)
Match(Expr, List[Case], Location, Location)
LexMatch(Label?, Expr, Location, List[LexCase], Location)
LetMut(Binder, Type?, Expr, Expr, Location)
Pipe(Expr, Expr, Location)
Assign(Var, Expr, Var?, Location)
Hole(Location, Hole)
Return(Expr?, Location)
Raise(Expr, Location)
Unit(Location, Bool)
Break(Expr?, Label?, Location)
Continue(List[Expr], Label?, Location)
Loop(Expr, List[Case], Label?, Location, Location)
For(List[(Binder, Expr)], Expr?, List[(Binder, Expr)], Expr, Expr?, WhereClause?, Label?, Location)
ForEach(List[Binder?], Expr, Expr, Expr?, Label?, Location)
Try(Expr, List[Case], Bool, List[Case]?, Bool, Location, Location, Location, Location)
TryOperator(Expr, TryOperatorKind, Location, Location)
Map(List[MapExprElem], Location)
Group(Expr, Group, Location)
StaticAssert(List[StaticAssertion], Expr)
}pub(all) struct FunDecl {
type_name : TypeName?
name : Binder
has_error : Location?
is_async : Location?
decl_params : List[Parameter]?
params_loc : Location
quantifiers : List[TypeVarBinder]
return_type : Type?
error_type : ErrorType
vis : Visibility
attrs : List[Attribute]
doc : DocString
loc : Location
}pub(all) enum Impl {
TopExpr(Expr, Bool, List[LocalTypeDecl], Location?, Location)
TopTest(Expr, (String, Location)?, List[Parameter]?, List[LocalTypeDecl], Location?, Location, List[Attribute], DocString)
TopTypeDef(TypeDecl)
TopFuncDef(FunDecl, DeclBody, Location)
TopFuncAlias(Label?, Label?, List[AliasTarget], Visibility, List[Attribute], Bool, DocString, Location)
TopLetDef(Binder, Type?, Expr, Visibility, Bool, Location, List[Attribute], DocString, Bool)
TopTrait(TraitDecl)
TopBatchTypeAlias(Label?, List[AliasTarget], Visibility, Location, List[Attribute], Bool, DocString)
TopBatchTraitAlias(Label?, List[AliasTarget], Visibility, Location, List[Attribute], Bool, DocString)
TopImpl(Type?, TypeName, Binder, Location?, List[TypeVarBinder], List[Parameter], Type?, ErrorType, DeclBody, Visibility, Location, List[Attribute], DocString)
TopView(List[TypeVarBinder], Type, String, Location, List[ConstrDecl], Binder, List[Parameter], Location, Expr, Visibility, Location, List[Attribute], DocString)
TopImplRelation(Type, TypeName, List[TypeVarBinder], Visibility, List[Attribute], Location, DocString, Bool)
TopUsing(Label, List[(AliasTarget, UsingKind)], Visibility, List[Attribute], Location, DocString)
}pub type IterVisitorBase[T] Timpl IterVisitor for IterVisitorBase[T]fn[T : IterVisitor] visit_Accessor_Index(_ : IterVisitorBase[T], tuple_index~ : Int, loc~ : Location) -> Unitfn[T : IterVisitor] visit_ArgumentKind(env : IterVisitorBase[T], argument_kind : ArgumentKind) -> Unitfn[T : IterVisitor] visit_ArgumentKind_LabelledOption(_ : IterVisitorBase[T], label~ : Label, question_loc~ : Location) -> Unitfn[T : IterVisitor] visit_ArgumentKind_LabelledOptionPun(_ : IterVisitorBase[T], label~ : Label, question_loc~ : Location) -> Unitfn[T : IterVisitor] visit_ArrayPattern(env : IterVisitorBase[T], array_pattern : ArrayPattern) -> Unitfn[T : IterVisitor] visit_ArrayPattern_BytesSpread(_ : IterVisitorBase[T], bytes~ : String, loc~ : Location) -> Unitfn[T : IterVisitor] visit_ArrayPattern_ConstSpread(env : IterVisitorBase[T], binder~ : Binder, pkg~ : String?, loc~ : Location) -> Unitfn[T : IterVisitor] visit_ArrayPattern_StringSpread(_ : IterVisitorBase[T], str~ : String, loc~ : Location) -> Unitfn[T : IterVisitor] visit_ArrayPatterns(env : IterVisitorBase[T], array_patterns : ArrayPatterns) -> Unitfn[T : IterVisitor] visit_ArrayPatterns_Closed(env : IterVisitorBase[T], array_patterns : List[ArrayPattern]) -> Unitfn[T : IterVisitor] visit_ArrayPatterns_Open(env : IterVisitorBase[T], prefix_patterns : List[ArrayPattern], suffix_patterns : List[ArrayPattern], dot_dot_binder : DotDotBinder) -> Unitfn[T : IterVisitor] visit_ConstrPatArg(env : IterVisitorBase[T], constr_pat_arg : ConstrPatArg) -> Unitfn[T : IterVisitor] visit_ConstructorExtraInfo(env : IterVisitorBase[T], constructor_extra_info : ConstructorExtraInfo) -> Unitfn[T : IterVisitor] visit_ConstructorExtraInfo_TypeName(env : IterVisitorBase[T], type_name : TypeName) -> Unitfn[T : IterVisitor] visit_DeclBody_DeclBody(env : IterVisitorBase[T], local_types~ : List[LocalTypeDecl], expr~ : Expr) -> Unitfn[T : IterVisitor] visit_DeclBody_DeclStubs(env : IterVisitorBase[T], func_stubs : FuncStubs) -> Unitfn[T : IterVisitor] visit_DerivingDirective(env : IterVisitorBase[T], deriving_directive : DerivingDirective) -> Unitfn[T : IterVisitor] visit_DotDotBinder(env : IterVisitorBase[T], dot_dot_binder : DotDotBinder) -> Unitfn[T : IterVisitor] visit_EmbeddedCode(env : IterVisitorBase[T], embedded_code : EmbeddedCode) -> Unitfn[T : IterVisitor] visit_EmbeddedCode_CodeMultilineString(_ : IterVisitorBase[T], _ : List[String]) -> Unitfn[T : IterVisitor] visit_ErrorType_DefaultErrorType(_ : IterVisitorBase[T], loc~ : Location) -> Unitfn[T : IterVisitor] visit_ExceptionDecl(env : IterVisitorBase[T], exception_decl : ExceptionDecl) -> Unitfn[T : IterVisitor] visit_ExceptionDecl_EnumPayload(env : IterVisitorBase[T], constr_decls : List[ConstrDecl]) -> Unitfn[T : IterVisitor] visit_ExceptionDecl_SinglePayload(env : IterVisitorBase[T], type_ : Type) -> Unitfn[T : IterVisitor] visit_Expr_Apply(env : IterVisitorBase[T], func~ : Expr, args~ : List[Argument], attr~ : ApplyAttr, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Array(env : IterVisitorBase[T], exprs~ : List[Expr], loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_ArrayAugmentedSet(env : IterVisitorBase[T], op~ : Var, array~ : Expr, index~ : Expr, value~ : Expr, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_ArrayGet(env : IterVisitorBase[T], array~ : Expr, index~ : Expr, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_ArrayGetSlice(env : IterVisitorBase[T], array~ : Expr, start_index~ : Expr?, end_index~ : Expr?, index_loc~ : Location, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_ArraySet(env : IterVisitorBase[T], array~ : Expr, index~ : Expr, value~ : Expr, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_ArraySpread(env : IterVisitorBase[T], elems~ : List[SpreadableElem], loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_As(env : IterVisitorBase[T], expr~ : Expr, trait_~ : TypeName, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Assign(env : IterVisitorBase[T], var_~ : Var, expr~ : Expr, augmented_by~ : Var?, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Break(env : IterVisitorBase[T], arg~ : Expr?, label~ : Label?, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Constant(env : IterVisitorBase[T], c~ : Constant, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Constr(env : IterVisitorBase[T], constr~ : Constructor, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Constraint(env : IterVisitorBase[T], expr~ : Expr, ty~ : Type, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Continue(env : IterVisitorBase[T], args~ : List[Expr], label~ : Label?, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Defer(env : IterVisitorBase[T], expr~ : Expr, body~ : Expr, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_DotApply(env : IterVisitorBase[T], self~ : Expr, method_name~ : Label, args~ : List[Argument], return_self~ : Bool, attr~ : ApplyAttr, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Field(env : IterVisitorBase[T], record~ : Expr, accessor~ : Accessor, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_For(env : IterVisitorBase[T], binders~ : List[(Binder, Expr)], condition~ : Expr?, continue_block~ : List[(Binder, Expr)], body~ : Expr, for_else~ : Expr?, label~ : Label?, loc~ : Location, where_clause~ : WhereClause?) -> Unitfn[T : IterVisitor] visit_Expr_ForEach(env : IterVisitorBase[T], binders~ : List[Binder?], expr~ : Expr, body~ : Expr, else_block~ : Expr?, label~ : Label?, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Function(env : IterVisitorBase[T], func~ : Func, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Group(env : IterVisitorBase[T], expr~ : Expr, group~ : Group, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Guard(env : IterVisitorBase[T], cond~ : Expr, otherwise~ : Expr?, body~ : Expr, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Hole(env : IterVisitorBase[T], loc~ : Location, kind~ : Hole) -> Unitfn[T : IterVisitor] visit_Expr_If(env : IterVisitorBase[T], cond~ : Expr, ifso~ : Expr, ifnot~ : Expr?, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Infix(env : IterVisitorBase[T], op~ : Var, lhs~ : Expr, rhs~ : Expr, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Interp(env : IterVisitorBase[T], elems~ : List[InterpElem], loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Is(env : IterVisitorBase[T], expr~ : Expr, pat~ : Pattern, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_IsLexMatch(env : IterVisitorBase[T], expr~ : Expr, strategy~ : Label?, pat~ : List[LexTopPattern], pat_loc~ : Location, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Let(env : IterVisitorBase[T], pattern~ : Pattern, expr~ : Expr, body~ : Expr, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_LetAnd(env : IterVisitorBase[T], bindings~ : List[(Binder, Type?, Func)], body~ : Expr, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_LetFn(env : IterVisitorBase[T], name~ : Binder, func~ : Func, body~ : Expr, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_LetMut(env : IterVisitorBase[T], binder~ : Binder, ty~ : Type?, expr~ : Expr, body~ : Expr, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_LetRec(env : IterVisitorBase[T], bindings~ : List[(Binder, Func)], body~ : Expr, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_LexMatch(env : IterVisitorBase[T], strategy~ : Label?, expr~ : Expr, match_loc~ : Location, cases~ : List[LexCase], loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Loop(env : IterVisitorBase[T], arg~ : Expr, body~ : List[Case], label~ : Label?, loop_loc~ : Location, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Map(env : IterVisitorBase[T], elems~ : List[MapExprElem], loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Match(env : IterVisitorBase[T], expr~ : Expr, cases~ : List[Case], match_loc~ : Location, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Method(env : IterVisitorBase[T], type_name~ : TypeName, method_name~ : Label, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_MultilineString(env : IterVisitorBase[T], elems~ : List[MultilineStringElem], loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Mutate(env : IterVisitorBase[T], record~ : Expr, accessor~ : Accessor, field~ : Expr, augmented_by~ : Var?, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Pipe(env : IterVisitorBase[T], lhs~ : Expr, rhs~ : Expr, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Raise(env : IterVisitorBase[T], err_value~ : Expr, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Record(env : IterVisitorBase[T], type_name~ : TypeName?, fields~ : List[FieldDef], trailing~ : TrailingMark, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_RecordUpdate(env : IterVisitorBase[T], type_name~ : TypeName?, record~ : Expr, fields~ : List[FieldDef], loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Return(env : IterVisitorBase[T], return_value~ : Expr?, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Sequence(env : IterVisitorBase[T], exprs~ : List[Expr], last_expr~ : Expr, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_StaticAssert(env : IterVisitorBase[T], asserts~ : List[StaticAssertion], body~ : Expr) -> Unitfn[T : IterVisitor] visit_Expr_TryOperator(env : IterVisitorBase[T], body~ : Expr, kind~ : TryOperatorKind, try_loc~ : Location, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Tuple(env : IterVisitorBase[T], exprs~ : List[Expr], loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_Unary(env : IterVisitorBase[T], op~ : Var, expr~ : Expr, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Expr_While(env : IterVisitorBase[T], loop_cond~ : Expr, loop_body~ : Expr, while_else~ : Expr?, label~ : Label?, loc~ : Location) -> Unitfn[T : IterVisitor] visit_FuncStubs_Embedded(env : IterVisitorBase[T], language~ : String?, code~ : EmbeddedCode) -> Unitfn[T : IterVisitor] visit_FuncStubs_Import(_ : IterVisitorBase[T], module_name~ : String, func_name~ : String, language~ : String?) -> Unitfn[T : IterVisitor] visit_Impl_TopBatchTraitAlias(env : IterVisitorBase[T], pkg~ : Label?, targets~ : List[AliasTarget], vis~ : Visibility, loc~ : Location, attrs~ : List[Attribute], is_list~ : Bool, doc~ : DocString) -> Unitfn[T : IterVisitor] visit_Impl_TopBatchTypeAlias(env : IterVisitorBase[T], pkg~ : Label?, targets~ : List[AliasTarget], vis~ : Visibility, loc~ : Location, attrs~ : List[Attribute], is_list~ : Bool, doc~ : DocString) -> Unitfn[T : IterVisitor] visit_Impl_TopExpr(env : IterVisitorBase[T], expr~ : Expr, is_main~ : Bool, local_types~ : List[LocalTypeDecl], is_async~ : Location?, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Impl_TopFuncAlias(env : IterVisitorBase[T], pkg~ : Label?, type_name~ : Label?, targets~ : List[AliasTarget], vis~ : Visibility, attrs~ : List[Attribute], is_list~ : Bool, doc~ : DocString, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Impl_TopFuncDef(env : IterVisitorBase[T], fun_decl~ : FunDecl, decl_body~ : DeclBody, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Impl_TopImpl(env : IterVisitorBase[T], self_ty~ : Type?, trait_~ : TypeName, method_name~ : Binder, has_error~ : Location?, quantifiers~ : List[TypeVarBinder], params~ : List[Parameter], ret_ty~ : Type?, err_ty~ : ErrorType, body~ : DeclBody, vis~ : Visibility, loc~ : Location, attrs~ : List[Attribute], doc~ : DocString) -> Unitfn[T : IterVisitor] visit_Impl_TopImplRelation(env : IterVisitorBase[T], self_ty~ : Type, trait_~ : TypeName, quantifiers~ : List[TypeVarBinder], vis~ : Visibility, attrs~ : List[Attribute], loc~ : Location, doc~ : DocString, is_declare~ : Bool) -> Unitfn[T : IterVisitor] visit_Impl_TopLetDef(env : IterVisitorBase[T], binder~ : Binder, ty~ : Type?, expr~ : Expr, vis~ : Visibility, is_constant~ : Bool, loc~ : Location, attrs~ : List[Attribute], doc~ : DocString, is_declare~ : Bool) -> Unitfn[T : IterVisitor] visit_Impl_TopTest(env : IterVisitorBase[T], expr~ : Expr, name~ : (String, Location)?, params~ : List[Parameter]?, local_types~ : List[LocalTypeDecl], is_async~ : Location?, loc~ : Location, attrs~ : List[Attribute], doc~ : DocString) -> Unitfn[T : IterVisitor] visit_Impl_TopUsing(env : IterVisitorBase[T], pkg~ : Label, names~ : List[(AliasTarget, UsingKind)], vis~ : Visibility, attrs~ : List[Attribute], loc~ : Location, doc~ : DocString) -> Unitfn[T : IterVisitor] visit_Impl_TopView(env : IterVisitorBase[T], quantifiers~ : List[TypeVarBinder], source_ty~ : Type, view_type_name~ : String, view_type_loc~ : Location, view_constrs~ : List[ConstrDecl], view_func_name~ : Binder, parameters~ : List[Parameter], params_loc~ : Location, body~ : Expr, vis~ : Visibility, loc~ : Location, attrs~ : List[Attribute], doc~ : DocString) -> Unitfn[T : IterVisitor] visit_InterpElem_Expr(env : IterVisitorBase[T], expr~ : Expr, loc~ : Location) -> Unitfn[T : IterVisitor] visit_InterpElem_Literal(_ : IterVisitorBase[T], repr~ : String, loc~ : Location) -> Unitfn[T : IterVisitor] visit_InterpElem_Source(_ : IterVisitorBase[T], interp_source : InterpSource) -> Unitfn[T : IterVisitor] visit_LexPattern_Alias(env : IterVisitorBase[T], pat~ : LexPattern, binder~ : Binder, loc~ : Location) -> Unitfn[T : IterVisitor] visit_LexPattern_Regex(env : IterVisitorBase[T], lit~ : String, loc~ : Location) -> Unitfn[T : IterVisitor] visit_LexPattern_RegexInterp(env : IterVisitorBase[T], elems~ : List[InterpElem], loc~ : Location) -> Unitfn[T : IterVisitor] visit_LexPattern_Sequence(env : IterVisitorBase[T], pats~ : List[LexPattern], loc~ : Location) -> Unitfn[T : IterVisitor] visit_LexTopPattern(env : IterVisitorBase[T], lex_top_pattern : LexTopPattern) -> Unitfn[T : IterVisitor] visit_LexTopPattern_Pattern(env : IterVisitorBase[T], lex_pattern : LexPattern) -> Unitfn[T : IterVisitor] visit_LocalTypeDecl(env : IterVisitorBase[T], localtype_decl : LocalTypeDecl) -> Unitfn[T : IterVisitor] visit_LongIdent_Dot(_ : IterVisitorBase[T], pkg~ : String, id~ : String) -> Unitfn[T : IterVisitor] visit_MapExprElem(env : IterVisitorBase[T], map_expr_elem : MapExprElem) -> Unitfn[T : IterVisitor] visit_MultilineStringElem(env : IterVisitorBase[T], multiline_string_elem : MultilineStringElem) -> Unitfn[T : IterVisitor] visit_MultilineStringElem_Interp(_ : IterVisitorBase[T], interp_elems : List[InterpElem]) -> Unitfn[T : IterVisitor] visit_MultilineStringElem_String(_ : IterVisitorBase[T], string_val : String) -> Unitfn[T : IterVisitor] visit_Parameter_DiscardPositional(env : IterVisitorBase[T], ty~ : Type?, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Parameter_Labelled(env : IterVisitorBase[T], binder~ : Binder, ty~ : Type?) -> Unitfn[T : IterVisitor] visit_Parameter_Optional(env : IterVisitorBase[T], binder~ : Binder, default~ : Expr, ty~ : Type?) -> Unitfn[T : IterVisitor] visit_Parameter_Positional(env : IterVisitorBase[T], binder~ : Binder, ty~ : Type?) -> Unitfn[T : IterVisitor] visit_Parameter_QuestionOptional(env : IterVisitorBase[T], binder~ : Binder, ty~ : Type?) -> Unitfn[T : IterVisitor] visit_Pattern_Alias(env : IterVisitorBase[T], pat~ : Pattern, alias_~ : Binder, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Pattern_Array(env : IterVisitorBase[T], pats~ : ArrayPatterns, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Pattern_Constant(env : IterVisitorBase[T], c~ : Constant, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Pattern_Constr(env : IterVisitorBase[T], constr~ : Constructor, args~ : List[ConstrPatArg]?, is_open~ : Bool, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Pattern_Constraint(env : IterVisitorBase[T], pat~ : Pattern, ty~ : Type, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Pattern_Map(env : IterVisitorBase[T], elems~ : List[MapPatElem], is_closed~ : Bool, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Pattern_Or(env : IterVisitorBase[T], pat1~ : Pattern, pat2~ : Pattern, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Pattern_Range(env : IterVisitorBase[T], lhs~ : Pattern, rhs~ : Pattern, kind~ : RangeKind, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Pattern_Record(env : IterVisitorBase[T], fields~ : List[FieldPat], is_closed~ : Bool, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Pattern_SpecialConstr(env : IterVisitorBase[T], binder~ : Binder, args~ : List[ConstrPatArg], loc~ : Location) -> Unitfn[T : IterVisitor] visit_Pattern_Tuple(env : IterVisitorBase[T], pats~ : List[Pattern], loc~ : Location) -> Unitfn[T : IterVisitor] visit_SpreadableElem(env : IterVisitorBase[T], spreadable_elem : SpreadableElem) -> Unitfn[T : IterVisitor] visit_SpreadableElem_Spread(env : IterVisitorBase[T], expr~ : Expr, loc~ : Location) -> Unitfn[T : IterVisitor] visit_StaticAssertion(env : IterVisitorBase[T], static_assertion : StaticAssertion) -> Unitfn[T : IterVisitor] visit_TraitMethodDecl(env : IterVisitorBase[T], trait_method_decl : TraitMethodDecl) -> Unitfn[T : IterVisitor] visit_TryOperatorKind(_ : IterVisitorBase[T], try_operator_kind : TryOperatorKind) -> Unitfn[T : IterVisitor] visit_TypeDesc_Error(env : IterVisitorBase[T], exception_decl : ExceptionDecl) -> Unitfn[T : IterVisitor] visit_TypeDesc_Record(env : IterVisitorBase[T], fields~ : List[FieldDecl], constr_decl~ : FunDecl?) -> Unitfn[T : IterVisitor] visit_TypeDesc_TupleStruct(env : IterVisitorBase[T], types : List[Type]) -> Unitfn[T : IterVisitor] visit_TypeDesc_Variant(env : IterVisitorBase[T], constr_decls : List[ConstrDecl]) -> Unitfn[T : IterVisitor] visit_TypeVarBinder(env : IterVisitorBase[T], type_var_binder : TypeVarBinder) -> Unitfn[T : IterVisitor] visit_TypeVarConstraint(env : IterVisitorBase[T], type_var_constraint : TypeVarConstraint) -> Unitfn[T : IterVisitor] visit_Type_Arrow(env : IterVisitorBase[T], args~ : List[Type], res~ : Type, err~ : ErrorType, is_async~ : Location?, loc~ : Location) -> Unitfn[T : IterVisitor] visit_Type_Name(env : IterVisitorBase[T], constr_id~ : ConstrId, tys~ : List[Type], loc~ : Location) -> Unitfn[T : IterVisitor] visit_Type_Option(env : IterVisitorBase[T], ty~ : Type, loc~ : Location, question_loc~ : Location) -> Unitfn[T : IterVisitor] visit_Type_Tuple(env : IterVisitorBase[T], tys~ : List[Type], loc~ : Location) -> Unitfn[T : IterVisitor] visit_Visibility_Pub(_ : IterVisitorBase[T], attr~ : String?, loc~ : Location) -> Unit#deprecated("Use `struct T(A)` to declare a newtype and use `.0` access the underlying type instead.")
fn[T] IterVisitorBase::inner(self : IterVisitorBase[T]) -> Tpub(all) enum LexPattern {
Regex(String, Location)
RegexInterp(List[InterpElem], Location)
Alias(LexPattern, Binder, Location)
Sequence(List[LexPattern], Location)
}pub(all) struct LocalTypeDecl {
tycon : String
tycon_loc : Location
components : TypeDesc
deriving : List[DerivingDirective]
}pub(all) enum LongIdent {
Ident(String)
Dot(String, String)
}pub(all) type MapVisitorBase[T] Timpl MapVisitor for MapVisitorBase[T]fn[T : MapVisitor] visit_Accessor_Index(_ : MapVisitorBase[T], tuple_index~ : Int, loc~ : Location) -> Accessorfn[T : MapVisitor] visit_AliasTarget(env : MapVisitorBase[T], alias_target : AliasTarget) -> AliasTargetfn[T : MapVisitor] visit_ArgumentKind(env : MapVisitorBase[T], argument_kind : ArgumentKind) -> ArgumentKindfn[T : MapVisitor] visit_ArgumentKind_Labelled(_ : MapVisitorBase[T], label : Label) -> ArgumentKindfn[T : MapVisitor] visit_ArgumentKind_LabelledOption(_ : MapVisitorBase[T], label~ : Label, question_loc~ : Location) -> ArgumentKindfn[T : MapVisitor] visit_ArgumentKind_LabelledOptionPun(_ : MapVisitorBase[T], label~ : Label, question_loc~ : Location) -> ArgumentKindfn[T : MapVisitor] visit_ArgumentKind_LabelledPun(_ : MapVisitorBase[T], label : Label) -> ArgumentKindfn[T : MapVisitor] visit_ArrayPattern(env : MapVisitorBase[T], array_pattern : ArrayPattern) -> ArrayPatternfn[T : MapVisitor] visit_ArrayPattern_BytesSpread(_ : MapVisitorBase[T], bytes~ : String, loc~ : Location) -> ArrayPatternfn[T : MapVisitor] visit_ArrayPattern_ConstSpread(env : MapVisitorBase[T], binder~ : Binder, pkg~ : String?, loc~ : Location) -> ArrayPatternfn[T : MapVisitor] visit_ArrayPattern_Pattern(env : MapVisitorBase[T], pattern : Pattern) -> ArrayPatternfn[T : MapVisitor] visit_ArrayPattern_StringSpread(_ : MapVisitorBase[T], str~ : String, loc~ : Location) -> ArrayPatternfn[T : MapVisitor] visit_ArrayPatterns(env : MapVisitorBase[T], array_patterns : ArrayPatterns) -> ArrayPatternsfn[T : MapVisitor] visit_ArrayPatterns_Closed(env : MapVisitorBase[T], array_patterns : List[ArrayPattern]) -> ArrayPatternsfn[T : MapVisitor] visit_ArrayPatterns_Open(env : MapVisitorBase[T], prefix_patterns : List[ArrayPattern], suffix_patterns : List[ArrayPattern], dot_dot_binder : DotDotBinder) -> ArrayPatternsfn[T : MapVisitor] visit_ConstrDecl(env : MapVisitorBase[T], constr_decl : ConstrDecl) -> ConstrDeclfn[T : MapVisitor] visit_ConstrParam(env : MapVisitorBase[T], constr_param : ConstrParam) -> ConstrParamfn[T : MapVisitor] visit_ConstrPatArg(env : MapVisitorBase[T], constr_pat_arg : ConstrPatArg) -> ConstrPatArgfn[T : MapVisitor] visit_Constructor(env : MapVisitorBase[T], constructor_ : Constructor) -> Constructorfn[T : MapVisitor] visit_ConstructorExtraInfo(env : MapVisitorBase[T], constructor_extra_info : ConstructorExtraInfo) -> ConstructorExtraInfofn[T : MapVisitor] visit_ConstructorExtraInfo_Package(_ : MapVisitorBase[T], package_ : String) -> ConstructorExtraInfofn[T : MapVisitor] visit_ConstructorExtraInfo_TypeName(env : MapVisitorBase[T], type_name : TypeName) -> ConstructorExtraInfofn[T : MapVisitor] visit_DeclBody_DeclBody(env : MapVisitorBase[T], local_types~ : List[LocalTypeDecl], expr~ : Expr) -> DeclBodyfn[T : MapVisitor] visit_DeclBody_DeclStubs(env : MapVisitorBase[T], func_stubs : FuncStubs) -> DeclBodyfn[T : MapVisitor] visit_DerivingDirective(env : MapVisitorBase[T], deriving_directive : DerivingDirective) -> DerivingDirectivefn[T : MapVisitor] visit_DotDotBinder(env : MapVisitorBase[T], dot_dot_binder : DotDotBinder) -> DotDotBinderfn[T : MapVisitor] visit_DotDotBinder_Binder(env : MapVisitorBase[T], binder : Binder) -> DotDotBinderfn[T : MapVisitor] visit_DotDotBinder_BinderAs(env : MapVisitorBase[T], binder : Binder) -> DotDotBinderfn[T : MapVisitor] visit_EmbeddedCode(env : MapVisitorBase[T], embedded_code : EmbeddedCode) -> EmbeddedCodefn[T : MapVisitor] visit_EmbeddedCode_CodeMultilineString(_ : MapVisitorBase[T], strings : List[String]) -> EmbeddedCodefn[T : MapVisitor] visit_EmbeddedCode_CodeString(_ : MapVisitorBase[T], string_literal : String) -> EmbeddedCodefn[T : MapVisitor] visit_ErrorType_DefaultErrorType(_ : MapVisitorBase[T], loc~ : Location) -> ErrorTypefn[T : MapVisitor] visit_ExceptionDecl(env : MapVisitorBase[T], exception_decl : ExceptionDecl) -> ExceptionDeclfn[T : MapVisitor] visit_ExceptionDecl_EnumPayload(env : MapVisitorBase[T], constr_decls : List[ConstrDecl]) -> ExceptionDeclfn[T : MapVisitor] visit_ExceptionDecl_SinglePayload(env : MapVisitorBase[T], type_ : Type) -> ExceptionDeclfn[T : MapVisitor] visit_Expr_Apply(env : MapVisitorBase[T], func~ : Expr, args~ : List[Argument], attr~ : ApplyAttr, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Array(env : MapVisitorBase[T], exprs~ : List[Expr], loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_ArrayAugmentedSet(env : MapVisitorBase[T], op~ : Var, array~ : Expr, index~ : Expr, value~ : Expr, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_ArrayGet(env : MapVisitorBase[T], array~ : Expr, index~ : Expr, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_ArrayGetSlice(env : MapVisitorBase[T], array~ : Expr, start_index~ : Expr?, end_index~ : Expr?, index_loc~ : Location, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_ArraySet(env : MapVisitorBase[T], array~ : Expr, index~ : Expr, value~ : Expr, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_ArraySpread(env : MapVisitorBase[T], elems~ : List[SpreadableElem], loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_As(env : MapVisitorBase[T], expr~ : Expr, trait_~ : TypeName, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Assign(env : MapVisitorBase[T], var_~ : Var, expr~ : Expr, augmented_by~ : Var?, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Break(env : MapVisitorBase[T], arg~ : Expr?, label~ : Label?, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Constant(env : MapVisitorBase[T], c~ : Constant, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Constr(env : MapVisitorBase[T], constr~ : Constructor, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Constraint(env : MapVisitorBase[T], expr~ : Expr, ty~ : Type, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Continue(env : MapVisitorBase[T], args~ : List[Expr], label~ : Label?, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Defer(env : MapVisitorBase[T], expr~ : Expr, body~ : Expr, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_DotApply(env : MapVisitorBase[T], self~ : Expr, method_name~ : Label, args~ : List[Argument], return_self~ : Bool, attr~ : ApplyAttr, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Field(env : MapVisitorBase[T], record~ : Expr, accessor~ : Accessor, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_For(env : MapVisitorBase[T], binders~ : List[(Binder, Expr)], condition~ : Expr?, continue_block~ : List[(Binder, Expr)], body~ : Expr, for_else~ : Expr?, label~ : Label?, loc~ : Location, where_clause~ : WhereClause?) -> Exprfn[T : MapVisitor] visit_Expr_ForEach(env : MapVisitorBase[T], binders~ : List[Binder?], expr~ : Expr, body~ : Expr, else_block~ : Expr?, label~ : Label?, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Function(env : MapVisitorBase[T], func~ : Func, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Group(env : MapVisitorBase[T], expr~ : Expr, group~ : Group, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Guard(env : MapVisitorBase[T], cond~ : Expr, otherwise~ : Expr?, body~ : Expr, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_If(env : MapVisitorBase[T], cond~ : Expr, ifso~ : Expr, ifnot~ : Expr?, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Infix(env : MapVisitorBase[T], op~ : Var, lhs~ : Expr, rhs~ : Expr, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Interp(env : MapVisitorBase[T], elems~ : List[InterpElem], loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Is(env : MapVisitorBase[T], expr~ : Expr, pat~ : Pattern, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_IsLexMatch(env : MapVisitorBase[T], expr~ : Expr, strategy~ : Label?, pat~ : List[LexTopPattern], pat_loc~ : Location, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Let(env : MapVisitorBase[T], pattern~ : Pattern, expr~ : Expr, body~ : Expr, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_LetAnd(env : MapVisitorBase[T], bindings~ : List[(Binder, Type?, Func)], body~ : Expr, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_LetFn(env : MapVisitorBase[T], name~ : Binder, func~ : Func, body~ : Expr, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_LetMut(env : MapVisitorBase[T], binder~ : Binder, ty~ : Type?, expr~ : Expr, body~ : Expr, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_LetRec(env : MapVisitorBase[T], bindings~ : List[(Binder, Func)], body~ : Expr, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_LexMatch(env : MapVisitorBase[T], strategy~ : Label?, expr~ : Expr, match_loc~ : Location, cases~ : List[LexCase], loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Loop(env : MapVisitorBase[T], arg~ : Expr, body~ : List[Case], label~ : Label?, loop_loc~ : Location, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Map(env : MapVisitorBase[T], elems~ : List[MapExprElem], loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Match(env : MapVisitorBase[T], expr~ : Expr, cases~ : List[Case], match_loc~ : Location, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Method(env : MapVisitorBase[T], type_name~ : TypeName, method_name~ : Label, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_MultilineString(env : MapVisitorBase[T], elems~ : List[MultilineStringElem], loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Mutate(env : MapVisitorBase[T], record~ : Expr, accessor~ : Accessor, field~ : Expr, augmented_by~ : Var?, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Pipe(env : MapVisitorBase[T], lhs~ : Expr, rhs~ : Expr, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Raise(env : MapVisitorBase[T], err_value~ : Expr, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Record(env : MapVisitorBase[T], type_name~ : TypeName?, fields~ : List[FieldDef], trailing~ : TrailingMark, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_RecordUpdate(env : MapVisitorBase[T], type_name~ : TypeName?, record~ : Expr, fields~ : List[FieldDef], loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Return(env : MapVisitorBase[T], return_value~ : Expr?, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Sequence(env : MapVisitorBase[T], exprs~ : List[Expr], last_expr~ : Expr, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_StaticAssert(env : MapVisitorBase[T], asserts~ : List[StaticAssertion], body~ : Expr) -> Exprfn[T : MapVisitor] visit_Expr_TryOperator(env : MapVisitorBase[T], body~ : Expr, kind~ : TryOperatorKind, try_loc~ : Location, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Tuple(env : MapVisitorBase[T], exprs~ : List[Expr], loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_Unary(env : MapVisitorBase[T], op~ : Var, expr~ : Expr, loc~ : Location) -> Exprfn[T : MapVisitor] visit_Expr_While(env : MapVisitorBase[T], loop_cond~ : Expr, loop_body~ : Expr, while_else~ : Expr?, label~ : Label?, loc~ : Location) -> Exprfn[T : MapVisitor] visit_FuncStubs_Embedded(env : MapVisitorBase[T], language~ : String?, code~ : EmbeddedCode) -> FuncStubsfn[T : MapVisitor] visit_FuncStubs_Import(_ : MapVisitorBase[T], module_name~ : String, func_name~ : String, language~ : String?) -> FuncStubsfn[T : MapVisitor] visit_Impl_TopBatchTraitAlias(env : MapVisitorBase[T], pkg~ : Label?, targets~ : List[AliasTarget], vis~ : Visibility, loc~ : Location, attrs~ : List[Attribute], is_list~ : Bool, doc~ : DocString) -> Implfn[T : MapVisitor] visit_Impl_TopBatchTypeAlias(env : MapVisitorBase[T], pkg~ : Label?, targets~ : List[AliasTarget], vis~ : Visibility, loc~ : Location, attrs~ : List[Attribute], is_list~ : Bool, doc~ : DocString) -> Implfn[T : MapVisitor] visit_Impl_TopExpr(env : MapVisitorBase[T], expr~ : Expr, is_main~ : Bool, local_types~ : List[LocalTypeDecl], is_async~ : Location?, loc~ : Location) -> Implfn[T : MapVisitor] visit_Impl_TopFuncAlias(env : MapVisitorBase[T], pkg~ : Label?, type_name~ : Label?, targets~ : List[AliasTarget], vis~ : Visibility, attrs~ : List[Attribute], is_list~ : Bool, doc~ : DocString, loc~ : Location) -> Implfn[T : MapVisitor] visit_Impl_TopFuncDef(env : MapVisitorBase[T], fun_decl~ : FunDecl, decl_body~ : DeclBody, loc~ : Location) -> Implfn[T : MapVisitor] visit_Impl_TopImpl(env : MapVisitorBase[T], self_ty~ : Type?, trait_~ : TypeName, method_name~ : Binder, has_error~ : Location?, quantifiers~ : List[TypeVarBinder], params~ : List[Parameter], ret_ty~ : Type?, err_ty~ : ErrorType, body~ : DeclBody, vis~ : Visibility, loc~ : Location, attrs~ : List[Attribute], doc~ : DocString) -> Implfn[T : MapVisitor] visit_Impl_TopImplRelation(env : MapVisitorBase[T], self_ty~ : Type, trait_~ : TypeName, quantifiers~ : List[TypeVarBinder], vis~ : Visibility, attrs~ : List[Attribute], loc~ : Location, doc~ : DocString, is_declare~ : Bool) -> Implfn[T : MapVisitor] visit_Impl_TopLetDef(env : MapVisitorBase[T], binder~ : Binder, ty~ : Type?, expr~ : Expr, vis~ : Visibility, is_constant~ : Bool, loc~ : Location, attrs~ : List[Attribute], doc~ : DocString, is_declare~ : Bool) -> Implfn[T : MapVisitor] visit_Impl_TopTest(env : MapVisitorBase[T], expr~ : Expr, name~ : (String, Location)?, params~ : List[Parameter]?, local_types~ : List[LocalTypeDecl], is_async~ : Location?, loc~ : Location, attrs~ : List[Attribute], doc~ : DocString) -> Implfn[T : MapVisitor] visit_Impl_TopUsing(env : MapVisitorBase[T], pkg~ : Label, names~ : List[(AliasTarget, UsingKind)], vis~ : Visibility, attrs~ : List[Attribute], loc~ : Location, doc~ : DocString) -> Implfn[T : MapVisitor] visit_Impl_TopView(env : MapVisitorBase[T], quantifiers~ : List[TypeVarBinder], source_ty~ : Type, view_type_name~ : String, view_type_loc~ : Location, view_constrs~ : List[ConstrDecl], view_func_name~ : Binder, parameters~ : List[Parameter], params_loc~ : Location, body~ : Expr, vis~ : Visibility, loc~ : Location, attrs~ : List[Attribute], doc~ : DocString) -> Implfn[T : MapVisitor] visit_InterpElem(env : MapVisitorBase[T], interp_elem : InterpElem) -> InterpElemfn[T : MapVisitor] visit_InterpElem_Expr(env : MapVisitorBase[T], expr~ : Expr, loc~ : Location) -> InterpElemfn[T : MapVisitor] visit_InterpElem_Literal(_ : MapVisitorBase[T], repr~ : String, loc~ : Location) -> InterpElemfn[T : MapVisitor] visit_InterpElem_Source(_ : MapVisitorBase[T], interp_source : InterpSource) -> InterpElemfn[T : MapVisitor] visit_LexPattern(env : MapVisitorBase[T], lex_pattern : LexPattern) -> LexPatternfn[T : MapVisitor] visit_LexPattern_Alias(env : MapVisitorBase[T], pat~ : LexPattern, binder~ : Binder, loc~ : Location) -> LexPatternfn[T : MapVisitor] visit_LexPattern_Regex(env : MapVisitorBase[T], lit~ : String, loc~ : Location) -> LexPatternfn[T : MapVisitor] visit_LexPattern_RegexInterp(env : MapVisitorBase[T], elems~ : List[InterpElem], loc~ : Location) -> LexPatternfn[T : MapVisitor] visit_LexPattern_Sequence(env : MapVisitorBase[T], pats~ : List[LexPattern], loc~ : Location) -> LexPatternfn[T : MapVisitor] visit_LexTopPattern(env : MapVisitorBase[T], lex_top_pattern : LexTopPattern) -> LexTopPatternfn[T : MapVisitor] visit_LexTopPattern_Binder(env : MapVisitorBase[T], binder : Binder) -> LexTopPatternfn[T : MapVisitor] visit_LexTopPattern_Pattern(env : MapVisitorBase[T], lex_pattern : LexPattern) -> LexTopPatternfn[T : MapVisitor] visit_LexTopPattern_Wildcard(env : MapVisitorBase[T], loc~ : Location) -> LexTopPatternfn[T : MapVisitor] visit_LocalTypeDecl(env : MapVisitorBase[T], localtype_decl : LocalTypeDecl) -> LocalTypeDeclfn[T : MapVisitor] visit_LongIdent_Dot(_ : MapVisitorBase[T], pkg~ : String, id~ : String) -> LongIdentfn[T : MapVisitor] visit_MapExprElem(env : MapVisitorBase[T], mapexpr_elem : MapExprElem) -> MapExprElemfn[T : MapVisitor] visit_MapPatElem(env : MapVisitorBase[T], mappat_elem : MapPatElem) -> MapPatElemfn[T : MapVisitor] visit_MultilineStringElem(env : MapVisitorBase[T], multiline_string_elem : MultilineStringElem) -> MultilineStringElemfn[T : MapVisitor] visit_MultilineStringElem_Interp(_ : MapVisitorBase[T], interp_elems : List[InterpElem]) -> MultilineStringElemfn[T : MapVisitor] visit_MultilineStringElem_String(_ : MapVisitorBase[T], string_val : String) -> MultilineStringElemfn[T : MapVisitor] visit_Parameter_DiscardPositional(env : MapVisitorBase[T], ty~ : Type?, loc~ : Location) -> Parameterfn[T : MapVisitor] visit_Parameter_Labelled(env : MapVisitorBase[T], binder~ : Binder, ty~ : Type?) -> Parameterfn[T : MapVisitor] visit_Parameter_Optional(env : MapVisitorBase[T], binder~ : Binder, default~ : Expr, ty~ : Type?) -> Parameterfn[T : MapVisitor] visit_Parameter_Positional(env : MapVisitorBase[T], binder~ : Binder, ty~ : Type?) -> Parameterfn[T : MapVisitor] visit_Parameter_QuestionOptional(env : MapVisitorBase[T], binder~ : Binder, ty~ : Type?) -> Parameterfn[T : MapVisitor] visit_Pattern_Alias(env : MapVisitorBase[T], pat~ : Pattern, alias_~ : Binder, loc~ : Location) -> Patternfn[T : MapVisitor] visit_Pattern_Array(env : MapVisitorBase[T], pats~ : ArrayPatterns, loc~ : Location) -> Patternfn[T : MapVisitor] visit_Pattern_Constant(env : MapVisitorBase[T], c~ : Constant, loc~ : Location) -> Patternfn[T : MapVisitor] visit_Pattern_Constr(env : MapVisitorBase[T], constr~ : Constructor, args~ : List[ConstrPatArg]?, is_open~ : Bool, loc~ : Location) -> Patternfn[T : MapVisitor] visit_Pattern_Constraint(env : MapVisitorBase[T], pat~ : Pattern, ty~ : Type, loc~ : Location) -> Patternfn[T : MapVisitor] visit_Pattern_Map(env : MapVisitorBase[T], elems~ : List[MapPatElem], is_closed~ : Bool, loc~ : Location) -> Patternfn[T : MapVisitor] visit_Pattern_Or(env : MapVisitorBase[T], pat1~ : Pattern, pat2~ : Pattern, loc~ : Location) -> Patternfn[T : MapVisitor] visit_Pattern_Range(env : MapVisitorBase[T], lhs~ : Pattern, rhs~ : Pattern, kind~ : RangeKind, loc~ : Location) -> Patternfn[T : MapVisitor] visit_Pattern_Record(env : MapVisitorBase[T], fields~ : List[FieldPat], is_closed~ : Bool, loc~ : Location) -> Patternfn[T : MapVisitor] visit_Pattern_SpecialConstr(env : MapVisitorBase[T], binder~ : Binder, args~ : List[ConstrPatArg], loc~ : Location) -> Patternfn[T : MapVisitor] visit_Pattern_Tuple(env : MapVisitorBase[T], pats~ : List[Pattern], loc~ : Location) -> Patternfn[T : MapVisitor] visit_SpreadableElem(env : MapVisitorBase[T], spreadable_elem : SpreadableElem) -> SpreadableElemfn[T : MapVisitor] visit_SpreadableElem_Regular(env : MapVisitorBase[T], expr : Expr) -> SpreadableElemfn[T : MapVisitor] visit_SpreadableElem_Spread(env : MapVisitorBase[T], expr~ : Expr, loc~ : Location) -> SpreadableElemfn[T : MapVisitor] visit_StaticAssertion(env : MapVisitorBase[T], static_assertion : StaticAssertion) -> StaticAssertionfn[T : MapVisitor] visit_TrailingMark(_ : MapVisitorBase[T], trailing_mark : TrailingMark) -> TrailingMarkfn[T : MapVisitor] visit_TraitMethodDecl(env : MapVisitorBase[T], method_decl : TraitMethodDecl) -> TraitMethodDeclfn[T : MapVisitor] visit_TryOperatorKind(_ : MapVisitorBase[T], try_operator_kind : TryOperatorKind) -> TryOperatorKindfn[T : MapVisitor] visit_TypeDeclBinder(_ : MapVisitorBase[T], type_decl_binder : TypeDeclBinder) -> TypeDeclBinderfn[T : MapVisitor] visit_TypeDesc_Error(env : MapVisitorBase[T], exception_decl : ExceptionDecl) -> TypeDescfn[T : MapVisitor] visit_TypeDesc_Record(env : MapVisitorBase[T], fields~ : List[FieldDecl], constr_decl~ : FunDecl?) -> TypeDescfn[T : MapVisitor] visit_TypeDesc_TupleStruct(env : MapVisitorBase[T], types : List[Type]) -> TypeDescfn[T : MapVisitor] visit_TypeDesc_Variant(env : MapVisitorBase[T], constr_decls : List[ConstrDecl]) -> TypeDescfn[T : MapVisitor] visit_TypeVarBinder(env : MapVisitorBase[T], type_var_binder : TypeVarBinder) -> TypeVarBinderfn[T : MapVisitor] visit_TypeVarConstraint(env : MapVisitorBase[T], type_var_constraint : TypeVarConstraint) -> TypeVarConstraintfn[T : MapVisitor] visit_Type_Arrow(env : MapVisitorBase[T], args~ : List[Type], res~ : Type, err~ : ErrorType, is_async~ : Location?, loc~ : Location) -> Typefn[T : MapVisitor] visit_Type_Name(env : MapVisitorBase[T], constr_id~ : ConstrId, tys~ : List[Type], loc~ : Location) -> Typefn[T : MapVisitor] visit_Type_Option(env : MapVisitorBase[T], ty~ : Type, loc~ : Location, question_loc~ : Location) -> Typefn[T : MapVisitor] visit_Type_Tuple(env : MapVisitorBase[T], tys~ : List[Type], loc~ : Location) -> Typefn[T : MapVisitor] visit_Visibility_Pub(_ : MapVisitorBase[T], attr~ : String?, loc~ : Location) -> Visibilityfn[T : MapVisitor] visit_WhereClause(env : MapVisitorBase[T], where_clause : WhereClause) -> WhereClause#deprecated("Use `struct T(A)` to declare a newtype and use `.0` access the underlying type instead.")
fn[T] MapVisitorBase::inner(self : MapVisitorBase[T]) -> Tpub(all) enum Pattern {
Alias(Pattern, Binder, Location)
Any(Location)
Array(ArrayPatterns, Location)
Constant(Constant, Location)
Constraint(Pattern, Type, Location)
Constr(Constructor, List[ConstrPatArg]?, Bool, Location)
Or(Pattern, Pattern, Location)
Tuple(List[Pattern], Location)
Var(Binder)
Record(List[FieldPat], Bool, Location)
Map(List[MapPatElem], Bool, Location)
Range(Pattern, Pattern, RangeKind, Location)
SpecialConstr(Binder, List[ConstrPatArg], Location)
}pub(all) struct TraitDecl {
name : Binder
supers : List[TypeVarConstraint]
methods : List[TraitMethodDecl]
vis : Visibility
loc : Location
attrs : List[Attribute]
doc : DocString
is_declare : Bool
}pub(all) struct TypeDecl {
tycon : String
tycon_loc : Location
params : List[TypeDeclBinder]
components : TypeDesc
attrs : List[Attribute]
doc : DocString
type_vis : Visibility
deriving : List[DerivingDirective]
loc : Location
is_declare : Bool
}pub(all) enum TypeDesc {
Abstract
Extern
Newtype(Type)
Error(ExceptionDecl)
Variant(List[ConstrDecl])
Record(List[FieldDecl], FunDecl?)
TupleStruct(List[Type])
Alias(Type)
}pub(all) struct TypeVarBinder {
name : String
name_loc : Location
constraints : List[TypeVarConstraint]
}fn [T] f() -> Unit {...}
// ^---- TypeVarBinder
fn [T : TraitA + TraitB] f() -> Unit {...}
// ^^^^^^^^^^^^^^^^^^^----- TypeVarBinderfn make_constr_pattern(loc~ : Location, constr : Constructor, args : List[ConstrPatArg]?, is_open : Bool) -> PatternInstall
Download zipAST and parsers for the MoonBit programming language
Dependencies