Changeset a40d503 for src/SymTab/Indexer.h
- Timestamp:
- Dec 1, 2017, 5:12:03 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- e4bc986
- Parents:
- 3ca540f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Indexer.h
r3ca540f ra40d503 39 39 void leaveScope(); 40 40 41 struct IdData { 42 DeclarationWithType * id; 43 Expression * baseExpr; // WithExpr 44 45 Expression * combine() const; 46 }; 47 41 48 /// Gets all declarations with the given ID 42 void lookupId( const std::string &id, std::list< DeclarationWithType*> &out ) const;49 void lookupId( const std::string &id, std::list< IdData > &out ) const; 43 50 /// Gets the top-most type declaration with the given ID 44 51 NamedTypeDecl *lookupType( const std::string &id ) const; … … 67 74 TraitDecl *lookupTraitAtScope( const std::string &id, unsigned long scope ) const; 68 75 69 void addId( DeclarationWithType *decl );76 void addId( DeclarationWithType *decl, Expression * baseExpr = nullptr ); 70 77 void addType( NamedTypeDecl *decl ); 71 78 void addStruct( const std::string &id ); … … 103 110 // so that they will not be selected 104 111 // void removeSpecialOverrides( FunctionDecl *decl ); 105 void removeSpecialOverrides( const std::string &id, std::list< DeclarationWithType *> & out ) const;112 void removeSpecialOverrides( const std::string &id, std::list< IdData > & out ) const; 106 113 107 114 /// 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.