Table of Contents

Class FoundedCodeElement

Namespace
SunamoData.Data
Assembly
SunamoData.dll

Represents a code element found in source code with its position information.

public class FoundedCodeElement : IComparable<FoundedCodeElement>
Inheritance
FoundedCodeElement
Implements
Inherited Members
Extension Methods

Constructors

FoundedCodeElement(int, int, int)

Initializes a new instance of the FoundedCodeElement class.

public FoundedCodeElement(int line, int from, int length)

Parameters

line int

The line number where the element was found.

from int

The starting position (character index) of the found element.

length int

The length of the found element in characters.

Properties

From

Gets or sets the starting position (character index) of the found element. Value is -1 if location is not known (e.g., when searching in content).

public int From { get; set; }

Property Value

int

Length

Gets or sets the length of the found element in characters.

public int Length { get; set; }

Property Value

int

Line

Gets or sets the line number where the element was found.

public int Line { get; set; }

Property Value

int

Methods

CompareTo(FoundedCodeElement?)

Compares this instance to another FoundedCodeElement.

public int CompareTo(FoundedCodeElement? other)

Parameters

other FoundedCodeElement

The other FoundedCodeElement to compare to.

Returns

int

Currently returns 0 (elements are considered equal).