Enum MemberAccessOperationSemanticFlags
The semantic flags of a member access operation.
[Flags]
public enum MemberAccessOperationSemanticFlags
Fields
All = Explicit | Implicit | WithBlockVariable | DictionaryAccess | CallByNameAccess | LateBound | DefaultMember | NewEnumMember | Recursive | ArgumentListEvery flag.
ArgumentList = 512The member access operation gives the member the argument list the code writes for it, empty or not:
b(1)andb(), read or assigned, give their lists to the default member ofb(MS-VBAL §5.6.13), andb.Item(1)gives its list toItem.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 Getor aFunctionreturns. 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 = 16The member access operation is semantically implicit and late-bound through a
CallByNamecall.DefaultMember = 64The member access operation refers to the default member of its parent object.
DictionaryAccess = 8The 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 = 1The member access operation refers to the member explicitly.
Implicit = 2The member access operation refers to the member implicitly.
LateBound = 32The member access operation refers to a member that static semantics leave unresolved; resolution/binding occurs at run-time, hence "late".
NewEnumMember = 128The member access operation refers to the
NewEnummember of its parent object.If this operation is also
Implicit, the parent node is probably aFor...Nextloop.Recursive = 256The 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")andrs!Nameof an ADORecordset, whose default memberFieldsreturns itsFieldscollection, 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 = 4The member access operation references the parent object through a
Withblock variable.