Skip to content

Remove dead code of compiler.ts #2428

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 0 additions & 35 deletions src/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1707,41 +1707,6 @@ export class Compiler extends DiagnosticEmitter {
return true;
}

/** Compiles a property to a getter and potentially a setter. */
compileProperty(instance: Property): bool {
this.compilePropertyGetter(instance);
this.compilePropertySetter(instance);
return instance.is(CommonFlags.COMPILED);
}

/* Compiles the getter of the specified property. */
compilePropertyGetter(instance: Property): bool {
var getterInstance = instance.getterInstance;
if (getterInstance) {
let ret = this.compileFunction(getterInstance);
let setterInstance = instance.setterInstance;
if (getterInstance.is(CommonFlags.COMPILED) && (!setterInstance || setterInstance.is(CommonFlags.COMPILED))) {
instance.set(CommonFlags.COMPILED);
}
return ret;
}
return false;
}

/** Compiles the setter of the specified property. */
compilePropertySetter(instance: Property): bool {
var setterInstance = instance.setterInstance;
if (setterInstance) {
let ret = this.compileFunction(setterInstance);
let getterInstance = instance.getterInstance;
if (getterInstance && getterInstance.is(CommonFlags.COMPILED) && setterInstance.is(CommonFlags.COMPILED)) {
instance.set(CommonFlags.COMPILED);
}
return ret;
}
return false;
}

// === Memory ===================================================================================

/** Adds a static memory segment with the specified data. */
Expand Down