mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add direct operator lookup requests
Introduce DirectOperatorLookupRequest & DirectPrecedenceGroupLookupRequest that lookup operator and precedence groups within a given file or module without looking through imports. These will eventually be used as the basis for the new operator lookup implementation, but for now just use them when querying lookup results from serialized module files.
This commit is contained in:
@@ -328,12 +328,16 @@ public:
|
||||
lookupNestedType(Identifier name,
|
||||
const NominalTypeDecl *parent) const override;
|
||||
|
||||
virtual OperatorDecl *lookupOperator(Identifier name,
|
||||
OperatorFixity fixity) const override;
|
||||
protected:
|
||||
virtual void
|
||||
lookupOperatorDirect(Identifier name, OperatorFixity fixity,
|
||||
TinyPtrVector<OperatorDecl *> &results) const override;
|
||||
|
||||
virtual PrecedenceGroupDecl *
|
||||
lookupPrecedenceGroup(Identifier name) const override;
|
||||
virtual void lookupPrecedenceGroupDirect(
|
||||
Identifier name,
|
||||
TinyPtrVector<PrecedenceGroupDecl *> &results) const override;
|
||||
|
||||
public:
|
||||
virtual void lookupVisibleDecls(ModuleDecl::AccessPathTy accessPath,
|
||||
VisibleDeclConsumer &consumer,
|
||||
NLKind lookupKind) const override;
|
||||
|
||||
Reference in New Issue
Block a user