Class: SimpleType
Represents a basic named type (e.g., Int, Bool).
Constructors
Constructor
new SimpleType(
value,constraints,loc?):SimpleType
Parameters
| Parameter | Type |
|---|---|
value | string |
constraints | Constraint[] |
loc? | SourceLocation |
Returns
SimpleType
Overrides
ASTNode.constructor
Methods
getMetadata()
getMetadata<
T>(key):T
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
T
Inherited from
ASTNode.getMetadata
hasMetadata()
hasMetadata(
key):boolean
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
boolean
Inherited from
ASTNode.hasMetadata
setMetadata()
setMetadata(
key,value):void
Parameters
| Parameter | Type |
|---|---|
key | string |
value | any |
Returns
void
Inherited from
ASTNode.setMetadata
toString()
toString():
string
Returns a string representation of an object.
Returns
string