API Browser

Method

GetKind

static func GetKind(macro: IMacroDefinition) -> MacroKind

Declaring type: MacroFacts
Namespace: Raven.CodeAnalysis.Macros
Assembly: Raven.CodeAnalysis.dll
Source file: MacroFacts.cs

Gets the macro category implied by the definition's single category-specific interface.

Parameters

Name Type Description
macro IMacroDefinition

Return value

MacroKind

Errors

Error Description
T:System.ArgumentException macro does not implement exactly one supported macro category interface.