Show / Hide Table of Contents

Class AddDefinedMacroToGlobalScopeProcessorDecorator

Decorator for the IProcessesExpressionContext service which detects element nodes which have 'define-macro' attributes upon them. If such an attribute is found then the macro is stored in the current context's global scope for later usage.

Inheritance
System.Object
AddDefinedMacroToGlobalScopeProcessorDecorator
Implements
IProcessesExpressionContext
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ZptSharp.Metal
Assembly: ZptSharp.dll
Syntax
public class AddDefinedMacroToGlobalScopeProcessorDecorator : IProcessesExpressionContext

Constructors

| Improve this Doc View Source

AddDefinedMacroToGlobalScopeProcessorDecorator(IGetsMetalAttributeSpecs, IProcessesExpressionContext, ISearchesForAttributes)

Initializes a new instance of the AddDefinedMacroToGlobalScopeProcessorDecorator class.

Declaration
public AddDefinedMacroToGlobalScopeProcessorDecorator(IGetsMetalAttributeSpecs specProvider, IProcessesExpressionContext wrapped, ISearchesForAttributes attributeFinder)
Parameters
Type Name Description
IGetsMetalAttributeSpecs specProvider

Spec provider.

IProcessesExpressionContext wrapped

Wrapped service.

ISearchesForAttributes attributeFinder

A service which searches for attributes.

Methods

| Improve this Doc View Source

ProcessContextAsync(ExpressionContext, CancellationToken)

Processes the context using the rules defined within this object.

Declaration
public Task<ExpressionContextProcessingResult> ProcessContextAsync(ExpressionContext context, CancellationToken token = default(CancellationToken))
Parameters
Type Name Description
ExpressionContext context

The context to process.

System.Threading.CancellationToken token

An optional cancellation token.

Returns
Type Description
System.Threading.Tasks.Task<ExpressionContextProcessingResult>

A result object indicating the outcome of processing.

Implements

IProcessesExpressionContext
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX