Changeset 11802 in webkit for trunk/JavaScriptCore/kjs/nodes2string.cpp
- Timestamp:
- Dec 29, 2005, 3:16:11 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/nodes2string.cpp
r11566 r11802 133 133 void ElementNode::streamTo(SourceStream &s) const 134 134 { 135 for (const ElementNode *n = this; n; n = n-> list.get()) {135 for (const ElementNode *n = this; n; n = n->next.get()) { 136 136 for (int i = 0; i < n->elision; i++) 137 137 s << ","; … … 160 160 s << node; 161 161 162 for (const PropertyListNode *n = list.get(); n; n = n->list.get())162 for (const PropertyListNode *n = next.get(); n; n = n->next.get()) 163 163 s << ", " << n->node; 164 164 } … … 205 205 { 206 206 s << expr; 207 for (ArgumentListNode *n = list.get(); n; n = n->list.get())207 for (ArgumentListNode *n = next.get(); n; n = n->next.get()) 208 208 s << ", " << n->expr; 209 209 } … … 526 526 void StatListNode::streamTo(SourceStream &s) const 527 527 { 528 for (const StatListNode *n = this; n; n = n-> list.get())528 for (const StatListNode *n = this; n; n = n->next.get()) 529 529 s << n->statement; 530 530 } … … 543 543 { 544 544 s << var; 545 for (VarDeclListNode *n = list.get(); n; n = n->list.get())545 for (VarDeclListNode *n = next.get(); n; n = n->next.get()) 546 546 s << ", " << n->var; 547 547 } … … 549 549 void VarStatementNode::streamTo(SourceStream &s) const 550 550 { 551 s << SourceStream::Endl << "var " << list << ";";551 s << SourceStream::Endl << "var " << next << ";"; 552 552 } 553 553 … … 651 651 s << "default"; 652 652 s << ":" << SourceStream::Indent; 653 if ( list)654 s << list;653 if (next) 654 s << next; 655 655 s << SourceStream::Unindent; 656 656 } … … 658 658 void ClauseListNode::streamTo(SourceStream &s) const 659 659 { 660 for (const ClauseListNode *n = this; n; n = n-> next())661 s << n-> clause();660 for (const ClauseListNode *n = this; n; n = n->getNext()) 661 s << n->getClause(); 662 662 } 663 663 664 664 void CaseBlockNode::streamTo(SourceStream &s) const 665 665 { 666 for (const ClauseListNode *n = list1.get(); n; n = n-> next())667 s << n-> clause();666 for (const ClauseListNode *n = list1.get(); n; n = n->getNext()) 667 s << n->getClause(); 668 668 if (def) 669 669 s << def; 670 for (const ClauseListNode *n = list2.get(); n; n = n-> next())671 s << n-> clause();670 for (const ClauseListNode *n = list2.get(); n; n = n->getNext()) 671 s << n->getClause(); 672 672 } 673 673 … … 718 718 void SourceElementsNode::streamTo(SourceStream &s) const 719 719 { 720 for (const SourceElementsNode *n = this; n; n = n-> elements.get())721 s << n-> element;722 } 720 for (const SourceElementsNode *n = this; n; n = n->next.get()) 721 s << n->node; 722 }
Note:
See TracChangeset
for help on using the changeset viewer.