Module full_moon::ast::types[][src]

Expand description

Contains the types necessary to parse Roblox’s typed Lua. Only usable when the “roblox” feature flag is enabled.

Structs

CompoundAssignment

A Compound Assignment statement, such as x += 1 or x -= 1

ExportedTypeDeclaration

An exported type declaration, such as export type Meters = number

GenericDeclaration

The generics used in a TypeDeclaration.

TypeArgument

A type argument specified in a callback type, the count: number in (count: number) -> ()

TypeAssertion

A type assertion using ::, such as :: number.

TypeDeclaration

A type declaration, such as type Meters = number

TypeField

A type field used within table types. The foo: number in { foo: number }.

TypeSpecifier

A type specifier, the : number in local foo: number

Enums

CompoundOp

Compound operators, such as X += Y or X -= Y

IndexedTypeInfo

A subset of TypeInfo that consists of items which can only be used as an index, such as Foo and Foo<Bar>,

TypeFieldKey

A key in a TypeField. Can either be a name or an index signature.

TypeInfo

Any type, such as string, boolean?, number | boolean, etc.