File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
lib/AST/RequirementMachine Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -530,6 +530,19 @@ void swift::rewriting::realizeInheritedRequirements(
530
530
}
531
531
}
532
532
533
+ // / Emit diagnostics for the given \c RequirementErrors.
534
+ // /
535
+ // / \param ctx The AST context, which is used to determine whether
536
+ // / requirement machine protocol signatures are enabled. If not,
537
+ // / diagnostics will not be emitted.
538
+ // / \param errors The set of requirement diagnostics to be emitted.
539
+ // / \param allowConcreteGenericParams Whether concrete type parameters
540
+ // / are permitted in the generic signature. If true, diagnostics will
541
+ // / offer fix-its to turn invalid type requirements, e.g. T: Int, into
542
+ // / same-type requirements.
543
+ // /
544
+ // / \returns true if any errors were emitted, and false otherwise (including
545
+ // / when only warnings were emitted).
533
546
bool swift::rewriting::diagnoseRequirementErrors (
534
547
ASTContext &ctx, SmallVectorImpl<RequirementError> &errors,
535
548
bool allowConcreteGenericParams) {
You can’t perform that action at this time.
0 commit comments