TupleSymbol

A tuple symbol.

Members

Functions

getType
Type getType()

Returns the type only when all elements are types, otherwise null.

hasOnlyTypes
bool hasOnlyTypes()

Returns true if all elements are types (also if the tuple is empty.)

makeTypeTuple
TypeTuple makeTypeTuple()

Creates a TypeTuple instance from the items of this tuple.

Variables

items
Symbol[] items;

The items in this tuple.

type
TypeTuple type;

The type of this tuple.

Inherited Members

From Symbol

sid
SYM sid;

The ID of this symbol.

status
Status status;

The semantic status of this symbol.

parent
Symbol parent;

The parent this symbol belongs to.

name
Identifier* name;

The name of this symbol. If the symbol is nameless Ident.Empty is assigned to it.

loc
SLoc loc;

For locating a symbol.

setCompleting
void setCompleting()

Change the status to Status.Completing.

setComplete
void setComplete()

Change the status to Status.Complete.

isCompleting
bool isCompleting()

Returns true if the symbol is being completed.

isComplete
bool isComplete()

Returns true if the symbols is complete.

to
Class to()

Casts the symbol to Class.

getFQN
cstring getFQN()
getModule
Symbol getModule()

Returns the module this symbol belongs to or null if orphaned.

getType
Object getType()

Returns the type of this symbol or null if inexistent. The return type is Object to avoid circular imports.

toMangle
cstring toMangle()

Returns the mangled name of this symbol.

toString
string toString()

Returns the string representation of this symbol.

Meta