GetDeclaration(ICompilation, ISymbol)
Gets the Metalama IDeclaration for a Roslyn ISymbol.
Declaration
public static IDeclaration GetDeclaration(this ICompilation compilation, ISymbol symbol)Parameters
| Type | Name | Description |
|---|---|---|
| ICompilation | compilation | The Metalama compilation. |
| ISymbol | symbol | The Roslyn symbol. |
Returns
| Type | Description |
|---|---|
| IDeclaration | The Metalama declaration. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | The symbol is not found in the compilation. |