Skip to content

Commit

Permalink
Remove closure field and update TypedescValueImpl constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
chiranSachintha authored and rdulmina committed Aug 20, 2024
1 parent 54c478e commit 962d8f9
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public class TypedescValueImpl implements TypedescValue {

final Type type;
final Type describingType; // Type of the value describe by this typedesc.
public MapValue[] closures;
public MapValue annotations;
private BTypedesc typedesc;

Expand All @@ -62,14 +61,8 @@ public TypedescValueImpl(Type describingType) {
this.describingType = describingType;
}

public TypedescValueImpl(Type describingType, MapValue[] closures) {
this.type = new BTypedescType(describingType);
this.describingType = describingType;
this.closures = closures;
}

public TypedescValueImpl(Type describingType, MapValue[] closures, MapValue annotations) {
this(describingType, closures);
public TypedescValueImpl(Type describingType, MapValue annotations) {
this(describingType);
this.annotations = annotations;
((BAnnotatableType) describingType).setAnnotations(annotations);
}
Expand Down

0 comments on commit 962d8f9

Please sign in to comment.