Open sandboxFocus

Enum DeclarationKind

Kinds of IDeclaration.

Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public enum DeclarationKind

Fields

Name Description
AssemblyReference

A reference assembly, implementing IAssembly. Note that the current assembly is represented by ICompilation that inherits IAssembly, but the DeclarationKind for the current compilation is Compilation and not AssemblyReference.

Attribute

An IAttribute.

Compilation

An ICompilation.

Constructor

An IConstructor.

Event

An IEvent.

ExtensionBlock

An IExtensionBlock.

Field

An IField.

Finalizer

An IMethod that is a finalizer (historically referred to as destructors).

Indexer

An IIndexer.

ManagedResource

An IManagedResource.

Method

An IMethod, but not a finalizer nor an operator.

NamedType

An INamedType or an ITupleType, but not an IExtensionBlock.

Namespace

An INamespace.

None

Not a valid declaration represented by IDeclaration.

Operator

An IMethod that is an operator.

Parameter

An IParameter.

Property

An IProperty.

Type

An IType, but neither an INamedType, ITypeParameter, ITupleType, nor IExtensionBlock. Note that IType is not an IDeclaration.

TypeParameter

An ITypeParameter.

See Also

Extension Methods