Changes in src/Parser/ParseNode.h [046e04a:ce8c12f]
- File:
-
- 1 edited
-
src/Parser/ParseNode.h (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ParseNode.h
r046e04a rce8c12f 9 9 // Author : Rodolfo G. Esteves 10 10 // Created On : Sat May 16 13:28:16 2015 11 // Last Modified By : Andrew Beach12 // Last Modified On : Mon Jun 12 13:00:00201713 // Update Count : 77 911 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Mar 17 15:42:18 2017 13 // Update Count : 777 14 14 // 15 15 … … 61 61 } 62 62 63 virtual void print( __attribute__((unused)) std::ostream &os, __attribute__((unused))int indent = 0 ) const {}64 virtual void printList( __attribute__((unused)) std::ostream &os, __attribute__((unused))int indent = 0 ) const {}63 virtual void print( std::ostream &os, int indent = 0 ) const {} 64 virtual void printList( std::ostream &os, int indent = 0 ) const {} 65 65 66 66 static int indent_by; … … 113 113 ExpressionNode * set_extension( bool exten ) { extension = exten; return this; } 114 114 115 virtual void print( __attribute__((unused)) std::ostream &os, __attribute__((unused))int indent = 0 ) const override {}116 void printOneLine( __attribute__((unused)) std::ostream &os, __attribute__((unused))int indent = 0 ) const {}115 virtual void print( std::ostream &os, int indent = 0 ) const override {} 116 void printOneLine( std::ostream &os, int indent = 0 ) const {} 117 117 118 118 template<typename T> … … 166 166 Expression * build_field_name_REALDECIMALconstant( const std::string & str ); 167 167 168 NameExpr * build_varref( const std::string * name );168 NameExpr * build_varref( const std::string * name, bool labelp = false ); 169 169 Expression * build_typevalue( DeclarationNode * decl ); 170 170 … … 237 237 static DeclarationNode * newTraitUse( const std::string * name, ExpressionNode * params ); 238 238 static DeclarationNode * newTypeDecl( std::string * name, DeclarationNode * typeParams ); 239 static DeclarationNode * newPointer( DeclarationNode * qualifiers );239 static DeclarationNode * newPointer( DeclarationNode * qualifiers, OperKinds kind ); 240 240 static DeclarationNode * newArray( ExpressionNode * size, DeclarationNode * qualifiers, bool isStatic ); 241 241 static DeclarationNode * newVarArray( DeclarationNode * qualifiers ); … … 274 274 DeclarationNode * addIdList( DeclarationNode * list ); // old-style functions 275 275 DeclarationNode * addInitializer( InitializerNode * init ); 276 DeclarationNode * addTypeInitializer( DeclarationNode * init );277 276 278 277 DeclarationNode * cloneType( std::string * newName ); … … 283 282 } 284 283 285 virtual void print( __attribute__((unused)) std::ostream &os, __attribute__((unused))int indent = 0 ) const override;286 virtual void printList( __attribute__((unused)) std::ostream &os, __attribute__((unused))int indent = 0 ) const override;284 virtual void print( std::ostream &os, int indent = 0 ) const override; 285 virtual void printList( std::ostream &os, int indent = 0 ) const override; 287 286 288 287 Declaration * build() const; … … 302 301 DeclarationNode::TypeClass tyClass; 303 302 DeclarationNode * assertions; 304 DeclarationNode * initializer;305 303 }; 306 304 Variable_t variable; … … 363 361 virtual StatementNode * append_last_case( StatementNode * ); 364 362 365 virtual void print( __attribute__((unused)) std::ostream &os, __attribute__((unused))int indent = 0 ) const override {}366 virtual void printList( __attribute__((unused)) std::ostream &os, __attribute__((unused))int indent = 0 ) const override {}363 virtual void print( std::ostream &os, int indent = 0 ) const override {} 364 virtual void printList( std::ostream &os, int indent = 0 ) const override {} 367 365 private: 368 366 std::unique_ptr<Statement> stmt; … … 393 391 Statement * build_return( ExpressionNode * ctl ); 394 392 Statement * build_throw( ExpressionNode * ctl ); 395 Statement * build_resume( ExpressionNode * ctl );396 Statement * build_resume_at( ExpressionNode * ctl , ExpressionNode * target );397 393 Statement * build_try( StatementNode * try_stmt, StatementNode * catch_stmt, StatementNode * finally_stmt ); 398 Statement * build_catch( CatchStmt::Kind kind, DeclarationNode *decl, ExpressionNode *cond, StatementNode *body);394 Statement * build_catch( DeclarationNode * decl, StatementNode * stmt, bool catchAny = false ); 399 395 Statement * build_finally( StatementNode * stmt ); 400 396 Statement * build_compound( StatementNode * first ); … … 415 411 result->location = cur->location; 416 412 * out++ = result; 417 } else {418 assertf(false, "buildList unknown type");419 413 } // if 420 414 } catch( SemanticError &e ) {
Note:
See TracChangeset
for help on using the changeset viewer.