Enum js::syntax::ast::types::Type[src]

pub enum Type {
    UndefinedType,
    NullType,
    BooleanType,
    NumberType,
    IntegerType,
    StringType,
    NativeObjectType,
    FunctionType,
    ObjectType,
    AnyOfType(Vec<Type>),
    AnyType,
}

Represents a Javascript type at parsing/compilation

Variants

UndefinedType

undefined

NullType

null

BooleanType

boolean

NumberType

number

IntegerType

number

StringType

string

NativeObjectType

A native object

FunctionType

function

ObjectType

object

AnyOfType

Any of these types

AnyType

Any type

Methods

impl Type

fn normalise(&mut self)

Normalise the type

Trait Implementations

impl Show for Type

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl PartialEq for Type

fn eq(&self, __arg_0: &Type) -> bool

fn ne(&self, __arg_0: &Type) -> bool

impl Clone for Type

fn clone(&self) -> Type

fn clone_from(&mut self, source: &Self)