@@ -2224,9 +2224,9 @@ StringRef PatternBindingEntry::getInitStringRepresentation(
2224
2224
if (InitContextAndFlags.getInt ().contains (PatternFlags::IsText) &&
2225
2225
!InitStringRepresentation.empty ())
2226
2226
return InitStringRepresentation;
2227
- auto &sourceMgr = getAnchoringVarDecl ()->getASTContext (). SourceMgr ;
2227
+ auto &ctx = getAnchoringVarDecl ()->getASTContext ();
2228
2228
auto init = getOriginalInit ();
2229
- return extractInlinableText (sourceMgr , init, scratch);
2229
+ return extractInlinableText (ctx , init, scratch);
2230
2230
}
2231
2231
2232
2232
SourceRange PatternBindingDecl::getSourceRange () const {
@@ -9039,7 +9039,7 @@ ParamDecl::getDefaultValueStringRepresentation(
9039
9039
9040
9040
assert (hasDefaultExpr ()
9041
9041
&& " Normal default argument with no default expression?!" );
9042
- return extractInlinableText (getASTContext (). SourceMgr ,
9042
+ return extractInlinableText (getASTContext (),
9043
9043
getStructuralDefaultExpr (), scratch);
9044
9044
}
9045
9045
case DefaultArgumentKind::StoredProperty: {
@@ -9083,8 +9083,7 @@ ParamDecl::getDefaultValueStringRepresentation(
9083
9083
return " .init()" ;
9084
9084
}
9085
9085
9086
- auto &sourceMgr = getASTContext ().SourceMgr ;
9087
- return extractInlinableText (sourceMgr, wrappedValue, scratch);
9086
+ return extractInlinableText (getASTContext (), wrappedValue, scratch);
9088
9087
}
9089
9088
}
9090
9089
@@ -9104,9 +9103,7 @@ ParamDecl::getDefaultValueStringRepresentation(
9104
9103
return " <<empty>>" ;
9105
9104
}
9106
9105
9107
- return extractInlinableText (getASTContext ().SourceMgr ,
9108
- init,
9109
- scratch);
9106
+ return extractInlinableText (getASTContext (), init, scratch);
9110
9107
}
9111
9108
case DefaultArgumentKind::Inherited: return " super" ;
9112
9109
#define MAGIC_IDENTIFIER (NAME, STRING, SYNTAX_KIND ) \
@@ -10292,7 +10289,7 @@ StringRef AbstractFunctionDecl::getInlinableBodyText(
10292
10289
return BodyStringRepresentation;
10293
10290
10294
10291
auto body = getBody ();
10295
- return extractInlinableText (getASTContext (). SourceMgr , body, scratch);
10292
+ return extractInlinableText (getASTContext (), body, scratch);
10296
10293
}
10297
10294
10298
10295
// / A uniqued list of derivative function configurations.
0 commit comments