SE-0022: Implement parsing, AST, and semantic analysis for #selector.

This commit is contained in:
Doug Gregor
2016-01-26 13:35:21 -08:00
parent b2290992fa
commit dccf3155f1
20 changed files with 421 additions and 11 deletions

View File

@@ -2170,6 +2170,16 @@ public:
}
OS << ')';
}
void visitObjCSelectorExpr(ObjCSelectorExpr *E) {
printCommon(E, "objc_selector_expr") << " decl=";
if (auto method = E->getMethod())
method->dumpRef(OS);
else
OS << "<unresolved>";
OS << '\n';
printRec(E->getSubExpr());
OS << ')';
}
};
} // end anonymous namespace.