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 971537c commit e060363Copy full SHA for e060363
lib/AST/Decl.cpp
@@ -1576,7 +1576,7 @@ SourceRange PatternBindingEntry::getSourceRange(bool omitAccessors) const {
1576
bool PatternBindingEntry::hasInitStringRepresentation() const {
1577
if (InitContextAndFlags.getInt().contains(PatternFlags::IsText))
1578
return !InitStringRepresentation.empty();
1579
- return getInit() && getInit()->getSourceRange().isValid();
+ return getOriginalInit() && getOriginalInit()->getSourceRange().isValid();
1580
}
1581
1582
StringRef PatternBindingEntry::getInitStringRepresentation(
0 commit comments