Changes in src/SymTab/Indexer.cc [e67991f:6f096d2]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Indexer.cc
re67991f r6f096d2 210 210 bool Indexer::addedIdConflicts( 211 211 const Indexer::IdData & existing, const DeclarationWithType * added, 212 Indexer::OnConflict handleConflicts, const Declaration* deleteStmt ) {212 Indexer::OnConflict handleConflicts, const BaseSyntaxNode * deleteStmt ) { 213 213 // if we're giving the same name mangling to things of different types then there is 214 214 // something wrong … … 432 432 433 433 void Indexer::addId(const DeclarationWithType * decl, OnConflict handleConflicts, const Expression * baseExpr, 434 const Declaration* deleteStmt ) {434 const BaseSyntaxNode * deleteStmt ) { 435 435 ++* stats().add_calls; 436 436 const std::string &name = decl->name; … … 510 510 } 511 511 512 void Indexer::addDeletedId( const DeclarationWithType * decl, const Declaration* deleteStmt ) {512 void Indexer::addDeletedId( const DeclarationWithType * decl, const BaseSyntaxNode * deleteStmt ) { 513 513 // default handling of conflicts is to raise an error 514 514 addId( decl, OnConflict::error(), nullptr, deleteStmt ); … … 661 661 } 662 662 663 void Indexer::addWith( const std::list< Expression * > & withExprs, const Declaration* withStmt ) {663 void Indexer::addWith( const std::list< Expression * > & withExprs, const BaseSyntaxNode * withStmt ) { 664 664 for ( const Expression * expr : withExprs ) { 665 665 if ( expr->result ) { … … 704 704 ret = new VariableExpr( const_cast<DeclarationWithType *>(id) ); 705 705 } 706 if ( deleteStmt ) ret = new DeletedExpr( ret, const_cast< Declaration*>(deleteStmt) );706 if ( deleteStmt ) ret = new DeletedExpr( ret, const_cast<BaseSyntaxNode *>(deleteStmt) ); 707 707 return ret; 708 708 }
Note: See TracChangeset
for help on using the changeset viewer.