[][src]Enum lib_ruby_parser::DiagnosticMessage

pub enum DiagnosticMessage {
    FractionAfterNumeric,
    NoDigitsAfterDot,
    UnknownTypeOfPercentString,
    NumericLiteralWithoutDigits,
    UnterminatedList,
    UnterminatedRegexp,
    UnterminatedString,
    UnterminatedQuotedString,
    InvalidUnicodeEscape,
    TooLargeUnicodeCodepoint,
    InvalidUnicodeCodepoint,
    MultipleCodepointAtSingleChar,
    InvalidEscapeCharacter,
    InvalidHexEscape,
    UnterminatedHeredoc(String),
    UnterminatedHeredocId,
    SlashRAtMiddleOfLine,
    DStarInterpretedAsArgPrefix,
    StarInterpretedAsArgPrefix,
    AmpersandInterpretedAsArgPrefix,
    TripleDotAtEol,
    ParenthesesIterpretedAsArglist,
    AmbiguousFirstArgument {
        operator: u8,
    },
    AmbiguousOperator {
        operator: &'static str,
        interpreted_as: &'static str,
    },
    InvalidCharacterSyntax {
        suggestion: String,
    },
    InvalidOctalDigit,
    TrailingCharInNumber {
        c: u8,
    },
    EmbeddedDocumentMeetsEof,
    InvalidChar(u8),
    IncompleteCharacterSyntax,
    GvarWithoutId,
    InvalidGvarName(u8),
    IvarWithoutId,
    InvalidIvarName(u8),
    CvarWithoutId,
    InvalidCvarName(u8),
    UnknownRegexOptions(String),
    UnterminatedUnicodeEscape,
    EncodingError(String),
    AmbiguousTernaryOperator(String),
    AmbiguousRegexp,
    ElseWithoutRescue,
    BeginNotAtTopLevel,
    AliasNthRef,
    CsendInsideMasgn,
    ClassOrModuleNameMustBeConstant,
    EndlessSetterDefinition,
    UnexpectedToken(String),
    ClassDefinitionInMethodBody,
    ModuleDefinitionInMethodBody,
    InvalidReturnInClassOrModuleBody,
    ConstArgument,
    IvarArgument,
    GvarArgument,
    CvarArgument,
    NoSuchLocalVariable(String),
    OrdinaryParamDefined,
    NumparamUsed,
    TokAtEolWithoutExpression(String),
    EndInMethod,
    ComparisonAfterComparison(String),
    CircularArgumentReference(String),
    DynamicConstantAssignment,
    CantAssignToSelf,
    CantAssignToNil,
    CantAssignToTrue,
    CantAssignToFalse,
    CantAssignToFile,
    CantAssignToLine,
    CantAssignToEncoding,
    CantAssignToNumparam(String),
    CantSetVariable(String),
    BlockGivenToYield,
    BlockAndBlockArgGiven,
    SymbolLiteralWithInterpolation,
    ReservedForNumparam(String),
    KeyMustBeValidAsLocalVariable,
    DuplicateVariableName,
    DuplicateKeyName,
    SingletonLiteral,
    NthRefIsTooBig(String),
    DuplicatedArgumentName,
    RegexError(String),
    InvalidSymbol(String),
    VoidValueExpression,
}

Variants

FractionAfterNumeric
NoDigitsAfterDot
UnknownTypeOfPercentString
NumericLiteralWithoutDigits
UnterminatedList
UnterminatedRegexp
UnterminatedString
UnterminatedQuotedString
InvalidUnicodeEscape
TooLargeUnicodeCodepoint
InvalidUnicodeCodepoint
MultipleCodepointAtSingleChar
InvalidEscapeCharacter
InvalidHexEscape
UnterminatedHeredoc(String)
UnterminatedHeredocId
SlashRAtMiddleOfLine
DStarInterpretedAsArgPrefix
StarInterpretedAsArgPrefix
AmpersandInterpretedAsArgPrefix
TripleDotAtEol
ParenthesesIterpretedAsArglist
AmbiguousFirstArgument

Fields of AmbiguousFirstArgument

operator: u8
AmbiguousOperator

Fields of AmbiguousOperator

operator: &'static strinterpreted_as: &'static str
InvalidCharacterSyntax

Fields of InvalidCharacterSyntax

suggestion: String
InvalidOctalDigit
TrailingCharInNumber

Fields of TrailingCharInNumber

c: u8
EmbeddedDocumentMeetsEof
InvalidChar(u8)
IncompleteCharacterSyntax
GvarWithoutId
InvalidGvarName(u8)
IvarWithoutId
InvalidIvarName(u8)
CvarWithoutId
InvalidCvarName(u8)
UnknownRegexOptions(String)
UnterminatedUnicodeEscape
EncodingError(String)
AmbiguousTernaryOperator(String)
AmbiguousRegexp
ElseWithoutRescue
BeginNotAtTopLevel
AliasNthRef
CsendInsideMasgn
ClassOrModuleNameMustBeConstant
EndlessSetterDefinition
UnexpectedToken(String)
ClassDefinitionInMethodBody
ModuleDefinitionInMethodBody
InvalidReturnInClassOrModuleBody
ConstArgument
IvarArgument
GvarArgument
CvarArgument
NoSuchLocalVariable(String)
OrdinaryParamDefined
NumparamUsed
TokAtEolWithoutExpression(String)
EndInMethod
ComparisonAfterComparison(String)
CircularArgumentReference(String)
DynamicConstantAssignment
CantAssignToSelf
CantAssignToNil
CantAssignToTrue
CantAssignToFalse
CantAssignToFile
CantAssignToLine
CantAssignToEncoding
CantAssignToNumparam(String)
CantSetVariable(String)
BlockGivenToYield
BlockAndBlockArgGiven
SymbolLiteralWithInterpolation
ReservedForNumparam(String)
KeyMustBeValidAsLocalVariable
DuplicateVariableName
DuplicateKeyName
SingletonLiteral
NthRefIsTooBig(String)
DuplicatedArgumentName
RegexError(String)
InvalidSymbol(String)
VoidValueExpression

Implementations

impl DiagnosticMessage[src]

pub fn render(&self) -> String[src]

Trait Implementations

impl Clone for DiagnosticMessage[src]

impl Debug for DiagnosticMessage[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.