Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Indexer.cc

    re67991f r6f096d2  
    210210        bool Indexer::addedIdConflicts(
    211211                        const Indexer::IdData & existing, const DeclarationWithType * added,
    212                         Indexer::OnConflict handleConflicts, const Declaration * deleteStmt ) {
     212                        Indexer::OnConflict handleConflicts, const BaseSyntaxNode * deleteStmt ) {
    213213                // if we're giving the same name mangling to things of different types then there is
    214214                // something wrong
     
    432432
    433433        void Indexer::addId(const DeclarationWithType * decl, OnConflict handleConflicts, const Expression * baseExpr,
    434                         const Declaration * deleteStmt ) {
     434                        const BaseSyntaxNode * deleteStmt ) {
    435435                ++* stats().add_calls;
    436436                const std::string &name = decl->name;
     
    510510        }
    511511
    512         void Indexer::addDeletedId( const DeclarationWithType * decl, const Declaration * deleteStmt ) {
     512        void Indexer::addDeletedId( const DeclarationWithType * decl, const BaseSyntaxNode * deleteStmt ) {
    513513                // default handling of conflicts is to raise an error
    514514                addId( decl, OnConflict::error(), nullptr, deleteStmt );
     
    661661        }
    662662
    663         void Indexer::addWith( const std::list< Expression * > & withExprs, const Declaration * withStmt ) {
     663        void Indexer::addWith( const std::list< Expression * > & withExprs, const BaseSyntaxNode * withStmt ) {
    664664                for ( const Expression * expr : withExprs ) {
    665665                        if ( expr->result ) {
     
    704704                        ret = new VariableExpr( const_cast<DeclarationWithType *>(id) );
    705705                }
    706                 if ( deleteStmt ) ret = new DeletedExpr( ret, const_cast<Declaration *>(deleteStmt) );
     706                if ( deleteStmt ) ret = new DeletedExpr( ret, const_cast<BaseSyntaxNode *>(deleteStmt) );
    707707                return ret;
    708708        }
Note: See TracChangeset for help on using the changeset viewer.