Changeset 27308 in webkit for trunk/JavaScriptCore/kjs/nodes2string.cpp
- Timestamp:
- Oct 31, 2007, 3:54:37 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/nodes2string.cpp
r27255 r27308 729 729 } 730 730 731 static inline void statementListStreamTo(Vector<RefPtr<StatementNode> >* nodes, SourceStream& s) 732 { 733 if (!nodes) 734 return; 735 736 for (Vector<RefPtr<StatementNode> >::iterator ptr = nodes->begin(); ptr != nodes->end(); ptr++) 737 s << *ptr; 738 } 739 731 740 void BlockNode::streamTo(SourceStream& s) const 732 741 { 733 s << Endl << "{" << Indent << source << Unindent << Endl << "}"; 742 s << Endl << "{" << Indent; 743 statementListStreamTo(m_children.get(), s); 744 s << Unindent << Endl << "}"; 734 745 } 735 746 … … 818 829 else 819 830 s << "default"; 820 s << ":" << Indent << source << Unindent; 831 s << ":" << Indent; 832 statementListStreamTo(m_children.get(), s); 833 s << Unindent; 821 834 } 822 835 … … 879 892 } 880 893 881 void SourceElementsNode::streamTo(SourceStream& s) const 882 { 883 for (const SourceElementsNode* n = this; n; n = n->next.get()) 884 s << n->node; 885 } 886 887 } 894 }
Note:
See TracChangeset
for help on using the changeset viewer.