mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Remove IfConfigDecl from the AST
The swift-syntax tree retains information about the parsed #if regions. Drop it from the semantic AST.
This commit is contained in:
@@ -208,9 +208,6 @@ ASTWalker::PreWalkAction SemaAnnotator::walkToDeclPreProper(Decl *D) {
|
||||
Loc = PrecD->getLoc();
|
||||
if (Loc.isValid())
|
||||
NameLen = PrecD->getName().getLength();
|
||||
|
||||
} else if (isa<IfConfigDecl>(D)) {
|
||||
// Nothing to do here.
|
||||
} else if (auto *MD = dyn_cast<MacroExpansionDecl>(D)) {
|
||||
if (auto *macro =
|
||||
dyn_cast_or_null<MacroDecl>(MD->getMacroRef().getDecl())) {
|
||||
|
||||
Reference in New Issue
Block a user