mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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:
@@ -719,6 +719,11 @@ SerializedASTFile::getTopLevelDecls(SmallVectorImpl<Decl*> &results) const {
|
||||
File.getTopLevelDecls(results);
|
||||
}
|
||||
|
||||
void SerializedASTFile::getPrecedenceGroups(
|
||||
SmallVectorImpl<PrecedenceGroupDecl*> &results) const {
|
||||
File.getPrecedenceGroups(results);
|
||||
}
|
||||
|
||||
void
|
||||
SerializedASTFile::getLocalTypeDecls(SmallVectorImpl<TypeDecl*> &results) const{
|
||||
File.getLocalTypeDecls(results);
|
||||
|
||||
Reference in New Issue
Block a user