Skip to content

Commit 022e2d3

Browse files
committed
Update ASTDumper for static subscripts
1 parent 972eda2 commit 022e2d3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/AST/ASTDumper.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -797,8 +797,6 @@ namespace {
797797

798798
void visitVarDecl(VarDecl *VD) {
799799
printCommon(VD, "var_decl");
800-
if (VD->isStatic())
801-
PrintWithColorRAII(OS, DeclModifierColor) << " type";
802800
if (VD->isLet())
803801
PrintWithColorRAII(OS, DeclModifierColor) << " let";
804802
if (VD->hasNonPatternBindingInit())
@@ -811,6 +809,9 @@ namespace {
811809
}
812810

813811
void printStorageImpl(AbstractStorageDecl *D) {
812+
if (D->isStatic())
813+
PrintWithColorRAII(OS, DeclModifierColor) << " type";
814+
814815
auto impl = D->getImplInfo();
815816
PrintWithColorRAII(OS, DeclModifierColor)
816817
<< " readImpl="

0 commit comments

Comments
 (0)