Table of Contents

Enum MemberAccessOperationSemanticFlags

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

The semantic flags of a member access operation.

[Flags]
public enum MemberAccessOperationSemanticFlags

Fields

All = Explicit | Implicit | WithBlockVariable | DictionaryAccess | CallByNameAccess | LateBound | DefaultMember | NewEnumMember | Recursive | ArgumentList

Every flag.

ArgumentList = 512

The member access operation gives the member the argument list the code writes for it, empty or not: b(1) and b(), read or assigned, give their lists to the default member of b (MS-VBAL §5.6.13), and b.Item(1) gives its list to Item.

Arguments given to a member that declares no parameters are not its: they index the array that a public variable holds, or what a Property Get or a Function returns. An element of an array that is assigned a value through the default member of the object it holds (a(1) = 5, MS-VBAL §5.4.3.8) gives that default member no argument: the subscripts select the element. A dictionary access is stated with DictionaryAccess instead.

A member the code names and assigns (b.Item(1) = 5) has this flag where it is given arguments and the host knows the members of the object's class. An assigned member of an object called late through automation does not have it.

CallByNameAccess = 16

The member access operation is semantically implicit and late-bound through a CallByName call.

DefaultMember = 64

The member access operation refers to the default member of its parent object.

DictionaryAccess = 8

The member access operation is a dictionary access operation.

👉 This operation involves an implicit member call to the default member of the parent object; the RHS operand is given as a string argument to that member.

Explicit = 1

The member access operation refers to the member explicitly.

Implicit = 2

The member access operation refers to the member implicitly.

LateBound = 32

The member access operation refers to a member that static semantics leave unresolved; resolution/binding occurs at run-time, hence "late".

NewEnumMember = 128

The member access operation refers to the NewEnum member of its parent object.

If this operation is also Implicit, the parent node is probably a For...Next loop.

Recursive = 256

The member access operation refers to the default member of an object that the default member of its parent object returned: that default member takes no argument and returns an object, so the arguments given to it, the name of a dictionary access, or the value expected of it go on to the default member of that object (MS-VBAL §5.6.2.3, §5.6.13, §5.6.14). rs("Name") and rs!Name of an ADO Recordset, whose default member Fields returns its Fields collection, are such accesses.

It is stated with DefaultMember and Implicit, and with DictionaryAccess for a dictionary access. A value expected of an object, and read through more than one default member, is also a conversion stated Recursive.

WithBlockVariable = 4

The member access operation references the parent object through a With block variable.