io.github.scalats.ast
Type members
Classlikes
Reference to an type of Array
(e.g. Array<string>
).
Reference to an type of Array
(e.g. Array<string>
).
- Value parameters:
- innerType
the element type (e.g.
string
forArray<string>
)
Reference to a custom type.
Reference to a custom type.
- Value parameters:
- name
the type name
- typeArgs
the type arguments (e.g.
string
forCustomType<string>
)
A declaration for an enumerated type.
A declaration for an enumerated type.
- Value parameters:
- possibilities
the allowed values
- values
some extra invariant values
An interface declaration.
An interface declaration.
- Value parameters:
- fields
the interface fields
- superInterface
the super interface (if any)
- typeParams
the type parameters for the interface
- union
this interface represents a union type
- Companion:
- object
Reference to a map/dictionary type.
Reference to a map/dictionary type.
- Value parameters:
- keyType
the type of the keys
- valueType
the type of the values
A member Declaration (field/property).
A member Declaration (field/property).
- Value parameters:
- name
the member name
- typeRef
the reference for the member type
Reference to a nullable type (e.g. an optional string).
Reference to a nullable type (e.g. an optional string).
- Value parameters:
- innerType
the inner type (e.g.
string
for nullable string)
- Value parameters:
- name
the member name
- typeRef
the reference for the member type
Reference to an type of Set
(e.g. Set<string>
).
Reference to an type of Set
(e.g. Set<string>
).
- Value parameters:
- innerType
the element type (e.g.
string
forSet<string>
)
A singleton declaration.
A singleton declaration.
- Value parameters:
- superInterface
the super interface (if any)
- values
the invariant values
- Companion:
- object
- Value parameters:
- name
the type name
- values
the invariant values
Tagged type.
Tagged type.
- Value parameters:
- name
the type name
Reference to a type of tuple (e.g. [string, int]
).
Reference to a type of tuple (e.g. [string, int]
).
- Value parameters:
- typeArgs
the types for the tuple elements
Reference to a builtin type or one declared elsewhere.
Reference to a builtin type or one declared elsewhere.
Reference to a union type (e.g. string | number
)
Reference to a union type (e.g. string | number
)