@@ -948,7 +948,6 @@ CREATES_NEW_INSERTION_POINT(ASTSourceFileScope)
948948CREATES_NEW_INSERTION_POINT(ConditionalClauseScope)
949949CREATES_NEW_INSERTION_POINT(GuardStmtScope)
950950CREATES_NEW_INSERTION_POINT(PatternEntryDeclScope)
951- CREATES_NEW_INSERTION_POINT(PatternEntryInitializerScope)
952951CREATES_NEW_INSERTION_POINT(GenericTypeOrExtensionScope)
953952CREATES_NEW_INSERTION_POINT(BraceStmtScope)
954953CREATES_NEW_INSERTION_POINT(TopLevelCodeScope)
@@ -958,6 +957,7 @@ NO_NEW_INSERTION_POINT(AbstractFunctionDeclScope)
958957NO_NEW_INSERTION_POINT(AttachedPropertyWrapperScope)
959958NO_NEW_INSERTION_POINT(EnumElementScope)
960959NO_NEW_INSERTION_POINT(ParameterListScope)
960+ NO_NEW_INSERTION_POINT(PatternEntryInitializerScope)
961961
962962NO_NEW_INSERTION_POINT(CaptureListScope)
963963NO_NEW_INSERTION_POINT(CaseStmtScope)
@@ -1046,19 +1046,12 @@ PatternEntryDeclScope::expandAScopeThatCreatesANewInsertionPoint(
10461046 " code just goes in the same scope as this one" };
10471047}
10481048
1049- AnnotatedInsertionPoint
1050- PatternEntryInitializerScope::expandAScopeThatCreatesANewInsertionPoint (
1049+ void
1050+ PatternEntryInitializerScope::expandAScopeThatDoesNotCreateANewInsertionPoint (
10511051 ScopeCreator &scopeCreator) {
10521052 // Create a child for the initializer expression.
10531053 scopeCreator.addToScopeTree (ASTNode (getPatternEntry ().getOriginalInit ()),
10541054 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" };
10621055}
10631056
10641057AnnotatedInsertionPoint
0 commit comments