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