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
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 SourceAddDefinedMacroToGlobalScopeProcessorDecorator(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 SourceProcessContextAsync(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. |