Search


Search something to see results

WalkerValueOptions

interface WalkerValueOptions {
    event?: WalkerEvent;
    fn?: WalkerValueFilter | null;
    type?:
        | EnumToken
        | EnumToken[]
        | ((arena: AstArena, token: number) => boolean)
        | null;
}

Index

Properties

event?: WalkerEvent

events the filter is called for. defaults to WalkerEvent.Enter

fn?: WalkerValueFilter | null

filter function

type?:
    | EnumToken
    | EnumToken[]
    | ((arena: AstArena, token: number) => boolean)
    | null

the filter is only called for the tokens of this type, these types, or the tokens accepted by this function