Interface IParserEmbeddedCodeTransformer
- Namespace
- Utils.Parser.Diagnostics.EmbeddedCode
- Assembly
- Utils.Parser.Diagnostics.dll
Transforms target-language parser embedded code before generated emission or dynamic compilation.
public interface IParserEmbeddedCodeTransformer
- Extension Methods
Methods
Transform(ParserEmbeddedCodeTransformationContext)
Transforms one embedded code block using grammar and rule metadata supplied by the caller.
ParserEmbeddedCodeTransformationResult Transform(ParserEmbeddedCodeTransformationContext context)
Parameters
contextParserEmbeddedCodeTransformationContextTransformation context containing the raw code and passive metadata.
Returns
- ParserEmbeddedCodeTransformationResult
The transformed code and optional diagnostics.