Lines Matching refs:FromId
85 ReplaceStmtWithText::ReplaceStmtWithText(StringRef FromId, StringRef ToText) in ReplaceStmtWithText() argument
86 : FromId(std::string(FromId)), ToText(std::string(ToText)) {} in ReplaceStmtWithText()
90 if (const Stmt *FromMatch = Result.Nodes.getNodeAs<Stmt>(FromId)) { in run()
103 ReplaceStmtWithStmt::ReplaceStmtWithStmt(StringRef FromId, StringRef ToId) in ReplaceStmtWithStmt() argument
104 : FromId(std::string(FromId)), ToId(std::string(ToId)) {} in ReplaceStmtWithStmt()
108 const Stmt *FromMatch = Result.Nodes.getNodeAs<Stmt>(FromId); in run()
155 llvm::StringRef FromId, std::vector<TemplateElement> Template) in ReplaceNodeWithTemplate() argument
156 : FromId(std::string(FromId)), Template(std::move(Template)) {} in ReplaceNodeWithTemplate()
159 ReplaceNodeWithTemplate::create(StringRef FromId, StringRef ToTemplate) { in create() argument
195 new ReplaceNodeWithTemplate(FromId, std::move(ParsedTemplate))); in create()
223 if (NodeMap.count(FromId) == 0) { in run()
224 llvm::errs() << "Node to be replaced " << FromId in run()
229 tooling::Replacement(*Result.SourceManager, &NodeMap.at(FromId), ToText, in run()