Changeset 3192 in webkit for trunk/JavaScriptCore/kjs/nodes2string.cpp
- Timestamp:
- Dec 28, 2002, 3:07:37 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/nodes2string.cpp
r3098 r3192 120 120 void ResolveNode::streamTo(SourceStream &s) const { s << ident; } 121 121 122 void ElisionNode::streamTo(SourceStream &s) const 123 { 124 if (elision) 125 s << elision << ","; 126 else 122 void ElementNode::streamTo(SourceStream &s) const 123 { 124 for (int i = 0; i < elision; i++) 127 125 s << ","; 128 } 129 130 void ElementNode::streamTo(SourceStream &s) const 131 { 126 s << node; 132 127 if (list) 133 s << list << ","; 134 s << elision << node; 128 s << "," << list; 135 129 } 136 130 137 131 void ArrayNode::streamTo(SourceStream &s) const 138 132 { 139 s << "[" << element << elision << "]"; 133 s << "[" << element; 134 for (int i = 0; i < elision; i++) 135 s << ","; 136 s << "]"; 140 137 } 141 138 … … 150 147 void PropertyValueNode::streamTo(SourceStream &s) const 151 148 { 149 s << name << ": " << assign; 152 150 if (list) 153 s << list << ", "; 154 s << name << ": " << assign; 151 s << ", " << list; 155 152 } 156 153 … … 175 172 void ArgumentListNode::streamTo(SourceStream &s) const 176 173 { 174 s << expr; 177 175 if (list) 178 s << list << ", "; 179 s << expr; 176 s << ", " << list; 180 177 } 181 178 … … 407 404 void VarDeclListNode::streamTo(SourceStream &s) const 408 405 { 406 s << var; 409 407 if (list) 410 s << list << ", "; 411 s << var; 408 s << ", " << list; 412 409 } 413 410 … … 585 582 } 586 583 587 void FunctionBodyNode::streamTo(SourceStream &s) const {588 s << SourceStream::Endl << "{" << SourceStream::Indent589 << source << SourceStream::Unindent << SourceStream::Endl << "}";590 }591 592 584 void FuncDeclNode::streamTo(SourceStream &s) const { 593 585 s << "function " << ident << "(";
Note:
See TracChangeset
for help on using the changeset viewer.