Heap fill/compare; Std string experiments

This commit is contained in:
dcodeIO
2017-12-21 10:14:53 +01:00
parent dd5c3e7a4e
commit 666ba54e42
17 changed files with 5108 additions and 222 deletions

View File

@ -914,7 +914,13 @@ export enum ElementFlags {
/** Is global. */
GLOBAL = 1 << 11,
/** Is read-only. */
READONLY = 1 << 12
READONLY = 1 << 12,
/** Is a public member. */
PUBLIC = 1 << 13,
/** Is a protected member. */
PROTECTED = 1 << 14,
/** Is a private member. */
PRIVATE = 1 << 15
}
/** Base class of all program elements. */
@ -1441,8 +1447,11 @@ export class FieldPrototype extends Element {
switch (this.declaration.modifiers[i].modifierKind) {
case ModifierKind.EXPORT: this.isExported = true; break;
case ModifierKind.READONLY: this.isReadonly = true; break;
case ModifierKind.PRIVATE:
case ModifierKind.PROTECTED:
case ModifierKind.PUBLIC:
case ModifierKind.STATIC: break; // already handled
default: throw new Error("unexpected modifier");
default: throw new Error("unexpected modifier: " + this.declaration.modifiers[i]);
}
}
}