Skip to content

Commit 52f0b0d

Browse files
committed
Swift: Fix extraction of roots in 'KeyPathExpr'.
1 parent 21527f6 commit 52f0b0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/extractor/visitors/ExprVisitor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ class ExprVisitor : public AstVisitorBase<ExprVisitor> {
468468
auto pathLabel = dispatcher_.fetchLabel(path);
469469
dispatcher_.emit(KeyPathExprParsedPathsTrap{label, pathLabel});
470470
}
471-
if (auto root = expr->getParsedPath()) {
471+
if (auto root = expr->getParsedRoot()) {
472472
auto rootLabel = dispatcher_.fetchLabel(root);
473473
dispatcher_.emit(KeyPathExprParsedRootsTrap{label, rootLabel});
474474
}

0 commit comments

Comments
 (0)