Class RewriterBuilderCase<TArgs, TBase, TSub>
Tools for building rewriters for a single subclass of a base type.
Inheritance
RewriterBuilderCase<TArgs, TBase, TSub>
Assembly: Sawmill.dll
Syntax
public sealed class RewriterBuilderCase<TArgs, TBase, TSub>
Type Parameters
Name |
Description |
TArgs |
|
TBase |
|
TSub |
|
Methods
|
Improve this Doc
View Source
Child(Func<TSub, TBase>)
Select an immediate child
Declaration
public RewriterBuilderCase<(TArgs, TBase), TBase, TSub> Child(Func<TSub, TBase> child)
Parameters
Type |
Name |
Description |
Func<TSub, TBase> |
child |
|
Returns
|
Improve this Doc
View Source
Children(Func<TSub, ImmutableList<TBase>>)
Select a list of children.
Declaration
public RewriterBuilderCase<(TArgs, ImmutableList<TBase>), TBase, TSub> Children(Func<TSub, ImmutableList<TBase>> children)
Parameters
Returns
|
Improve this Doc
View Source
Field<U>(Func<TSub, U>)
Select a field from the subclass
Declaration
public RewriterBuilderCase<(TArgs, U), TBase, TSub> Field<U>(Func<TSub, U> field)
Parameters
Type |
Name |
Description |
Func<TSub, U> |
field |
|
Returns
Type Parameters