Class MacroExpansionContext
A model representing an in-progress macro expansion.
Inheritance
System.Object
MacroExpansionContext
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.Abstractions.dll
Syntax
public class MacroExpansionContext
Constructors
| Improve this Doc View SourceMacroExpansionContext(MetalMacro, IEnumerable<Slot>)
Initializes a new instance of the MacroExpansionContext class.
Declaration
public MacroExpansionContext(MetalMacro macro, IEnumerable<Slot> slotFillers = null)
Parameters
Type | Name | Description |
---|---|---|
MetalMacro | macro | Macro. |
System.Collections.Generic.IEnumerable<Slot> | slotFillers | An optional initial collection of slot fillers. |
Properties
| Improve this Doc View SourceMacro
Gets or sets the macro which is being expanded.
Declaration
public MetalMacro Macro { get; set; }
Property Value
Type | Description |
---|---|
MetalMacro | The macro. |
SlotFillers
Gets a collection of slot-fillers which remain to be used during macro-expansion.
Declaration
public IDictionary<string, Slot> SlotFillers { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, Slot> | The remaining slot-fillers. |