@@ -945,7 +945,6 @@ ASTScopeImpl *ASTScopeImpl::expandAndBeCurrent(ScopeCreator &scopeCreator) {
945
945
ASTScopeImpl *Scope::expandSpecifically (ScopeCreator &) { return this ; }
946
946
947
947
CREATES_NEW_INSERTION_POINT (ASTSourceFileScope)
948
- CREATES_NEW_INSERTION_POINT(ParameterListScope)
949
948
CREATES_NEW_INSERTION_POINT(ConditionalClauseScope)
950
949
CREATES_NEW_INSERTION_POINT(GuardStmtScope)
951
950
CREATES_NEW_INSERTION_POINT(PatternEntryDeclScope)
@@ -958,6 +957,7 @@ NO_NEW_INSERTION_POINT(FunctionBodyScope)
958
957
NO_NEW_INSERTION_POINT(AbstractFunctionDeclScope)
959
958
NO_NEW_INSERTION_POINT(AttachedPropertyWrapperScope)
960
959
NO_NEW_INSERTION_POINT(EnumElementScope)
960
+ NO_NEW_INSERTION_POINT(ParameterListScope)
961
961
962
962
NO_NEW_INSERTION_POINT(CaptureListScope)
963
963
NO_NEW_INSERTION_POINT(CaseStmtScope)
@@ -1000,8 +1000,8 @@ ASTSourceFileScope::expandAScopeThatCreatesANewInsertionPoint(
1000
1000
return {insertionPoint, " Next time decls are added they go here." };
1001
1001
}
1002
1002
1003
- AnnotatedInsertionPoint
1004
- ParameterListScope::expandAScopeThatCreatesANewInsertionPoint (
1003
+ void
1004
+ ParameterListScope::expandAScopeThatDoesNotCreateANewInsertionPoint (
1005
1005
ScopeCreator &scopeCreator) {
1006
1006
// Each initializer for a function parameter is its own, sibling, scope.
1007
1007
// Unlike generic parameters or pattern initializers, it cannot refer to a
@@ -1012,7 +1012,6 @@ ParameterListScope::expandAScopeThatCreatesANewInsertionPoint(
1012
1012
.constructExpandAndInsertUncheckable <DefaultArgumentInitializerScope>(
1013
1013
this , pd);
1014
1014
}
1015
- return {this , " body of func goes under me" };
1016
1015
}
1017
1016
1018
1017
AnnotatedInsertionPoint
0 commit comments