mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SE-0022: Implement parsing, AST, and semantic analysis for #selector.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user