Changeset 10646 in webkit for trunk/JavaScriptCore/kjs/nodes2string.cpp
- Timestamp:
- Sep 28, 2005, 11:51:15 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/nodes2string.cpp
r10634 r10646 1 // -*- c-basic-offset: 2 -*-2 1 /* 3 2 * This file is part of the KDE libraries … … 665 664 } 666 665 667 void CatchNode::streamTo(SourceStream &s) const668 {669 s << SourceStream::Endl << "catch (" << ident << ")" << block;670 }671 672 void FinallyNode::streamTo(SourceStream &s) const673 {674 s << SourceStream::Endl << "finally " << block;675 }676 677 666 void TryNode::streamTo(SourceStream &s) const 678 667 { 679 s << "try " << block 680 << _catch 681 << _final; 668 s << "try " << tryBlock; 669 if (catchBlock) 670 s << SourceStream::Endl << "catch (" << exceptionIdent << ")" << catchBlock; 671 if (finallyBlock) 672 s << SourceStream::Endl << "finally " << finallyBlock; 682 673 } 683 674 … … 689 680 } 690 681 691 void FuncDeclNode::streamTo(SourceStream &s) const { 692 s << "function " << ident << "("; 693 if (param) 694 s << param; 695 s << ")" << body; 682 void FuncDeclNode::streamTo(SourceStream &s) const 683 { 684 s << "function " << ident << "(" << param << ")" << body; 696 685 } 697 686 698 687 void FuncExprNode::streamTo(SourceStream &s) const 699 688 { 700 s << "function " << "(" 701 << param 702 << ")" << body; 689 s << "function " << ident << "(" << param << ")" << body; 703 690 } 704 691 … … 708 695 s << n->element; 709 696 } 710
Note:
See TracChangeset
for help on using the changeset viewer.