Table of Contents

Interface IMacro

Namespace
Dassie.Extensions
Assembly
dc.dll

Defines a mechanism for extensions to provide build system macros.

public interface IMacro
Extension Methods

Properties

Name

The name of the macro.

string Name { get; }

Property Value

string

Options

Specifies options for the macro.

MacroOptions Options { get; }

Property Value

MacroOptions

Parameters

The parameters of the macro.

List<MacroParameter> Parameters { get; }

Property Value

List<MacroParameter>

Methods

Expand(Dictionary<string, string>, MacroInvocationInfo)

The method called when a macro expansion is requested.

string Expand(Dictionary<string, string> arguments, MacroInvocationInfo info)

Parameters

arguments Dictionary<string, string>

The arguments passed to the macro.

info MacroInvocationInfo

The location information of the macro invocation.

Returns

string

The expanded value of the current macro.