Sawmill

Class RewriterBuilder<T>

Tools for building rewriters.

Inheritance
Declaration
public class RewriterBuilder<T> : Object
Type Parameters
Name Description

T

The rewritable tree type

Methods

Build()

Build a rewriter

Declaration
public IRewriter<T> Build()
Returns
Type Description

IRewriter<T>

Case<TSub>(Func<RewriterBuilderCase<Object, T, TSub>, IRewriter<T>>)

Handle a single subclass of T

Declaration
public RewriterBuilder<T> Case<TSub>(Func<RewriterBuilderCase<object, T, TSub>, IRewriter<T>> builderAction)
    where TSub : T
Parameters
Type Name Description

Func<RewriterBuilderCase<Object, T, TSub>, IRewriter<T>>

builderAction

Returns
Type Description

RewriterBuilder<T>

Type Parameters
Name Description

TSub