Class ParsingException
Assembly: RCaron.dll
View Source
Declarationcsharp
public class ParsingException : RCaronException, ISerializable
Declarationcsharp
public class ParsingException : RCaronException, ISerializable
Inheritance: System.Object
-> System.Exception
-> RCaron.RCaronException
Implements:
System.Runtime.Serialization.ISerializable
Properties
Location
View Source
Declarationcsharp
public TextSpan Location { get; }
Declarationcsharp
public TextSpan Location { get; }
Methods
InvalidUnicodeEscape(ReadOnlySpan<char>, TextSpan)
View Source
Declarationcsharp
public static ParsingException InvalidUnicodeEscape(ReadOnlySpan<char> escape, TextSpan location)
Declarationcsharp
public static ParsingException InvalidUnicodeEscape(ReadOnlySpan<char> escape, TextSpan location)
Returns
RCaron.Parsing.ParsingException
Parameters
Type | Name |
---|---|
System.ReadOnlySpan<System.Char> | escape |
RCaron.Parsing.TextSpan | location |
TooShortUnicodeEscape(ReadOnlySpan<char>, int, TextSpan)
View Source
Declarationcsharp
public static ParsingException TooShortUnicodeEscape(ReadOnlySpan<char> escape, int expectedLength, TextSpan location)
Declarationcsharp
public static ParsingException TooShortUnicodeEscape(ReadOnlySpan<char> escape, int expectedLength, TextSpan location)
Returns
RCaron.Parsing.ParsingException
Parameters
Type | Name |
---|---|
System.ReadOnlySpan<System.Char> | escape |
System.Int32 | expectedLength |
RCaron.Parsing.TextSpan | location |
InvalidEscapeSequence(char, TextSpan)
View Source
Declarationcsharp
public static ParsingException InvalidEscapeSequence(char c, TextSpan location)
Declarationcsharp
public static ParsingException InvalidEscapeSequence(char c, TextSpan location)
Returns
RCaron.Parsing.ParsingException
Parameters
Type | Name |
---|---|
System.Char | c |
RCaron.Parsing.TextSpan | location |
InvalidLine(int, TextSpan)
View Source
Declarationcsharp
public static ParsingException InvalidLine(int lineNumber, TextSpan location)
Declarationcsharp
public static ParsingException InvalidLine(int lineNumber, TextSpan location)
Returns
RCaron.Parsing.ParsingException
Parameters
Type | Name |
---|---|
System.Int32 | lineNumber |
RCaron.Parsing.TextSpan | location |
LonelyVariableStart(TextSpan)
View Source
Declarationcsharp
public static ParsingException LonelyVariableStart(TextSpan location)
Declarationcsharp
public static ParsingException LonelyVariableStart(TextSpan location)
Returns
RCaron.Parsing.ParsingException
Parameters
Type | Name |
---|---|
RCaron.Parsing.TextSpan | location |
ExpectedConstant(TextSpan)
View Source
Declarationcsharp
public static ParsingException ExpectedConstant(TextSpan location)
Declarationcsharp
public static ParsingException ExpectedConstant(TextSpan location)
Returns
RCaron.Parsing.ParsingException
Parameters
Type | Name |
---|---|
RCaron.Parsing.TextSpan | location |
InvalidHexNumber(TextSpan)
View Source
Declarationcsharp
public static ParsingException InvalidHexNumber(TextSpan location)
Declarationcsharp
public static ParsingException InvalidHexNumber(TextSpan location)
Returns
RCaron.Parsing.ParsingException
Parameters
Type | Name |
---|---|
RCaron.Parsing.TextSpan | location |
InvalidNumberSuffix(TextSpan, bool, bool)
View Source
Declarationcsharp
public static ParsingException InvalidNumberSuffix(TextSpan location, bool unsignedOnFloatingPoint = false, bool hexOnFloatingPoint = false)
Declarationcsharp
public static ParsingException InvalidNumberSuffix(TextSpan location, bool unsignedOnFloatingPoint = false, bool hexOnFloatingPoint = false)
Returns
RCaron.Parsing.ParsingException
Parameters
Type | Name |
---|---|
RCaron.Parsing.TextSpan | location |
System.Boolean | unsignedOnFloatingPoint |
System.Boolean | hexOnFloatingPoint |
InvalidClassMember(LineType, TextSpan)
View Source
Declarationcsharp
public static ParsingException InvalidClassMember(LineType lineType, TextSpan location)
Declarationcsharp
public static ParsingException InvalidClassMember(LineType lineType, TextSpan location)
Returns
RCaron.Parsing.ParsingException
Parameters
Type | Name |
---|---|
RCaron.LineType | lineType |
RCaron.Parsing.TextSpan | location |
StaticPropertyWithoutInitializer(string, TextSpan)
View Source
Declarationcsharp
public static ParsingException StaticPropertyWithoutInitializer(string propertyName, TextSpan location)
Declarationcsharp
public static ParsingException StaticPropertyWithoutInitializer(string propertyName, TextSpan location)
Returns
RCaron.Parsing.ParsingException
Parameters
Type | Name |
---|---|
System.String | propertyName |
RCaron.Parsing.TextSpan | location |
InvalidCharacterLiteral(TextSpan)
View Source
Declarationcsharp
public static ParsingException InvalidCharacterLiteral(TextSpan location)
Declarationcsharp
public static ParsingException InvalidCharacterLiteral(TextSpan location)
Returns
RCaron.Parsing.ParsingException
Parameters
Type | Name |
---|---|
RCaron.Parsing.TextSpan | location |
UnterminatedString(TextSpan)
View Source
Declarationcsharp
public static ParsingException UnterminatedString(TextSpan location)
Declarationcsharp
public static ParsingException UnterminatedString(TextSpan location)
Returns
RCaron.Parsing.ParsingException
Parameters
Type | Name |
---|---|
RCaron.Parsing.TextSpan | location |
UnterminatedCharacterLiteral(TextSpan)
View Source
Declarationcsharp
public static ParsingException UnterminatedCharacterLiteral(TextSpan location)
Declarationcsharp
public static ParsingException UnterminatedCharacterLiteral(TextSpan location)
Returns
RCaron.Parsing.ParsingException
Parameters
Type | Name |
---|---|
RCaron.Parsing.TextSpan | location |
Implements
System.Runtime.Serialization.ISerializable
Extension Methods
- System.Object.RCaron.ListEx.Expect``1
- RCaron.ListEx.NotNull(object?)