Enum badger::grammar::ClassMember [] [src]

pub enum ClassMember {
    Constructor {
        params: Vec<Parameter>,
        body: Vec<Statement>,
    },
    Method {
        is_static: bool,
        name: OwnedSlice,
        params: Vec<Parameter>,
        body: Vec<Statement>,
    },
    Property {
        is_static: bool,
        name: OwnedSlice,
        value: Expression,
    },
}

Variants

Fields of Constructor

Fields of Method

Fields of Property

Trait Implementations

impl Debug for ClassMember
[src]

Formats the value using the given formatter.

impl PartialEq for ClassMember
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for ClassMember
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more