Cleanup; Documentation

This commit is contained in:
dcodeIO
2017-12-18 03:46:36 +01:00
parent c70eb7792f
commit aa563a9a5a
15 changed files with 609 additions and 332 deletions

View File

@ -107,7 +107,7 @@ export function initialize(program: Program): void {
}
}
/** Adds a built-in global to the specified program. */
/** Adds a built-in constant to the specified program. */
function addConstant(program: Program, name: string, type: Type): Global {
const global: Global = new Global(program, name, null, null);
global.isBuiltIn = true;