In This Article

IVariableDefinition Interface

Provides the base requirements of a variable definition.

public interface IVariableDefinition : IReflectionDefinition

Properties

DeclaringModule

The reference to the module in which the variable is declared.

IModuleReference? DeclaringModule { get; }

Property Value

IModuleReference

Docstring

The docstring for the variable.

string? Docstring { get; }

Property Value

string

IsConstant

Indicates whether the variable is a constant.

bool IsConstant { get; }

Property Value

bool

IsPublic

Indicates whether the variable is public.

bool IsPublic { get; }

Property Value

bool

Type

An ITypeDefinition indicating the variable type, if known.

ITypeDefinition? Type { get; }

Property Value

ITypeDefinition

TypeExpressionTextRange

The variable type expression TextRange.

TextRange? TypeExpressionTextRange { get; }

Property Value

TextRange?

Inherited Members

Extension Methods