- addEnum
GrType addEnum(string name, string[] fields, uint fileId, bool isPublic)
- addIntConstant
GrType addIntConstant(string name, int value)
Primitive global constants, call registerIntConstant at the start of the parser. \
Not used for now.
- addLibrary
void addLibrary(GrLibrary library)
Add types and primitives defined in the library
- addTemplateAlias
GrType addTemplateAlias(string name, GrType type, uint fileId, bool isPublic)
Define an alias of another type.
- addTypeAlias
GrType addTypeAlias(string name, GrType type, uint fileId, bool isPublic)
Define an alias of another type.
- clearTemplateAliases
void clearTemplateAliases()
Undocumented in source. Be warned that the author may not have intended to support it.
- getClass
GrClassDefinition getClass(string mangledName, uint fileId, bool isPublic)
Return the class definition.
- getEnum
GrEnumDefinition getEnum(string name, uint fileId)
Return the enum definition.
- getForeign
GrForeignDefinition getForeign(string mangledName)
Return the user-type definition.
- getPrimitive
GrPrimitive getPrimitive(string mangledName)
GrPrimitive getPrimitive(string name, GrType[] signature)
Returns the declared primitive definition.
- getTypeAlias
GrTypeAliasDefinition getTypeAlias(string name, uint fileId)
Return the type alias definition.
- isClass
bool isClass(string name, uint fileId, bool isPublic)
- isEnum
bool isEnum(string name, uint fileId, bool isPublic)
- isForeign
bool isForeign(string name)
Is the user-type defined ?
- isPrimitiveDeclared
bool isPrimitiveDeclared(string mangledName)
Is the primitive already declared ?
- isSignatureCompatible
bool isSignatureCompatible(GrType[] first, GrType[] second, uint fileId, bool isPublic)
Check if the first signature match or can be upgraded (by inheritance) to the second one.
- isTypeAlias
bool isTypeAlias(string name, uint fileId, bool isPublic)
Is the type alias defined ?
- isTypeDeclared
bool isTypeDeclared(string name, uint fileId, bool isPublic)
Is a type already declared in this file
- registerClass
void registerClass(string name, uint fileId, bool isPublic, string[] templateVariables, uint position)
Undocumented in source. Be warned that the author may not have intended to support it.
- reifyPrimitive
GrPrimitive reifyPrimitive(GrPrimitive templatePrimitive, GrType[] signature)
Undocumented in source. Be warned that the author may not have intended to support it.
Contains type information and D linked functions. \ Must be the same between the compilation and the runtime. ___ Only use the *add*X() functions ***before*** compilation happen, else they won't be linked.