Hide the TypeExpr in ClosureExpr

This commit is contained in:
Robert Widmann
2020-04-29 13:40:39 -07:00
parent f9a506d799
commit 1319b53528
8 changed files with 17 additions and 28 deletions

View File

@@ -663,7 +663,7 @@ std::pair<bool, Expr *> ModelASTWalker::walkToExprPre(Expr *E) {
SN.BodyRange = innerCharSourceRangeFromSourceRange(SM, E->getSourceRange());
if (Closure->hasExplicitResultType())
SN.TypeRange = charSourceRangeFromSourceRange(SM,
Closure->getExplicitResultTypeExpr()->getSourceRange());
Closure->getExplicitResultTypeRepr()->getSourceRange());
pushStructureNode(SN, Closure);