Show / Hide Table of Contents

Class RewriterBuilderCase<TArgs, TBase, TSub>

Tools for building rewriters for a single subclass of a base type.

Inheritance
Object
RewriterBuilderCase<TArgs, TBase, TSub>
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Sawmill
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
Type Description
RewriterBuilderCase<ValueTuple<TArgs, TBase>, TBase, TSub>
| 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
Type Name Description
Func<TSub, ImmutableList<TBase>> children
Returns
Type Description
RewriterBuilderCase<ValueTuple<TArgs, ImmutableList<TBase>>, TBase, TSub>
| 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 Description
RewriterBuilderCase<ValueTuple<TArgs, U>, TBase, TSub>
Type Parameters
Name Description
U
  • Improve this Doc
  • View Source
Back to top Generated by DocFX