crate::use_native_or_external!(StringPtr);
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct FractionAfterNumeric {
}
impl FractionAfterNumeric {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct NoDigitsAfterDot {
}
impl NoDigitsAfterDot {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct UnknownTypeOfPercentString {
}
impl UnknownTypeOfPercentString {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct NumericLiteralWithoutDigits {
}
impl NumericLiteralWithoutDigits {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct UnterminatedList {
}
impl UnterminatedList {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct UnterminatedRegexp {
}
impl UnterminatedRegexp {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct UnterminatedString {
}
impl UnterminatedString {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct UnterminatedQuotedString {
}
impl UnterminatedQuotedString {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct InvalidUnicodeEscape {
}
impl InvalidUnicodeEscape {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct TooLargeUnicodeCodepoint {
}
impl TooLargeUnicodeCodepoint {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct InvalidUnicodeCodepoint {
}
impl InvalidUnicodeCodepoint {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct MultipleCodepointAtSingleChar {
}
impl MultipleCodepointAtSingleChar {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct InvalidEscapeCharacter {
}
impl InvalidEscapeCharacter {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct InvalidHexEscape {
}
impl InvalidHexEscape {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct UnterminatedHeredoc {
pub heredoc_id: StringPtr,
}
impl UnterminatedHeredoc {
pub fn get_heredoc_id(&self) -> &StringPtr {
&self.heredoc_id
}
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct UnterminatedHeredocId {
}
impl UnterminatedHeredocId {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct SlashRAtMiddleOfLine {
}
impl SlashRAtMiddleOfLine {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct DStarInterpretedAsArgPrefix {
}
impl DStarInterpretedAsArgPrefix {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct StarInterpretedAsArgPrefix {
}
impl StarInterpretedAsArgPrefix {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct AmpersandInterpretedAsArgPrefix {
}
impl AmpersandInterpretedAsArgPrefix {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct TripleDotAtEol {
}
impl TripleDotAtEol {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct ParenthesesIterpretedAsArglist {
}
impl ParenthesesIterpretedAsArglist {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct AmbiguousFirstArgument {
pub operator: u8,
}
impl AmbiguousFirstArgument {
pub fn get_operator(&self) -> &u8 {
&self.operator
}
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct AmbiguousOperator {
pub operator: StringPtr,
pub interpreted_as: StringPtr,
}
impl AmbiguousOperator {
pub fn get_operator(&self) -> &StringPtr {
&self.operator
}
pub fn get_interpreted_as(&self) -> &StringPtr {
&self.interpreted_as
}
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct InvalidCharacterSyntax {
pub suggestion: StringPtr,
}
impl InvalidCharacterSyntax {
pub fn get_suggestion(&self) -> &StringPtr {
&self.suggestion
}
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct InvalidOctalDigit {
}
impl InvalidOctalDigit {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct TrailingCharInNumber {
pub c: u8,
}
impl TrailingCharInNumber {
pub fn get_c(&self) -> &u8 {
&self.c
}
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct EmbeddedDocumentMeetsEof {
}
impl EmbeddedDocumentMeetsEof {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct InvalidChar {
pub c: u8,
}
impl InvalidChar {
pub fn get_c(&self) -> &u8 {
&self.c
}
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct IncompleteCharacterSyntax {
}
impl IncompleteCharacterSyntax {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct GvarWithoutId {
}
impl GvarWithoutId {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct InvalidGvarName {
pub c: u8,
}
impl InvalidGvarName {
pub fn get_c(&self) -> &u8 {
&self.c
}
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct IvarWithoutId {
}
impl IvarWithoutId {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct InvalidIvarName {
pub c: u8,
}
impl InvalidIvarName {
pub fn get_c(&self) -> &u8 {
&self.c
}
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct CvarWithoutId {
}
impl CvarWithoutId {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct InvalidCvarName {
pub c: u8,
}
impl InvalidCvarName {
pub fn get_c(&self) -> &u8 {
&self.c
}
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct UnknownRegexOptions {
pub options: StringPtr,
}
impl UnknownRegexOptions {
pub fn get_options(&self) -> &StringPtr {
&self.options
}
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct UnterminatedUnicodeEscape {
}
impl UnterminatedUnicodeEscape {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct EncodingError {
pub error: StringPtr,
}
impl EncodingError {
pub fn get_error(&self) -> &StringPtr {
&self.error
}
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct InvalidMultibyteChar {
}
impl InvalidMultibyteChar {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct AmbiguousTernaryOperator {
pub condition: StringPtr,
}
impl AmbiguousTernaryOperator {
pub fn get_condition(&self) -> &StringPtr {
&self.condition
}
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct AmbiguousRegexp {
}
impl AmbiguousRegexp {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct ElseWithoutRescue {
}
impl ElseWithoutRescue {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct BeginNotAtTopLevel {
}
impl BeginNotAtTopLevel {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct AliasNthRef {
}
impl AliasNthRef {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct CsendInsideMasgn {
}
impl CsendInsideMasgn {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct ClassOrModuleNameMustBeConstant {
}
impl ClassOrModuleNameMustBeConstant {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct EndlessSetterDefinition {
}
impl EndlessSetterDefinition {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct UnexpectedToken {
pub token_name: StringPtr,
}
impl UnexpectedToken {
pub fn get_token_name(&self) -> &StringPtr {
&self.token_name
}
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct ClassDefinitionInMethodBody {
}
impl ClassDefinitionInMethodBody {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct ModuleDefinitionInMethodBody {
}
impl ModuleDefinitionInMethodBody {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct InvalidReturnInClassOrModuleBody {
}
impl InvalidReturnInClassOrModuleBody {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct ConstArgument {
}
impl ConstArgument {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct IvarArgument {
}
impl IvarArgument {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct GvarArgument {
}
impl GvarArgument {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct CvarArgument {
}
impl CvarArgument {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct NoSuchLocalVariable {
pub var_name: StringPtr,
}
impl NoSuchLocalVariable {
pub fn get_var_name(&self) -> &StringPtr {
&self.var_name
}
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct OrdinaryParamDefined {
}
impl OrdinaryParamDefined {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct NumparamUsed {
}
impl NumparamUsed {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct TokAtEolWithoutExpression {
pub token_name: StringPtr,
}
impl TokAtEolWithoutExpression {
pub fn get_token_name(&self) -> &StringPtr {
&self.token_name
}
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct EndInMethod {
}
impl EndInMethod {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct ComparisonAfterComparison {
pub comparison: StringPtr,
}
impl ComparisonAfterComparison {
pub fn get_comparison(&self) -> &StringPtr {
&self.comparison
}
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct CircularArgumentReference {
pub arg_name: StringPtr,
}
impl CircularArgumentReference {
pub fn get_arg_name(&self) -> &StringPtr {
&self.arg_name
}
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct DynamicConstantAssignment {
}
impl DynamicConstantAssignment {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct CantAssignToSelf {
}
impl CantAssignToSelf {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct CantAssignToNil {
}
impl CantAssignToNil {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct CantAssignToTrue {
}
impl CantAssignToTrue {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct CantAssignToFalse {
}
impl CantAssignToFalse {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct CantAssignToFile {
}
impl CantAssignToFile {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct CantAssignToLine {
}
impl CantAssignToLine {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct CantAssignToEncoding {
}
impl CantAssignToEncoding {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct CantAssignToNumparam {
pub numparam: StringPtr,
}
impl CantAssignToNumparam {
pub fn get_numparam(&self) -> &StringPtr {
&self.numparam
}
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct CantSetVariable {
pub var_name: StringPtr,
}
impl CantSetVariable {
pub fn get_var_name(&self) -> &StringPtr {
&self.var_name
}
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct BlockGivenToYield {
}
impl BlockGivenToYield {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct BlockAndBlockArgGiven {
}
impl BlockAndBlockArgGiven {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct SymbolLiteralWithInterpolation {
}
impl SymbolLiteralWithInterpolation {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct ReservedForNumparam {
pub numparam: StringPtr,
}
impl ReservedForNumparam {
pub fn get_numparam(&self) -> &StringPtr {
&self.numparam
}
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct KeyMustBeValidAsLocalVariable {
}
impl KeyMustBeValidAsLocalVariable {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct DuplicateVariableName {
}
impl DuplicateVariableName {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct DuplicateKeyName {
}
impl DuplicateKeyName {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct SingletonLiteral {
}
impl SingletonLiteral {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct NthRefIsTooBig {
pub nth_ref: StringPtr,
}
impl NthRefIsTooBig {
pub fn get_nth_ref(&self) -> &StringPtr {
&self.nth_ref
}
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct DuplicatedArgumentName {
}
impl DuplicatedArgumentName {
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct RegexError {
pub error: StringPtr,
}
impl RegexError {
pub fn get_error(&self) -> &StringPtr {
&self.error
}
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct InvalidSymbol {
pub symbol: StringPtr,
}
impl InvalidSymbol {
pub fn get_symbol(&self) -> &StringPtr {
&self.symbol
}
}
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct VoidValueExpression {
}
impl VoidValueExpression {
}
impl crate::DiagnosticMessage {
pub fn as_fraction_after_numeric(&self) -> Option<&FractionAfterNumeric> {
match self {
Self::FractionAfterNumeric(variant) => Some(variant),
_ => None
}
}
pub fn as_no_digits_after_dot(&self) -> Option<&NoDigitsAfterDot> {
match self {
Self::NoDigitsAfterDot(variant) => Some(variant),
_ => None
}
}
pub fn as_unknown_type_of_percent_string(&self) -> Option<&UnknownTypeOfPercentString> {
match self {
Self::UnknownTypeOfPercentString(variant) => Some(variant),
_ => None
}
}
pub fn as_numeric_literal_without_digits(&self) -> Option<&NumericLiteralWithoutDigits> {
match self {
Self::NumericLiteralWithoutDigits(variant) => Some(variant),
_ => None
}
}
pub fn as_unterminated_list(&self) -> Option<&UnterminatedList> {
match self {
Self::UnterminatedList(variant) => Some(variant),
_ => None
}
}
pub fn as_unterminated_regexp(&self) -> Option<&UnterminatedRegexp> {
match self {
Self::UnterminatedRegexp(variant) => Some(variant),
_ => None
}
}
pub fn as_unterminated_string(&self) -> Option<&UnterminatedString> {
match self {
Self::UnterminatedString(variant) => Some(variant),
_ => None
}
}
pub fn as_unterminated_quoted_string(&self) -> Option<&UnterminatedQuotedString> {
match self {
Self::UnterminatedQuotedString(variant) => Some(variant),
_ => None
}
}
pub fn as_invalid_unicode_escape(&self) -> Option<&InvalidUnicodeEscape> {
match self {
Self::InvalidUnicodeEscape(variant) => Some(variant),
_ => None
}
}
pub fn as_too_large_unicode_codepoint(&self) -> Option<&TooLargeUnicodeCodepoint> {
match self {
Self::TooLargeUnicodeCodepoint(variant) => Some(variant),
_ => None
}
}
pub fn as_invalid_unicode_codepoint(&self) -> Option<&InvalidUnicodeCodepoint> {
match self {
Self::InvalidUnicodeCodepoint(variant) => Some(variant),
_ => None
}
}
pub fn as_multiple_codepoint_at_single_char(&self) -> Option<&MultipleCodepointAtSingleChar> {
match self {
Self::MultipleCodepointAtSingleChar(variant) => Some(variant),
_ => None
}
}
pub fn as_invalid_escape_character(&self) -> Option<&InvalidEscapeCharacter> {
match self {
Self::InvalidEscapeCharacter(variant) => Some(variant),
_ => None
}
}
pub fn as_invalid_hex_escape(&self) -> Option<&InvalidHexEscape> {
match self {
Self::InvalidHexEscape(variant) => Some(variant),
_ => None
}
}
pub fn as_unterminated_heredoc(&self) -> Option<&UnterminatedHeredoc> {
match self {
Self::UnterminatedHeredoc(variant) => Some(variant),
_ => None
}
}
pub fn as_unterminated_heredoc_id(&self) -> Option<&UnterminatedHeredocId> {
match self {
Self::UnterminatedHeredocId(variant) => Some(variant),
_ => None
}
}
pub fn as_slash_r_at_middle_of_line(&self) -> Option<&SlashRAtMiddleOfLine> {
match self {
Self::SlashRAtMiddleOfLine(variant) => Some(variant),
_ => None
}
}
pub fn as_d_star_interpreted_as_arg_prefix(&self) -> Option<&DStarInterpretedAsArgPrefix> {
match self {
Self::DStarInterpretedAsArgPrefix(variant) => Some(variant),
_ => None
}
}
pub fn as_star_interpreted_as_arg_prefix(&self) -> Option<&StarInterpretedAsArgPrefix> {
match self {
Self::StarInterpretedAsArgPrefix(variant) => Some(variant),
_ => None
}
}
pub fn as_ampersand_interpreted_as_arg_prefix(&self) -> Option<&AmpersandInterpretedAsArgPrefix> {
match self {
Self::AmpersandInterpretedAsArgPrefix(variant) => Some(variant),
_ => None
}
}
pub fn as_triple_dot_at_eol(&self) -> Option<&TripleDotAtEol> {
match self {
Self::TripleDotAtEol(variant) => Some(variant),
_ => None
}
}
pub fn as_parentheses_iterpreted_as_arglist(&self) -> Option<&ParenthesesIterpretedAsArglist> {
match self {
Self::ParenthesesIterpretedAsArglist(variant) => Some(variant),
_ => None
}
}
pub fn as_ambiguous_first_argument(&self) -> Option<&AmbiguousFirstArgument> {
match self {
Self::AmbiguousFirstArgument(variant) => Some(variant),
_ => None
}
}
pub fn as_ambiguous_operator(&self) -> Option<&AmbiguousOperator> {
match self {
Self::AmbiguousOperator(variant) => Some(variant),
_ => None
}
}
pub fn as_invalid_character_syntax(&self) -> Option<&InvalidCharacterSyntax> {
match self {
Self::InvalidCharacterSyntax(variant) => Some(variant),
_ => None
}
}
pub fn as_invalid_octal_digit(&self) -> Option<&InvalidOctalDigit> {
match self {
Self::InvalidOctalDigit(variant) => Some(variant),
_ => None
}
}
pub fn as_trailing_char_in_number(&self) -> Option<&TrailingCharInNumber> {
match self {
Self::TrailingCharInNumber(variant) => Some(variant),
_ => None
}
}
pub fn as_embedded_document_meets_eof(&self) -> Option<&EmbeddedDocumentMeetsEof> {
match self {
Self::EmbeddedDocumentMeetsEof(variant) => Some(variant),
_ => None
}
}
pub fn as_invalid_char(&self) -> Option<&InvalidChar> {
match self {
Self::InvalidChar(variant) => Some(variant),
_ => None
}
}
pub fn as_incomplete_character_syntax(&self) -> Option<&IncompleteCharacterSyntax> {
match self {
Self::IncompleteCharacterSyntax(variant) => Some(variant),
_ => None
}
}
pub fn as_gvar_without_id(&self) -> Option<&GvarWithoutId> {
match self {
Self::GvarWithoutId(variant) => Some(variant),
_ => None
}
}
pub fn as_invalid_gvar_name(&self) -> Option<&InvalidGvarName> {
match self {
Self::InvalidGvarName(variant) => Some(variant),
_ => None
}
}
pub fn as_ivar_without_id(&self) -> Option<&IvarWithoutId> {
match self {
Self::IvarWithoutId(variant) => Some(variant),
_ => None
}
}
pub fn as_invalid_ivar_name(&self) -> Option<&InvalidIvarName> {
match self {
Self::InvalidIvarName(variant) => Some(variant),
_ => None
}
}
pub fn as_cvar_without_id(&self) -> Option<&CvarWithoutId> {
match self {
Self::CvarWithoutId(variant) => Some(variant),
_ => None
}
}
pub fn as_invalid_cvar_name(&self) -> Option<&InvalidCvarName> {
match self {
Self::InvalidCvarName(variant) => Some(variant),
_ => None
}
}
pub fn as_unknown_regex_options(&self) -> Option<&UnknownRegexOptions> {
match self {
Self::UnknownRegexOptions(variant) => Some(variant),
_ => None
}
}
pub fn as_unterminated_unicode_escape(&self) -> Option<&UnterminatedUnicodeEscape> {
match self {
Self::UnterminatedUnicodeEscape(variant) => Some(variant),
_ => None
}
}
pub fn as_encoding_error(&self) -> Option<&EncodingError> {
match self {
Self::EncodingError(variant) => Some(variant),
_ => None
}
}
pub fn as_invalid_multibyte_char(&self) -> Option<&InvalidMultibyteChar> {
match self {
Self::InvalidMultibyteChar(variant) => Some(variant),
_ => None
}
}
pub fn as_ambiguous_ternary_operator(&self) -> Option<&AmbiguousTernaryOperator> {
match self {
Self::AmbiguousTernaryOperator(variant) => Some(variant),
_ => None
}
}
pub fn as_ambiguous_regexp(&self) -> Option<&AmbiguousRegexp> {
match self {
Self::AmbiguousRegexp(variant) => Some(variant),
_ => None
}
}
pub fn as_else_without_rescue(&self) -> Option<&ElseWithoutRescue> {
match self {
Self::ElseWithoutRescue(variant) => Some(variant),
_ => None
}
}
pub fn as_begin_not_at_top_level(&self) -> Option<&BeginNotAtTopLevel> {
match self {
Self::BeginNotAtTopLevel(variant) => Some(variant),
_ => None
}
}
pub fn as_alias_nth_ref(&self) -> Option<&AliasNthRef> {
match self {
Self::AliasNthRef(variant) => Some(variant),
_ => None
}
}
pub fn as_csend_inside_masgn(&self) -> Option<&CsendInsideMasgn> {
match self {
Self::CsendInsideMasgn(variant) => Some(variant),
_ => None
}
}
pub fn as_class_or_module_name_must_be_constant(&self) -> Option<&ClassOrModuleNameMustBeConstant> {
match self {
Self::ClassOrModuleNameMustBeConstant(variant) => Some(variant),
_ => None
}
}
pub fn as_endless_setter_definition(&self) -> Option<&EndlessSetterDefinition> {
match self {
Self::EndlessSetterDefinition(variant) => Some(variant),
_ => None
}
}
pub fn as_unexpected_token(&self) -> Option<&UnexpectedToken> {
match self {
Self::UnexpectedToken(variant) => Some(variant),
_ => None
}
}
pub fn as_class_definition_in_method_body(&self) -> Option<&ClassDefinitionInMethodBody> {
match self {
Self::ClassDefinitionInMethodBody(variant) => Some(variant),
_ => None
}
}
pub fn as_module_definition_in_method_body(&self) -> Option<&ModuleDefinitionInMethodBody> {
match self {
Self::ModuleDefinitionInMethodBody(variant) => Some(variant),
_ => None
}
}
pub fn as_invalid_return_in_class_or_module_body(&self) -> Option<&InvalidReturnInClassOrModuleBody> {
match self {
Self::InvalidReturnInClassOrModuleBody(variant) => Some(variant),
_ => None
}
}
pub fn as_const_argument(&self) -> Option<&ConstArgument> {
match self {
Self::ConstArgument(variant) => Some(variant),
_ => None
}
}
pub fn as_ivar_argument(&self) -> Option<&IvarArgument> {
match self {
Self::IvarArgument(variant) => Some(variant),
_ => None
}
}
pub fn as_gvar_argument(&self) -> Option<&GvarArgument> {
match self {
Self::GvarArgument(variant) => Some(variant),
_ => None
}
}
pub fn as_cvar_argument(&self) -> Option<&CvarArgument> {
match self {
Self::CvarArgument(variant) => Some(variant),
_ => None
}
}
pub fn as_no_such_local_variable(&self) -> Option<&NoSuchLocalVariable> {
match self {
Self::NoSuchLocalVariable(variant) => Some(variant),
_ => None
}
}
pub fn as_ordinary_param_defined(&self) -> Option<&OrdinaryParamDefined> {
match self {
Self::OrdinaryParamDefined(variant) => Some(variant),
_ => None
}
}
pub fn as_numparam_used(&self) -> Option<&NumparamUsed> {
match self {
Self::NumparamUsed(variant) => Some(variant),
_ => None
}
}
pub fn as_tok_at_eol_without_expression(&self) -> Option<&TokAtEolWithoutExpression> {
match self {
Self::TokAtEolWithoutExpression(variant) => Some(variant),
_ => None
}
}
pub fn as_end_in_method(&self) -> Option<&EndInMethod> {
match self {
Self::EndInMethod(variant) => Some(variant),
_ => None
}
}
pub fn as_comparison_after_comparison(&self) -> Option<&ComparisonAfterComparison> {
match self {
Self::ComparisonAfterComparison(variant) => Some(variant),
_ => None
}
}
pub fn as_circular_argument_reference(&self) -> Option<&CircularArgumentReference> {
match self {
Self::CircularArgumentReference(variant) => Some(variant),
_ => None
}
}
pub fn as_dynamic_constant_assignment(&self) -> Option<&DynamicConstantAssignment> {
match self {
Self::DynamicConstantAssignment(variant) => Some(variant),
_ => None
}
}
pub fn as_cant_assign_to_self(&self) -> Option<&CantAssignToSelf> {
match self {
Self::CantAssignToSelf(variant) => Some(variant),
_ => None
}
}
pub fn as_cant_assign_to_nil(&self) -> Option<&CantAssignToNil> {
match self {
Self::CantAssignToNil(variant) => Some(variant),
_ => None
}
}
pub fn as_cant_assign_to_true(&self) -> Option<&CantAssignToTrue> {
match self {
Self::CantAssignToTrue(variant) => Some(variant),
_ => None
}
}
pub fn as_cant_assign_to_false(&self) -> Option<&CantAssignToFalse> {
match self {
Self::CantAssignToFalse(variant) => Some(variant),
_ => None
}
}
pub fn as_cant_assign_to_file(&self) -> Option<&CantAssignToFile> {
match self {
Self::CantAssignToFile(variant) => Some(variant),
_ => None
}
}
pub fn as_cant_assign_to_line(&self) -> Option<&CantAssignToLine> {
match self {
Self::CantAssignToLine(variant) => Some(variant),
_ => None
}
}
pub fn as_cant_assign_to_encoding(&self) -> Option<&CantAssignToEncoding> {
match self {
Self::CantAssignToEncoding(variant) => Some(variant),
_ => None
}
}
pub fn as_cant_assign_to_numparam(&self) -> Option<&CantAssignToNumparam> {
match self {
Self::CantAssignToNumparam(variant) => Some(variant),
_ => None
}
}
pub fn as_cant_set_variable(&self) -> Option<&CantSetVariable> {
match self {
Self::CantSetVariable(variant) => Some(variant),
_ => None
}
}
pub fn as_block_given_to_yield(&self) -> Option<&BlockGivenToYield> {
match self {
Self::BlockGivenToYield(variant) => Some(variant),
_ => None
}
}
pub fn as_block_and_block_arg_given(&self) -> Option<&BlockAndBlockArgGiven> {
match self {
Self::BlockAndBlockArgGiven(variant) => Some(variant),
_ => None
}
}
pub fn as_symbol_literal_with_interpolation(&self) -> Option<&SymbolLiteralWithInterpolation> {
match self {
Self::SymbolLiteralWithInterpolation(variant) => Some(variant),
_ => None
}
}
pub fn as_reserved_for_numparam(&self) -> Option<&ReservedForNumparam> {
match self {
Self::ReservedForNumparam(variant) => Some(variant),
_ => None
}
}
pub fn as_key_must_be_valid_as_local_variable(&self) -> Option<&KeyMustBeValidAsLocalVariable> {
match self {
Self::KeyMustBeValidAsLocalVariable(variant) => Some(variant),
_ => None
}
}
pub fn as_duplicate_variable_name(&self) -> Option<&DuplicateVariableName> {
match self {
Self::DuplicateVariableName(variant) => Some(variant),
_ => None
}
}
pub fn as_duplicate_key_name(&self) -> Option<&DuplicateKeyName> {
match self {
Self::DuplicateKeyName(variant) => Some(variant),
_ => None
}
}
pub fn as_singleton_literal(&self) -> Option<&SingletonLiteral> {
match self {
Self::SingletonLiteral(variant) => Some(variant),
_ => None
}
}
pub fn as_nth_ref_is_too_big(&self) -> Option<&NthRefIsTooBig> {
match self {
Self::NthRefIsTooBig(variant) => Some(variant),
_ => None
}
}
pub fn as_duplicated_argument_name(&self) -> Option<&DuplicatedArgumentName> {
match self {
Self::DuplicatedArgumentName(variant) => Some(variant),
_ => None
}
}
pub fn as_regex_error(&self) -> Option<&RegexError> {
match self {
Self::RegexError(variant) => Some(variant),
_ => None
}
}
pub fn as_invalid_symbol(&self) -> Option<&InvalidSymbol> {
match self {
Self::InvalidSymbol(variant) => Some(variant),
_ => None
}
}
pub fn as_void_value_expression(&self) -> Option<&VoidValueExpression> {
match self {
Self::VoidValueExpression(variant) => Some(variant),
_ => None
}
}
}