Enum LocalDeclarationKind
How a VBLocalVariableSymbol first entered its procedure scope.
public enum LocalDeclarationKind
- Extension Methods
Fields
Dim = 0An explicit
DimorStaticdeclaration (MS-VBAL §5.4.3.1). This is also the value carried by a parameter symbol, for which the distinction does not apply.Implicit = 2An 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 = 1An implicit declaration introduced by a
ReDimstatement whose unqualified target resolved to nothing (MS-VBAL §5.4.3.3). Legal underOption Explicit; a later analysis pass flags it, and errors on it underOption Strict.