mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Parse][CodeCompletion] Completions for precedencegroup decls
Added the 'Module::getPrecedenceGroups' API to separate precedence group lookup from 'Module::lookupVisibleDecls', which together with 'FileUnit::lookupVisibleDecls', to which the former is forwarded, are expected to look up only 'ValueDecl'. In particular, this prevents completions like Module.PrecedenceGroup.
This commit is contained in:
@@ -738,6 +738,9 @@ public:
|
||||
/// Adds all top-level decls to the given vector.
|
||||
void getTopLevelDecls(SmallVectorImpl<Decl*> &Results);
|
||||
|
||||
/// Adds all precedence groups to the given vector.
|
||||
void getPrecedenceGroups(SmallVectorImpl<PrecedenceGroupDecl*> &Results);
|
||||
|
||||
/// Adds all local type decls to the given vector.
|
||||
void getLocalTypeDecls(SmallVectorImpl<TypeDecl*> &Results);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user