MrKWatkins.Ast 0.9.135 Help

PipelineStage<TContext, TBaseNode>.Run Method

Overloads

Method

Description

Run(TContext, TBaseNode)

Runs the stage, returning a tuple of whether the pipeline should continue and the potentially replaced root node.

Run(TContext, TBaseNode, out TBaseNode)

Runs the stage, returning the potentially new root via an out parameter.

Run(TContext, TBaseNode)

Definition

Runs the stage, returning a tuple of whether the pipeline should continue and the potentially replaced root node.

public (bool Success, TBaseNode Root) Run(TContext context, TBaseNode root);

Parameters

Name

Type

Description

context

TContext

The processing context.

root

TBaseNode

The root node to run processing on.

Returns

(bool Success, TBaseNode Root) A tuple of whether processing should continue and the root node, which may have been replaced by a Replacer<TContext, TBaseNode>.

Run(TContext, TBaseNode, out TBaseNode)

Definition

Runs the stage, returning the potentially new root via an out parameter.

public bool Run(TContext context, TBaseNode root, out TBaseNode newRoot);

Parameters

Name

Type

Description

context

TContext

The processing context.

root

TBaseNode

The root node to run processing on.

newRoot

TBaseNode

The root node after processing, which may have been replaced by a Replacer<TContext, TBaseNode>.

Returns

Boolean true if the pipeline should proceed to the next stage, false otherwise.

Last modified: 10 March 2026