Class DeclaredClassFact
A class of the workspace that a declaration's type names, and the members of its public interface (DeclaredClasses).
public sealed record DeclaredClassFact : IEquatable<DeclaredClassFact>
- Inheritance
-
DeclaredClassFact
- Implements
- Inherited Members
Constructors
DeclaredClassFact(Uri, string, ImmutableArray<ClassMemberFact>)
A class of the workspace that a declaration's type names, and the members of its public interface (DeclaredClasses).
public DeclaredClassFact(Uri Class, string Name, ImmutableArray<ClassMemberFact> Members)
Parameters
ClassUriThe address of the class module.
NamestringThe name of the class.
MembersImmutableArray<ClassMemberFact>The members of the class that code outside its project can name, in the order the class declares them: each
Publicvariable, each procedure that isPublicor declared without an access modifier, and the accessors of a property as one member (MS-VBAL §5.2.3.1, §5.3.1.1). Its events are not members of it here.
Properties
Class
The address of the class module.
public Uri Class { get; init; }
Property Value
Members
The members of the class that code outside its project can name, in the order the class declares them: each Public variable, each procedure that
is Public or declared without an access modifier, and the accessors of a property as one member (MS-VBAL §5.2.3.1,
§5.3.1.1). Its events are not members of it here.
public ImmutableArray<ClassMemberFact> Members { get; init; }
Property Value
Name
The name of the class.
public string Name { get; init; }
Property Value
Methods
Of(VBType?, Func<VBClassType, VBClassModuleSymbol?>)
The class of the workspace a declared type names, then each class of the workspace that the type of one of their members names, at any depth, each class once.
public static ImmutableArray<DeclaredClassFact> Of(VBType? declaredType, Func<VBClassType, VBClassModuleSymbol?> classModuleOf)
Parameters
declaredTypeVBTypeThe declared type of a declaration: a class, or an array whose elements are of a class.
classModuleOfFunc<VBClassType, VBClassModuleSymbol>The class module of the workspace that declares a class type, with its members as the binding has them; null for a class that no module of the workspace declares.
Returns
- ImmutableArray<DeclaredClassFact>
The classes, the one the declared type names first; empty when the declared type is not a class of the workspace, nor an array of one. A class that a library declares is not one: Library is stated on its symbol.