// Do not edit this file! // // Automatically generated by Emacs: // // node defs: nodetypes.def // builder : tree-print.cc.el // timestamp: Mon Aug 22 04:09:16 2005 #include #include "AST.h" #include "decls.h" void NameNode::print_attrs (ostream& os, unsigned depth) const { os << " \"" << *ident() << "\""; os << " "; printNode (decl(), os); } void PrimitiveLitNode::print_attrs (ostream& os, unsigned depth) const { os << " " << literal(); } void StringLitNode::print_attrs (ostream& os, unsigned depth) const { os << " " << text(); } void CompileUnitNode::print_attrs (ostream& os, unsigned depth) const { os << " \"" << *ident() << "\""; os << " " << environ(); } void ClassDeclNode::print_attrs (ostream& os, unsigned depth) const { os << " (" << stringifyModifiers (flags()) << ')'; os << "\n"; if (enclosingType()) enclosingType()->print (os, depth + 1); else os << "NULL"; os << "\n"; os << "\n"; if (enclosingBlock()) enclosingBlock()->print (os, depth + 1); else os << "NULL"; os << "\n"; os << " " << declaredName(); os << " " << hasEnclosingInstance(); os << " " << allocateContext(); os << " " << classNum(); } void FieldDeclNode::print_attrs (ostream& os, unsigned depth) const { os << " (" << stringifyModifiers (flags()) << ')'; } void VarDeclNode::print_attrs (ostream& os, unsigned depth) const { os << " " << isfinal(); } void MethodDeclNode::print_attrs (ostream& os, unsigned depth) const { os << " (" << stringifyModifiers (flags()) << ')'; } void MethodSignatureNode::print_attrs (ostream& os, unsigned depth) const { os << " (" << stringifyModifiers (flags()) << ')'; } void ConstructorDeclNode::print_attrs (ostream& os, unsigned depth) const { os << " (" << stringifyModifiers (flags()) << ')'; } void ThisConstructorCallNode::print_attrs (ostream& os, unsigned depth) const { os << " "; printNode (decl(), os); os << " " << valid(); } void SuperConstructorCallNode::print_attrs (ostream& os, unsigned depth) const { os << " (" << stringifyModifiers (flags()) << ')'; os << " "; printNode (decl(), os); } void InterfaceDeclNode::print_attrs (ostream& os, unsigned depth) const { os << " (" << stringifyModifiers (flags()) << ')'; os << "\n"; if (enclosingType()) enclosingType()->print (os, depth + 1); else os << "NULL"; os << "\n"; os << " " << declaredName(); os << " " << hasEnclosingInstance(); } void BlockNode::print_attrs (ostream& os, unsigned depth) const { os << " " << environ(); } void GotoNode::print_attrs (ostream& os, unsigned depth) const { if (destination()->absent()) os << " Label:-*-"; else os << " Label:" << destination(); } void BreakNode::print_attrs (ostream& os, unsigned depth) const { if (destination()->absent()) os << " Label:-*-"; else os << " Label:" << destination(); os << " " << cleanups(); } void ContinueNode::print_attrs (ostream& os, unsigned depth) const { if (destination()->absent()) os << " Label:-*-"; else os << " Label:" << destination(); os << " " << cleanups(); } void ReturnNode::print_attrs (ostream& os, unsigned depth) const { os << " " << cleanups(); } void ParameterNode::print_attrs (ostream& os, unsigned depth) const { os << " " << isfinal(); } void ThisNode::print_attrs (ostream& os, unsigned depth) const { os << "\n"; if (theClass()) theClass()->print (os, depth + 1); else os << "NULL"; os << "\n"; os << " (" << stringifyModifiers (flags()) << ')'; } void ThisFieldAccessNode::print_attrs (ostream& os, unsigned depth) const { os << "\n"; if (theClass()) theClass()->print (os, depth + 1); else os << "NULL"; os << "\n"; os << " (" << stringifyModifiers (flags()) << ')'; } void SuperFieldAccessNode::print_attrs (ostream& os, unsigned depth) const { os << "\n"; if (theClass()) theClass()->print (os, depth + 1); else os << "NULL"; os << "\n"; os << " (" << stringifyModifiers (flags()) << ')'; } void AllocateNode::print_attrs (ostream& os, unsigned depth) const { os << " "; printNode (decl(), os); os << " " << cbody(); } void ForEachSetupNode::print_attrs (ostream& os, unsigned depth) const { os << " " << WRTloop(); } void UpdatePointBeforeStmtNode::print_attrs (ostream& os, unsigned depth) const { os << " " << pointValues(); os << " " << rfrs(); os << " " << sirs(); os << " " << urs(); os << " " << WRTloop(); } void ForEachStmtNode::print_attrs (ostream& os, unsigned depth) const { os << " " << isinline(); } void ReorderNode::print_attrs (ostream& os, unsigned depth) const { os << " " << stmtsToDelete(); os << " " << declsToDelete(); os << " " << remap(); } void EmptyArrayNode::print_attrs (ostream& os, unsigned depth) const { os << " (" << stringifyModifiers (flags()) << ')'; } void ExpressionArrayNode::print_attrs (ostream& os, unsigned depth) const { os << " (" << stringifyModifiers (flags()) << ')'; } void TitaniumArrayNode::print_attrs (ostream& os, unsigned depth) const { os << " (" << stringifyModifiers (flags()) << ')'; } void AllocateArrayDimensionNode::print_attrs (ostream& os, unsigned depth) const { os << " (" << stringifyModifiers (flags()) << ')'; } void ArrayNameNode::print_attrs (ostream& os, unsigned depth) const { os << " (" << stringifyModifiers (flags()) << ')'; } void PragmaNode::print_attrs (ostream& os, unsigned depth) const { os << " " << requests(); } void SRArrayAccessNode::print_attrs (ostream& os, unsigned depth) const { os << " " << WRTloop(); os << " " << codeString(); os << " " << appearsOnEveryIter(); } void OSRArrayAccessNode::print_attrs (ostream& os, unsigned depth) const { os << " " << WRTloop(); os << " " << codeString(); os << " " << offsetString(); os << " " << appearsOnEveryIter(); } void CodeLiteralNode::print_attrs (ostream& os, unsigned depth) const { os << " " << codeString(); } void CodeLiteralExprNode::print_attrs (ostream& os, unsigned depth) const { os << " " << codeString(); } void CodeLiteralFieldAccessNode::print_attrs (ostream& os, unsigned depth) const { os << " " << codeString(); } void MonitorFetchClassNode::print_attrs (ostream& os, unsigned depth) const { os << " "; printNode (decl(), os); } void MonitorLockNode::print_attrs (ostream& os, unsigned depth) const { os << " " << fetcher(); } void MonitorUnlockNode::print_attrs (ostream& os, unsigned depth) const { os << " " << fetcher(); } void TemplateInstanceTypeNode::print_attrs (ostream& os, unsigned depth) const { os << " "; printNode (decl(), os); } void TemplateDeclNode::print_attrs (ostream& os, unsigned depth) const { os << " " << environ(); } void TemplateInstanceDeclNode::print_attrs (ostream& os, unsigned depth) const { os << " " << environ(); }