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 d541190 commit afaf393Copy full SHA for afaf393
include/swift/AST/Types.h
@@ -5348,6 +5348,18 @@ class SILFunctionType final
5348
return getParameters().back();
5349
}
5350
5351
+ /// Return SILParameterInfo for the isolated parameter in this SILFunctionType
5352
+ /// if one exists. Returns None otherwise.
5353
+ std::optional<SILParameterInfo> maybeGetIsolatedParameter() const {
5354
+ for (auto param : getParameters()) {
5355
+ if (param.hasOption(SILParameterInfo::Isolated)) {
5356
+ return param;
5357
+ }
5358
5359
+
5360
+ return {};
5361
5362
5363
struct IndirectMutatingParameterFilter {
5364
bool operator()(SILParameterInfo param) const {
5365
return param.isIndirectMutating();
0 commit comments