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 |
|
NullType |
|
BooleanType |
|
NumberType |
|
IntegerType |
|
StringType |
|
NativeObjectType | A native object |
FunctionType |
|
ObjectType |
|
AnyOfType | Any of these types |
AnyType | Any type |
Methods
impl Type
fn normalise(&mut self)
Normalise the type