Static class
MacroFacts
static class MacroFacts
Namespace: Raven.CodeAnalysis.Macros
Assembly: Raven.CodeAnalysis.dll
Source file: MacroFacts.cs
Provides compiler-owned classification for macro definitions.
Methods
9 items
Static member:
AcceptsArguments(macro: IMacroDefinition) -> bool
No summary available.
Static member:
GetApplicationKind(macro: IMacroDefinition) -> MacroApplicationKind
Gets how the macro is applied to authored Raven syntax.
Static member:
GetDescriptor(macro: IMacroDefinition) -> MacroDefinitionDescriptor
Creates the compiler-normalized descriptor consumed by registration, binding, and language services.
Static member:
GetInvocationTargets(macro: IMacroDefinition) -> MacroInvocationTargets
Gets the grammar positions supported by a freestanding macro.
Static member:
GetKind(macro: IMacroDefinition) -> MacroKind
Gets the macro category implied by the definition's single category-specific interface.
Static member:
GetParameters(macro: IMacroDefinition) -> ImmutableArray<MacroParameterDescriptor>
Gets the compiler-normalized positional and named parameter descriptors for a typed macro definition.
Static member:
GetTargets(macro: IMacroDefinition) -> MacroTarget
Gets the declaration targets supported by an attached macro, or Raven.CodeAnalysis.Macros.MacroTarget.None for a freestanding macro.
Static member:
TryGetApplicationKind(macro: IMacroDefinition, applicationKind: out MacroApplicationKind) -> bool
Tries to get how the macro is applied to authored Raven syntax.
Static member:
TryGetKind(macro: IMacroDefinition, kind: out MacroKind) -> bool
Tries to get the macro category implied by the definition's category-specific interface.