Interface IExpandsMacro
An object which expands a MetalMacro. Expansion is the process applying macro extension (where applicable) and of filling any defined slots.
Namespace: ZptSharp.Metal
Assembly: ZptSharp.Abstractions.dll
Syntax
public interface IExpandsMacro
Methods
| Improve this Doc View SourceExpandMacroAsync(MetalMacro, ExpressionContext, CancellationToken)
Expands the specified macro and returns the result.
Declaration
Task<MetalMacro> ExpandMacroAsync(MetalMacro macro, ExpressionContext context, CancellationToken token = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
MetalMacro | macro | The macro to expand. |
ExpressionContext | context | The current expression context. |
System.Threading.CancellationToken | token | An optional cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<MetalMacro> | The expanded macro. |