Table of Contents

Class DeclaredClassFact

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

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

Class Uri

The address of the class module.

Name string

The name of the class.

Members ImmutableArray<ClassMemberFact>

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.

Properties

Class

The address of the class module.

public Uri Class { get; init; }

Property Value

Uri

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

ImmutableArray<ClassMemberFact>

Name

The name of the class.

public string Name { get; init; }

Property Value

string

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

declaredType VBType

The declared type of a declaration: a class, or an array whose elements are of a class.

classModuleOf Func<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.