Skip to main content
Version: 0.1.0

Struct TextSpan

Assembly: RCaron.dll
View Source
Declaration
csharp
public record struct TextSpan : IEquatable<TextSpan>
Declaration
csharp
public record struct TextSpan : IEquatable<TextSpan>

Implements:
System.IEquatable<RCaron.Parsing.TextSpan>

Properties

Position

View Source
Declaration
csharp
public int Position { readonly get; set; }
Declaration
csharp
public int Position { readonly get; set; }

Length

View Source
Declaration
csharp
public int Length { readonly get; set; }
Declaration
csharp
public int Length { readonly get; set; }

Methods

FromToken(PosToken)

View Source
Declaration
csharp
public static TextSpan FromToken(PosToken token)
Declaration
csharp
public static TextSpan FromToken(PosToken token)
Returns

RCaron.Parsing.TextSpan

Parameters
TypeName
RCaron.PosTokentoken

FromStartAndEnd(int, int)

View Source
Declaration
csharp
public static TextSpan FromStartAndEnd(int start, int end)
Declaration
csharp
public static TextSpan FromStartAndEnd(int start, int end)
Returns

RCaron.Parsing.TextSpan

Parameters
TypeName
System.Int32start
System.Int32end

Implements

  • System.IEquatable<RCaron.Parsing.TextSpan>

Extension Methods