[][src]Enum type_checking::semantics::SemanticError

pub enum SemanticError {
    RedefinitionError {
        kind: String,
        name: String,
    },
    MainMethodParamUsed {
        name: String,
    },
    StaticMethodNotMain,
    NoMainMethod,
    MultipleStaticMethods {
        amount: u64,
    },
    ThisInStaticMethod,
    MightNotReturn {
        method_name: String,
    },
    ThisMethodInvocationInStaticMethod {
        method_name: String,
    },
    CannotCallStaticMethod {
        method_name: String,
    },
    ConditionMustBeBoolean,
    CannotLookupVarOrField {
        name: String,
    },
    CannotLookupVarOrFieldDidYouMean {
        name: String,
        did_you_mean: String,
    },
    CannotAccessNonStaticFieldInStaticMethod {
        field_name: String,
    },
    VoidMethodCannotReturnValue,
    VoidNotAllowed,
    MethodMustReturnSomething {
        ty: String,
    },
    InvalidType {
        ty_expected: String,
        ty_expr: String,
    },
    InvalidReferenceToClass {
        class_name: String,
    },
    ClassDoesNotExist {
        class_name: String,
    },
    CannotIndexNonArrayType {
        ty: String,
    },
    MethodDoesNotExistOnType {
        method_name: String,
        ty: String,
    },
    FieldDoesNotExistOnType {
        field_name: String,
        ty: String,
    },
    MethodArgCountDoesNotMatch {
        expected_args: usize,
        actual_args: usize,
    },
    CannotCompareValuesOfType1WithType2 {
        ty1: String,
        ty2: String,
    },
    NotAStatement,
    InvalidAssignment,
    CannotWriteToReadOnlyField {
        field_name: String,
    },
    IntTooLarge {
        int: String,
    },
}

Variants

Fields of RedefinitionError

Fields of MainMethodParamUsed

Fields of MultipleStaticMethods

Fields of MightNotReturn

Fields of ThisMethodInvocationInStaticMethod

Fields of CannotCallStaticMethod

Fields of CannotLookupVarOrField

Fields of CannotLookupVarOrFieldDidYouMean

Fields of CannotAccessNonStaticFieldInStaticMethod

Fields of MethodMustReturnSomething

Fields of InvalidType

Fields of InvalidReferenceToClass

Fields of ClassDoesNotExist

Fields of CannotIndexNonArrayType

Fields of MethodDoesNotExistOnType

Fields of FieldDoesNotExistOnType

Fields of MethodArgCountDoesNotMatch

Fields of CannotCompareValuesOfType1WithType2

Fields of CannotWriteToReadOnlyField

Fields of IntTooLarge

Trait Implementations

impl Display for SemanticError
[src]

impl Debug for SemanticError
[src]

impl Fail for SemanticError
[src]

Provides context for this failure. Read more

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more

Auto Trait Implementations

impl Send for SemanticError

impl Sync for SemanticError

Blanket Implementations

impl<T> From for T
[src]

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<E> Fail for E where
    E: 'static + Error + Send + Sync
[src]

Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more

Returns a reference to the Backtrace carried by this failure, if it carries one. Read more

Provides context for this failure. Read more

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more

impl<T> AsFail for T where
    T: Fail
[src]