public TypeVarDecl(String name, DeclSequence body, TaggedInfo taggedInfo, TypedAST metadata, FileLocation fileLocation) {
this.metadata = new Reference<Optional<TypedAST>>(Optional.ofNullable(metadata));
this.name = name;
this.metadataObj = new Reference<>();
this.body = new TypeDeclaration(name, body, this.metadataObj, taggedInfo, fileLocation);
this.fileLocation = fileLocation;
}