WalkerValueOptions
interface WalkerValueOptions {
event?: WalkerEvent;
fn?: WalkerValueFilter | null;
type?:
| EnumToken
| EnumToken[]
| ((arena: AstArena, token: number) => boolean)
| null;
}
event?: WalkerEvent;
fn?: WalkerValueFilter | null;
type?:
| EnumToken
| EnumToken[]
| ((arena: AstArena, token: number) => boolean)
| null;
}
Index
Properties
Properties
Optionalevent
events the filter is called for. defaults to WalkerEvent.Enter
Optionalfn
filter function
Optionaltype
the filter is only called for the tokens of this type, these types, or the tokens accepted by this function
options of AstArena.walkValues