// Do not edit this file! // // Automatically generated by Emacs: // // node defs: nodetypes.def // builder : tree-print.cc.el // timestamp: Fri Jul 4 17:41:32 2003 #include #include "AST.h" void NameNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(NameNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << "\n"; qualifier()->print (os, depth + 1); os << " \"" << *ident() << "\""; os << " "; decl()->print (os); os << ")"; } void PrimitiveLitNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(PrimitiveLitNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << " " << literal(); os << ")"; } void StringLitNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(StringLitNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << " " << text(); os << ")"; } void CompileUnitNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(CompileUnitNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << " \"" << *ident() << "\""; os << "\n"; package()->print (os, depth + 1); os << "\n"; imports()->print (os, depth + 1); os << "\n"; types()->print (os, depth + 1); os << " " << environ(); os << ")"; } void ClassDeclNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(ClassDeclNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << " (" << stringifyModifiers (flags()) << ')'; os << "\n"; simpName()->print (os, depth + 1); os << "\n"; superClass()->print (os, depth + 1); os << "\n"; interfaces()->print (os, depth + 1); os << "\n"; members()->print (os, depth + 1); os << ")"; } void FieldDeclNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(FieldDeclNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << "\n"; dtype()->print (os, depth + 1); os << "\n"; simpName()->print (os, depth + 1); os << " (" << stringifyModifiers (flags()) << ')'; os << "\n"; initExpr()->print (os, depth + 1); os << ")"; } void VarDeclNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(VarDeclNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << " " << isfinal(); os << "\n"; dtype()->print (os, depth + 1); os << "\n"; simpName()->print (os, depth + 1); os << "\n"; initExpr()->print (os, depth + 1); os << ")"; } void MethodDeclNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(MethodDeclNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << " (" << stringifyModifiers (flags()) << ')'; os << "\n"; params()->print (os, depth + 1); os << "\n"; returnType()->print (os, depth + 1); os << "\n"; simpName()->print (os, depth + 1); os << "\n"; throws()->print (os, depth + 1); os << "\n"; overlaps()->print (os, depth + 1); os << "\n"; body()->print (os, depth + 1); os << ")"; } void MethodSignatureNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(MethodSignatureNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << " (" << stringifyModifiers (flags()) << ')'; os << "\n"; params()->print (os, depth + 1); os << "\n"; returnType()->print (os, depth + 1); os << "\n"; simpName()->print (os, depth + 1); os << "\n"; throws()->print (os, depth + 1); os << ")"; } void ConstructorDeclNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(ConstructorDeclNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << " (" << stringifyModifiers (flags()) << ')'; os << "\n"; params()->print (os, depth + 1); os << "\n"; simpName()->print (os, depth + 1); os << "\n"; throws()->print (os, depth + 1); os << "\n"; constructorCall()->print (os, depth + 1); os << "\n"; body()->print (os, depth + 1); os << ")"; } void ThisConstructorCallNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(ThisConstructorCallNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << "\n"; args()->print (os, depth + 1); os << " "; decl()->print (os); os << " " << valid(); os << ")"; } void SuperConstructorCallNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(SuperConstructorCallNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << "\n"; args()->print (os, depth + 1); os << " "; decl()->print (os); os << ")"; } void InterfaceDeclNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(InterfaceDeclNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << " (" << stringifyModifiers (flags()) << ')'; os << "\n"; simpName()->print (os, depth + 1); os << "\n"; interfaces()->print (os, depth + 1); os << "\n"; members()->print (os, depth + 1); os << ")"; } void GotoNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(GotoNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << "-*-"; os << ")"; } void BreakNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(BreakNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << "\n"; label()->print (os, depth + 1); os << "-*-"; os << " " << cleanups(); os << ")"; } void ContinueNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(ContinueNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << "\n"; label()->print (os, depth + 1); os << "-*-"; os << " " << cleanups(); os << ")"; } void ReturnNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(ReturnNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << "\n"; expr()->print (os, depth + 1); os << " " << cleanups(); os << ")"; } void ParameterNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(ParameterNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << " " << isfinal(); os << "\n"; dtype()->print (os, depth + 1); os << "\n"; simpName()->print (os, depth + 1); os << ")"; } void ThisNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(ThisNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << "\n"; theClass()->print (os, depth + 1); os << " (" << stringifyModifiers (flags()) << ')'; os << ")"; } void ThisFieldAccessNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(ThisFieldAccessNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << "\n"; theClass()->print (os, depth + 1); os << " (" << stringifyModifiers (flags()) << ')'; os << "\n"; simpName()->print (os, depth + 1); os << ")"; } void SuperFieldAccessNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(SuperFieldAccessNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << "\n"; theClass()->print (os, depth + 1); os << " (" << stringifyModifiers (flags()) << ')'; os << "\n"; simpName()->print (os, depth + 1); os << ")"; } void AllocateNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(AllocateNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << "\n"; region()->print (os, depth + 1); os << "\n"; dtype()->print (os, depth + 1); os << "\n"; args()->print (os, depth + 1); os << " "; decl()->print (os); os << ")"; } void ForEachSetupNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(ForEachSetupNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << " " << WRTloop(); os << ")"; } void UpdatePointBeforeStmtNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(UpdatePointBeforeStmtNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << "\n"; stmt()->print (os, depth + 1); os << " " << pointValues(); os << " " << rfrs(); os << " " << sirs(); os << " " << urs(); os << " " << WRTloop(); os << ")"; } void ForEachStmtNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(ForEachStmtNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << "\n"; vars()->print (os, depth + 1); os << "\n"; stmt()->print (os, depth + 1); os << " " << isinline(); os << ")"; } void ReorderNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(ReorderNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << "\n"; stmt()->print (os, depth + 1); os << " " << stmtsToDelete(); os << " " << declsToDelete(); os << " " << remap(); os << ")"; } void EmptyArrayNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(EmptyArrayNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << " (" << stringifyModifiers (flags()) << ')'; os << ")"; } void ExpressionArrayNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(ExpressionArrayNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << "\n"; expr()->print (os, depth + 1); os << " (" << stringifyModifiers (flags()) << ')'; os << ")"; } void TitaniumArrayNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(TitaniumArrayNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << "\n"; expr()->print (os, depth + 1); os << " (" << stringifyModifiers (flags()) << ')'; os << ")"; } void AllocateArrayDimensionNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(AllocateArrayDimensionNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << "\n"; expr()->print (os, depth + 1); os << " (" << stringifyModifiers (flags()) << ')'; os << ")"; } void ArrayNameNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(ArrayNameNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << "\n"; name()->print (os, depth + 1); os << " (" << stringifyModifiers (flags()) << ')'; os << "\n"; arrayspecifiers()->print (os, depth + 1); os << ")"; } void PragmaNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(PragmaNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << "\n"; stmt()->print (os, depth + 1); os << " " << requests(); os << ")"; } void SRArrayAccessNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(SRArrayAccessNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << "\n"; array()->print (os, depth + 1); os << "\n"; index()->print (os, depth + 1); os << " " << WRTloop(); os << " " << codeString(); os << " " << appearsOnEveryIter(); os << ")"; } void OSRArrayAccessNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(OSRArrayAccessNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << "\n"; array()->print (os, depth + 1); os << "\n"; index()->print (os, depth + 1); os << " " << WRTloop(); os << " " << codeString(); os << " " << offsetString(); os << " " << appearsOnEveryIter(); os << ")"; } void CodeLiteralNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(CodeLiteralNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << " " << codeString(); os << ")"; } void CodeLiteralExprNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(CodeLiteralExprNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << " " << codeString(); os << ")"; } void CodeLiteralFieldAccessNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(CodeLiteralFieldAccessNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << "\n"; opnd0()->print (os, depth + 1); os << " " << codeString(); os << ")"; } void MonitorFetchClassNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(MonitorFetchClassNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << " "; decl()->print (os); os << ")"; } void MonitorLockNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(MonitorLockNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << " " << fetcher(); os << ")"; } void MonitorUnlockNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(MonitorUnlockNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << " " << fetcher(); os << ")"; } void TemplateInstanceTypeNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(TemplateInstanceTypeNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << "\n"; dtype()->print (os, depth + 1); os << "\n"; args()->print (os, depth + 1); os << " "; decl()->print (os); os << ")"; } void TemplateDeclNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(TemplateDeclNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << "\n"; basis()->print (os, depth + 1); os << "\n"; params()->print (os, depth + 1); os << " " << environ(); os << ")"; } void TemplateInstanceDeclNode::print (ostream& os, unsigned depth) const { indent(os, depth); os << "(TemplateInstanceDeclNode"; os << '<'; if(position().file) os << *position().file; else os << "unknown"; os << ' ' << position().posn << ',' << (position().posn+1) << "> @ " << this; os << "\n"; instance()->print (os, depth + 1); os << " " << environ(); os << ")"; }