Table of Contents

Enum LocalDeclarationKind

Namespace
RDCore.SDK.Model.Symbols
Assembly
RDCore.SDK.dll

How a VBLocalVariableSymbol first entered its procedure scope.

public enum LocalDeclarationKind
Extension Methods

Fields

Dim = 0

An explicit Dim or Static declaration (MS-VBAL §5.4.3.1). This is also the value carried by a parameter symbol, for which the distinction does not apply.

Implicit = 2

An implicit declaration introduced by a simple name expression that resolved to nothing in a module whose variable declaration mode is implicit — no Option Explicit (MS-VBAL §5.6.10: "a new local variable is implicitly declared in the current procedure as if by a local variable declaration statement immediately preceding this statement").

Never produced for a module that declares Option Explicit, where the same expression is a compile error instead.

ReDim = 1

An implicit declaration introduced by a ReDim statement whose unqualified target resolved to nothing (MS-VBAL §5.4.3.3). Legal under Option Explicit; a later analysis pass flags it, and errors on it under Option Strict.