Table of Contents

Class PreparedExpressionParserAction

Namespace
Utils.Parser.Expressions
Assembly
Utils.Parser.Expressions.dll

Represents an expression-backed parser inline action that was compiled during embedded-code preparation.

public sealed class PreparedExpressionParserAction
Inheritance
PreparedExpressionParserAction
Inherited Members
Extension Methods

Constructors

PreparedExpressionParserAction(EmbeddedCodeSource, EmbeddedCodePreparationContext, Action<ParserActionExecutionContext>)

Initializes a new prepared parser action artifact.

public PreparedExpressionParserAction(EmbeddedCodeSource source, EmbeddedCodePreparationContext preparationContext, Action<ParserActionExecutionContext> action)

Parameters

source EmbeddedCodeSource

Embedded-code source that produced this artifact.

preparationContext EmbeddedCodePreparationContext

Preparation context used to compile this artifact.

action Action<ParserActionExecutionContext>

Compiled action delegate that executes against the current runtime context.

Exceptions

ArgumentNullException

Thrown when any required argument is null.

Properties

PreparationContext

Gets the preparation context used to compile this artifact.

public EmbeddedCodePreparationContext PreparationContext { get; }

Property Value

EmbeddedCodePreparationContext

Source

Gets the embedded-code source that produced this artifact.

public EmbeddedCodeSource Source { get; }

Property Value

EmbeddedCodeSource

Methods

Execute(ParserActionExecutionContext)

Executes the compiled action against the supplied runtime context without recompiling source text.

public ParserActionExecutionOutcome Execute(ParserActionExecutionContext context)

Parameters

context ParserActionExecutionContext

Current parser runtime context.

Returns

ParserActionExecutionOutcome

A parser action execution outcome compatible with parser runtime policy results.