@@ -948,7 +948,6 @@ CREATES_NEW_INSERTION_POINT(ASTSourceFileScope)
948
948
CREATES_NEW_INSERTION_POINT(ConditionalClauseScope)
949
949
CREATES_NEW_INSERTION_POINT(GuardStmtScope)
950
950
CREATES_NEW_INSERTION_POINT(PatternEntryDeclScope)
951
- CREATES_NEW_INSERTION_POINT(PatternEntryInitializerScope)
952
951
CREATES_NEW_INSERTION_POINT(GenericTypeOrExtensionScope)
953
952
CREATES_NEW_INSERTION_POINT(BraceStmtScope)
954
953
CREATES_NEW_INSERTION_POINT(TopLevelCodeScope)
@@ -958,6 +957,7 @@ NO_NEW_INSERTION_POINT(AbstractFunctionDeclScope)
958
957
NO_NEW_INSERTION_POINT(AttachedPropertyWrapperScope)
959
958
NO_NEW_INSERTION_POINT(EnumElementScope)
960
959
NO_NEW_INSERTION_POINT(ParameterListScope)
960
+ NO_NEW_INSERTION_POINT(PatternEntryInitializerScope)
961
961
962
962
NO_NEW_INSERTION_POINT(CaptureListScope)
963
963
NO_NEW_INSERTION_POINT(CaseStmtScope)
@@ -1046,19 +1046,12 @@ PatternEntryDeclScope::expandAScopeThatCreatesANewInsertionPoint(
1046
1046
" code just goes in the same scope as this one" };
1047
1047
}
1048
1048
1049
- AnnotatedInsertionPoint
1050
- PatternEntryInitializerScope::expandAScopeThatCreatesANewInsertionPoint (
1049
+ void
1050
+ PatternEntryInitializerScope::expandAScopeThatDoesNotCreateANewInsertionPoint (
1051
1051
ScopeCreator &scopeCreator) {
1052
1052
// Create a child for the initializer expression.
1053
1053
scopeCreator.addToScopeTree (ASTNode (getPatternEntry ().getOriginalInit ()),
1054
1054
this );
1055
- if (handleUseBeforeDef)
1056
- return {this , " PatternEntryDeclScope::expand.* needs initializer scope to "
1057
- " get its endpoint in order to push back start of "
1058
- " PatternEntryUseScope" };
1059
-
1060
- // null pointer here blows up request printing
1061
- return {getParent ().get (), " Unused" };
1062
1055
}
1063
1056
1064
1057
AnnotatedInsertionPoint
0 commit comments