Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Indexer.h

    ra40d503 r5fe35d6  
    3939                void leaveScope();
    4040
    41                 struct IdData {
    42                         DeclarationWithType * id;
    43                         Expression * baseExpr; // WithExpr
    44 
    45                         Expression * combine() const;
    46                 };
    47 
    4841                /// Gets all declarations with the given ID
    49                 void lookupId( const std::string &id, std::list< IdData > &out ) const;
     42                void lookupId( const std::string &id, std::list< DeclarationWithType* > &out ) const;
    5043                /// Gets the top-most type declaration with the given ID
    5144                NamedTypeDecl *lookupType( const std::string &id ) const;
     
    7467                TraitDecl *lookupTraitAtScope( const std::string &id, unsigned long scope ) const;
    7568
    76                 void addId( DeclarationWithType *decl, Expression * baseExpr = nullptr );
     69                void addId( DeclarationWithType *decl );
    7770                void addType( NamedTypeDecl *decl );
    7871                void addStruct( const std::string &id );
     
    8275                void addUnion( UnionDecl *decl );
    8376                void addTrait( TraitDecl *decl );
    84 
    85                 /// adds all of the IDs from WithStmt exprs
    86                 void addWith( WithStmt * );
    8777
    8878                /// convenience function for adding a list of Ids to the indexer
     
    110100                // so that they will not be selected
    111101                // void removeSpecialOverrides( FunctionDecl *decl );
    112                 void removeSpecialOverrides( const std::string &id, std::list< IdData > & out ) const;
     102                void removeSpecialOverrides( const std::string &id, std::list< DeclarationWithType * > & out ) const;
    113103
    114104                /// Ensures that tables variable is writable (i.e. allocated, uniquely owned by this Indexer, and at the current scope)
Note: See TracChangeset for help on using the changeset viewer.