File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
lib/AST/RequirementMachine Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,11 @@ void ProtocolGraph::visitRequirements(ArrayRef<Requirement> reqs) {
28
28
}
29
29
}
30
30
31
+ // / Return true if we know about this protocol.
32
+ bool ProtocolGraph::isKnownProtocol (const ProtocolDecl *proto) const {
33
+ return Info.count (proto) > 0 ;
34
+ }
35
+
31
36
// / Look up information about a known protocol.
32
37
const ProtocolInfo &ProtocolGraph::getProtocolInfo (
33
38
const ProtocolDecl *proto) const {
Original file line number Diff line number Diff line change @@ -83,6 +83,8 @@ struct ProtocolGraph {
83
83
84
84
void visitRequirements (ArrayRef<Requirement> reqs);
85
85
86
+ bool isKnownProtocol (const ProtocolDecl *proto) const ;
87
+
86
88
const ProtocolInfo &getProtocolInfo (
87
89
const ProtocolDecl *proto) const ;
88
90
You can’t perform that action at this time.
0 commit comments