Struct TextSpan
Assembly: RCaron.dll
Declaration
csharp
public record struct TextSpan : IEquatable<TextSpan>
Declaration
csharp
public record struct TextSpan : IEquatable<TextSpan>
Implements:
System.IEquatable<RCaron.Parsing.TextSpan>
Properties
Position
Declaration
csharp
public int Position { readonly get; set; }
Declaration
csharp
public int Position { readonly get; set; }
Length
Declaration
csharp
public int Length { readonly get; set; }
Declaration
csharp
public int Length { readonly get; set; }
Methods
FromToken(PosToken)
Declaration
csharp
public static TextSpan FromToken(PosToken token)
Declaration
csharp
public static TextSpan FromToken(PosToken token)
Returns
RCaron.Parsing.TextSpan
Parameters
FromStartAndEnd(int, int)
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
Type | Name |
---|
System.Int32 | start |
System.Int32 | end |
Implements
System.IEquatable<RCaron.Parsing.TextSpan>
Extension Methods