2 import IR.TagVarDescriptor;
3 import IR.TagDescriptor;
5 public class TagDeclarationNode extends BlockStatementNode {
10 public TagDeclarationNode(String name, String type) {
13 tvd=new TagVarDescriptor(new TagDescriptor(type), name);
16 public String printNode(int indent) {
17 return "Tag "+name+"=new("+type+")";
20 public TagVarDescriptor getTagVarDescriptor() {
24 public String getName() {
28 public String getType() {
33 return Kind.TagDeclarationNode;