mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add getOperatorDecls to FileUnit and ModuleDecl
Query the SourceLookupCache for the operator decls, and use ModuleDecl::getOperatorDecls for both frontend stats and to clean up some code completion logic. In addition, this commit switches getPrecedenceGroups over to querying SourceLookupCache.
This commit is contained in:
@@ -620,6 +620,12 @@ public:
|
||||
/// The order of the results is not guaranteed to be meaningful.
|
||||
void getLocalTypeDecls(SmallVectorImpl<TypeDecl*> &Results) const;
|
||||
|
||||
/// Finds all operator decls of this module.
|
||||
///
|
||||
/// This does a simple local lookup, not recursively looking through imports.
|
||||
/// The order of the results is not guaranteed to be meaningful.
|
||||
void getOperatorDecls(SmallVectorImpl<OperatorDecl *> &results) const;
|
||||
|
||||
/// Finds all precedence group decls of this module.
|
||||
///
|
||||
/// This does a simple local lookup, not recursively looking through imports.
|
||||
|
||||
Reference in New Issue
Block a user