Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions include/swift/Sema/CSBindings.h
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,12 @@ class BindingSet {
void forEachLiteralRequirement(
llvm::function_ref<void(KnownProtocolKind)> callback) const;

void forEachAdjacentVariable(
llvm::function_ref<void(TypeVariableType *)> callback) const {
for (auto *typeVar : AdjacentVars)
callback(typeVar);
}

/// Return a literal requirement that has the most impact on the binding
/// score.
LiteralBindingKind getLiteralForScore() const;
Expand Down
Loading