Table of Contents

Class NoOpParserEmbeddedCodeTransformer

Namespace
Utils.Parser.Diagnostics.EmbeddedCode
Assembly
Utils.Parser.Diagnostics.dll

Embedded-code transformer that preserves source code unchanged.

public sealed class NoOpParserEmbeddedCodeTransformer : IParserEmbeddedCodeTransformer
Inheritance
NoOpParserEmbeddedCodeTransformer
Implements
Inherited Members
Extension Methods

Properties

Instance

Gets the shared no-op transformer instance.

public static NoOpParserEmbeddedCodeTransformer Instance { get; }

Property Value

NoOpParserEmbeddedCodeTransformer

Methods

Transform(ParserEmbeddedCodeTransformationContext)

Transforms one embedded code block using grammar and rule metadata supplied by the caller.

public ParserEmbeddedCodeTransformationResult Transform(ParserEmbeddedCodeTransformationContext context)

Parameters

context ParserEmbeddedCodeTransformationContext

Transformation context containing the raw code and passive metadata.

Returns

ParserEmbeddedCodeTransformationResult

The transformed code and optional diagnostics.