Table of Contents

Enum DeclaredTypeKind

Namespace
RDCore.SDK.Semantics
Assembly
RDCore.SDK.dll

The kind of the declared type of a declaration or of an expression (MS-VBAL §2.1, §5.2.3.1.4): what a value of it is, which decides how it is assigned and what it holds before it is (Of(VBType?)).

public enum DeclaredTypeKind

Fields

Class = 3

A specific class, of the workspace or of a library, or an interface: a reference to an object of it, assigned with Set, and Nothing until it is, unless it is declared As New (MS-VBAL §2.5.1).

Enum = 5

An Enum (MS-VBAL §5.2.3.4), whose values are Long: let-assigned, and 0 until it is.

Intrinsic = 0

A type of the language other than Variant and Object: a number, Boolean, Date, a String of either length, or a pointer-sized integer (LongPtr). It is let-assigned, and holds its type's default value until it is (MS-VBAL §2.3).

Object = 2

Object: a reference to an object of any class, bound late, assigned with Set, and Nothing until it is.

UserDefinedType = 4

A user-defined type (Type, MS-VBAL §5.2.3.3): a record that holds its fields, each assigned on its own or the record whole.

Variant = 1

Variant, which can hold a value of any type, an object, or none (Empty).