We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8db085 commit 65e32d7Copy full SHA for 65e32d7
include/swift/Sema/CSBindings.h
@@ -558,6 +558,18 @@ class BindingSet {
558
/// Check whether the given binding set covers any of the
559
/// literal protocols associated with this type variable.
560
void determineLiteralCoverage();
561
+
562
+ StringRef getLiteralBindingKind(LiteralBindingKind K) const {
563
+ #define ENTRY(Kind, String) case LiteralBindingKind::Kind: return String
564
+ switch (K) {
565
+ ENTRY(None, "none");
566
+ ENTRY(Collection, "collection");
567
+ ENTRY(Float, "float");
568
+ ENTRY(Atom, "atom");
569
+ }
570
+ #undef ENTRY
571
572
573
};
574
575
} // end namespace inference
0 commit comments