conversion of const Stmt to stringref

const WhileStmt *WS = Result.Nodes.getNodeAsclang::WhileStmt(“whileStmt”);

Stmt *s = WS->getBody(); ← i am assuming this is can get the body of while statment

how do i print out to see what the variable s is holding ?

i need to print out using rewriter functionality, but there is no function for me to convert it to stringref or print a stmt.

Much help needed please.