Table of Contents

Class MemberExtent

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

The whole text of a member of a module, as a refactoring that removes, inserts or moves it takes it (MemberEdits).

public sealed record MemberExtent : IEquatable<MemberExtent>
Inheritance
MemberExtent
Implements
Inherited Members

Constructors

MemberExtent(MemberDeclarationNode, SourceRange, bool)

The whole text of a member of a module, as a refactoring that removes, inserts or moves it takes it (MemberEdits).

public MemberExtent(MemberDeclarationNode Member, SourceRange Range, bool IsConditional)

Parameters

Member MemberDeclarationNode

The member.

Range SourceRange

Its whole lines: the comments directly above it, each on lines of its own with no blank line between them and the member (the annotations among them), its header, its body, which holds its Attribute Member.VB_* lines, and its last line with what ends that line. It starts at the first character of its first line, and ends at the first character of the line after its last, or at the end of the text.

IsConditional bool

Whether the member is in a branch of an #If block (MS-VBAL §3.4), and so is compiled only when that branch is live: moving it out of the block, or another member into it, changes what is compiled.

Properties

IsConditional

Whether the member is in a branch of an #If block (MS-VBAL §3.4), and so is compiled only when that branch is live: moving it out of the block, or another member into it, changes what is compiled.

public bool IsConditional { get; init; }

Property Value

bool

Member

The member.

public MemberDeclarationNode Member { get; init; }

Property Value

MemberDeclarationNode

Range

Its whole lines: the comments directly above it, each on lines of its own with no blank line between them and the member (the annotations among them), its header, its body, which holds its Attribute Member.VB_* lines, and its last line with what ends that line. It starts at the first character of its first line, and ends at the first character of the line after its last, or at the end of the text.

public SourceRange Range { get; init; }

Property Value

SourceRange