Skip to content

Commit

Permalink
Revert "Remove closure field and update TypedescValueImpl construct…
Browse files Browse the repository at this point in the history
…ors"

This reverts commit 962d8f9.
  • Loading branch information
rdulmina committed Aug 20, 2024
1 parent b14ec39 commit d470345
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ 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 @@ -61,8 +62,14 @@ public TypedescValueImpl(Type describingType) {
this.describingType = describingType;
}

public TypedescValueImpl(Type describingType, MapValue annotations) {
this(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);
this.annotations = annotations;
((BAnnotatableType) describingType).setAnnotations(annotations);
}
Expand Down

0 comments on commit d470345

Please # to comment.