Changes in src/SymTab/Indexer.h [a40d503:5fe35d6]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Indexer.h
ra40d503 r5fe35d6 39 39 void leaveScope(); 40 40 41 struct IdData {42 DeclarationWithType * id;43 Expression * baseExpr; // WithExpr44 45 Expression * combine() const;46 };47 48 41 /// 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; 50 43 /// Gets the top-most type declaration with the given ID 51 44 NamedTypeDecl *lookupType( const std::string &id ) const; … … 74 67 TraitDecl *lookupTraitAtScope( const std::string &id, unsigned long scope ) const; 75 68 76 void addId( DeclarationWithType *decl , Expression * baseExpr = nullptr);69 void addId( DeclarationWithType *decl ); 77 70 void addType( NamedTypeDecl *decl ); 78 71 void addStruct( const std::string &id ); … … 82 75 void addUnion( UnionDecl *decl ); 83 76 void addTrait( TraitDecl *decl ); 84 85 /// adds all of the IDs from WithStmt exprs86 void addWith( WithStmt * );87 77 88 78 /// convenience function for adding a list of Ids to the indexer … … 110 100 // so that they will not be selected 111 101 // 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; 113 103 114 104 /// 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.