File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -277,13 +277,6 @@ class ASTScopeImpl {
277
277
278
278
279
279
#pragma mark - - creation queries
280
- protected:
281
- // / In other words, does this scope introduce a new definition
282
- bool doISplitAScope () const {
283
- // Before an abstract storage decl, the decl is inaccessible.
284
- // After an abstract storage decl, it is now accessible.
285
- return isThisAnAbstractStorageDecl ();
286
- }
287
280
public:
288
281
virtual bool isThisAnAbstractStorageDecl () const { return false ; }
289
282
Original file line number Diff line number Diff line change @@ -462,8 +462,8 @@ class ASTVisitorForScopeCreation
462
462
463
463
ASTScopeImpl *visitBraceStmt (BraceStmt *bs, ASTScopeImpl *p,
464
464
ScopeCreator &scopeCreator) {
465
- auto *insertionPoint = scopeCreator.createSubtree <BraceStmtScope>(p, bs);
466
- return p-> doISplitAScope () ? insertionPoint : p ;
465
+ scopeCreator.createSubtree <BraceStmtScope>(p, bs);
466
+ return p;
467
467
}
468
468
469
469
ASTScopeImpl *visitPatternBindingDecl (PatternBindingDecl *patternBinding,
You can’t perform that action at this time.
0 commit comments