ContainingAncestorsAndSelf(IDeclaration)
Gets all containing ancestors including the current declaration, i.e. declaration
, declaration.ContainingDeclaration
, declaration.ContainingDeclaration.ContainingDeclaration
,
declaration.ContainingDeclaration.ContainingDeclaration.ContainingDeclaration
...
Declaration
public static IEnumerable<IDeclaration> ContainingAncestorsAndSelf(this IDeclaration declaration)
Parameters
Type | Name | Description |
---|---|---|
IDeclaration | declaration |
Returns
Type | Description |
---|---|
IEnumerable<IDeclaration> |