@@ -2225,9 +2225,9 @@ StringRef PatternBindingEntry::getInitStringRepresentation(
2225
2225
if (InitContextAndFlags.getInt ().contains (PatternFlags::IsText) &&
2226
2226
!InitStringRepresentation.empty ())
2227
2227
return InitStringRepresentation;
2228
- auto &sourceMgr = getAnchoringVarDecl ()->getASTContext (). SourceMgr ;
2228
+ auto &ctx = getAnchoringVarDecl ()->getASTContext ();
2229
2229
auto init = getOriginalInit ();
2230
- return extractInlinableText (sourceMgr , init, scratch);
2230
+ return extractInlinableText (ctx , init, scratch);
2231
2231
}
2232
2232
2233
2233
SourceRange PatternBindingDecl::getSourceRange () const {
@@ -9022,7 +9022,7 @@ ParamDecl::getDefaultValueStringRepresentation(
9022
9022
9023
9023
assert (hasDefaultExpr ()
9024
9024
&& " Normal default argument with no default expression?!" );
9025
- return extractInlinableText (getASTContext (). SourceMgr ,
9025
+ return extractInlinableText (getASTContext (),
9026
9026
getStructuralDefaultExpr (), scratch);
9027
9027
}
9028
9028
case DefaultArgumentKind::StoredProperty: {
@@ -9066,8 +9066,7 @@ ParamDecl::getDefaultValueStringRepresentation(
9066
9066
return " .init()" ;
9067
9067
}
9068
9068
9069
- auto &sourceMgr = getASTContext ().SourceMgr ;
9070
- return extractInlinableText (sourceMgr, wrappedValue, scratch);
9069
+ return extractInlinableText (getASTContext (), wrappedValue, scratch);
9071
9070
}
9072
9071
}
9073
9072
@@ -9087,9 +9086,7 @@ ParamDecl::getDefaultValueStringRepresentation(
9087
9086
return " <<empty>>" ;
9088
9087
}
9089
9088
9090
- return extractInlinableText (getASTContext ().SourceMgr ,
9091
- init,
9092
- scratch);
9089
+ return extractInlinableText (getASTContext (), init, scratch);
9093
9090
}
9094
9091
case DefaultArgumentKind::Inherited: return " super" ;
9095
9092
#define MAGIC_IDENTIFIER (NAME, STRING, SYNTAX_KIND ) \
@@ -10275,7 +10272,7 @@ StringRef AbstractFunctionDecl::getInlinableBodyText(
10275
10272
return BodyStringRepresentation;
10276
10273
10277
10274
auto body = getBody ();
10278
- return extractInlinableText (getASTContext (). SourceMgr , body, scratch);
10275
+ return extractInlinableText (getASTContext (), body, scratch);
10279
10276
}
10280
10277
10281
10278
// / A uniqued list of derivative function configurations.
0 commit comments