Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
popomore committed Sep 19, 2023
1 parent dc05696 commit 50f3da2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions standalone/standalone/src/StandaloneInnerObjectProto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export class StandaloneInnerObjectProto implements EggPrototype {
readonly accessLevel: AccessLevel;
readonly injectObjects: InjectObjectProto[];
readonly loadUnitId: Id;
readonly className?: string;

constructor(
id: string,
Expand All @@ -34,7 +33,6 @@ export class StandaloneInnerObjectProto implements EggPrototype {
initType: ObjectInitTypeLike,
loadUnitId: Id,
qualifiers: QualifierInfo[],
className?: string,
) {
this.id = id;
this.clazz = clazz;
Expand All @@ -44,7 +42,6 @@ export class StandaloneInnerObjectProto implements EggPrototype {
this.injectObjects = [];
this.loadUnitId = loadUnitId;
this.qualifiers = qualifiers;
this.className = className;
}

verifyQualifiers(qualifiers: QualifierInfo[]): boolean {
Expand Down Expand Up @@ -76,10 +73,9 @@ export class StandaloneInnerObjectProto implements EggPrototype {
static create(ctx: EggPrototypeLifecycleContext): EggPrototype {
const { clazz, loadUnit } = ctx;
const name = ctx.prototypeInfo.name;
const className = ctx.prototypeInfo.className;
const id = IdenticalUtil.createProtoId(loadUnit.id, name);
const proto = new StandaloneInnerObjectProto(
id, name, clazz, ctx.prototypeInfo.initType, loadUnit.id, QualifierUtil.getProtoQualifiers(clazz), className,
id, name, clazz, ctx.prototypeInfo.initType, loadUnit.id, QualifierUtil.getProtoQualifiers(clazz),
);
return proto;
}
Expand Down

0 comments on commit 50f3da2

Please sign in to comment.