public String scString() { assert (idlist != null); String ret = idlist.scString(); if (tolerance_aspect != null) { warning("tolerance_aspect ignored"); ret += tolerance_aspect.scString(); } if (expression != null) { ret += " = "; ret += expression.scString(); } warning("token across ignored"); return ret; }
public ScPackage_body(ASTNode node) { super(node, true); assert (node.getId() == ASTPACKAGE_BODY); int i; for (i = 0; i < node.getChildrenNum(); i++) { ASTNode c = (ASTNode) node.getChild(i); int id = c.getId(); ScVhdl tmp = null; switch (id) { case ASTIDENTIFIER: tmp = new ScIdentifier(c); identifier = tmp.scString(); break; case ASTPACKAGE_BODY_DECLARATIVE_PART: declarative_part = new ScPackage_body_declarative_part(c); break; default: break; } } assert (identifier != null); for (i = 0; i < units.size(); i++) { ScCommonIdentifier ident = units.get(i); if (ident instanceof ScPackage_declaration && ident.identifier.equalsIgnoreCase(identifier)) { ((ScPackage_declaration) ident).setPackageBody(this); break; } } if (i == units.size()) { MyDebug.printFileLine("package boty no corresponding package"); } }