Changes in src/Parser/DeclarationNode.cc [2a8427c6:d55d7a6]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.cc
r2a8427c6 rd55d7a6 10 10 // Created On : Sat May 16 12:34:05 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 22 15:37:17 201813 // Update Count : 103 312 // Last Modified On : Mon Nov 20 09:21:52 2017 13 // Update Count : 1031 14 14 // 15 15 … … 120 120 } // DeclarationNode::clone 121 121 122 bool DeclarationNode::get_hasEllipsis() const { 123 return hasEllipsis; 124 } 125 122 126 void DeclarationNode::print( std::ostream &os, int indent ) const { 123 127 os << string( indent, ' ' ); … … 163 167 } 164 168 165 DeclarationNode * DeclarationNode::newFunction( string * name, DeclarationNode * ret, DeclarationNode * param, StatementNode * body ) {169 DeclarationNode * DeclarationNode::newFunction( string * name, DeclarationNode * ret, DeclarationNode * param, StatementNode * body, bool newStyle ) { 166 170 DeclarationNode * newnode = new DeclarationNode; 167 171 newnode->name = name; 168 172 newnode->type = new TypeData( TypeData::Function ); 169 173 newnode->type->function.params = param; 174 newnode->type->function.newStyle = newStyle; 170 175 newnode->type->function.body = body; 171 176
Note:
See TracChangeset
for help on using the changeset viewer.