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
lineintThe line number where the element was found.
fromintThe starting position (character index) of the found element.
lengthintThe 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
Length
Gets or sets the length of the found element in characters.
public int Length { get; set; }
Property Value
Line
Gets or sets the line number where the element was found.
public int Line { get; set; }
Property Value
Methods
CompareTo(FoundedCodeElement?)
Compares this instance to another FoundedCodeElement.
public int CompareTo(FoundedCodeElement? other)
Parameters
otherFoundedCodeElementThe other FoundedCodeElement to compare to.
Returns
- int
Currently returns 0 (elements are considered equal).