Skip to main content
Version: 0.1.0

Class PosToken

Assembly: RCaron.dll
View Source
Declaration
csharp
public class PosToken
Declaration
csharp
public class PosToken

Derived:
RCaron.BlockPosToken, RCaron.ExternThingToken, RCaron.IndexerToken, RCaron.KeywordToken, RCaron.OperationPosToken, RCaron.ValuePosToken

Properties

Position

View Source
Declaration
csharp
public (int Start, int End) Position { get; }
Declaration
csharp
public (int Start, int End) Position { get; }

Type

View Source
Declaration
csharp
public TokenType Type { get; }
Declaration
csharp
public TokenType Type { get; }

Methods

ToString(string)

View Source
Declaration
csharp
public string ToString(string text)
Declaration
csharp
public string ToString(string text)
Returns

System.String

Parameters
TypeName
System.Stringtext

EqualsString(in string, in string)

View Source
Declaration
csharp
public bool EqualsString(in string text, in string b)
Declaration
csharp
public bool EqualsString(in string text, in string b)
Returns

System.Boolean

Parameters
TypeName
System.Stringtext
System.Stringb

EqualsStringCaseInsensitive(in string, in string)

View Source
Declaration
csharp
public bool EqualsStringCaseInsensitive(in string text, in string b)
Declaration
csharp
public bool EqualsStringCaseInsensitive(in string text, in string b)
Returns

System.Boolean

Parameters
TypeName
System.Stringtext
System.Stringb

ToSpan(in ReadOnlySpan<char>)

View Source
Declaration
csharp
public ReadOnlySpan<char> ToSpan(in ReadOnlySpan<char> span)
Declaration
csharp
public ReadOnlySpan<char> ToSpan(in ReadOnlySpan<char> span)
Returns

System.ReadOnlySpan<System.Char>

Parameters
TypeName
System.ReadOnlySpan<System.Char>span

IsDotJoinable()

View Source
Declaration
csharp
public bool IsDotJoinable()
Declaration
csharp
public bool IsDotJoinable()
Returns

System.Boolean

IsLiteral()

View Source
Declaration
csharp
public bool IsLiteral()
Declaration
csharp
public bool IsLiteral()
Returns

System.Boolean

IsKeywordWithIgnoredWhitespace(in string)

View Source
Declaration
csharp
public bool IsKeywordWithIgnoredWhitespace(in string raw)
Declaration
csharp
public bool IsKeywordWithIgnoredWhitespace(in string raw)
Returns

System.Boolean

Parameters
TypeName
System.Stringraw

Extension Methods