Lines Matching defs:Id

37                                             StringRef Id) {
39 auto It = NodesMap.find(Id);
42 "Id not bound: " + Id);
46 static Error printNode(StringRef Id, const MatchFinder::MatchResult &Match,
50 auto NodeOrErr = getNode(Match.Nodes, Id);
90 std::string Id;
93 explicit DebugPrintNodeStencil(std::string S) : Id(std::move(S)) {}
96 return (llvm::Twine("dPrint(\"") + Id + "\")").str();
101 return printNode(Id, Match, Result);
105 // Operators that take a single node Id as an argument.
118 std::string Id;
121 UnaryOperationStencil(UnaryNodeOperator Op, std::string Id)
122 : Op(Op), Id(std::move(Id)) {}
146 return (OpName + "(\"" + Id + "\")").str();
154 return printNode(Id, Match, Result);
156 const auto *E = Match.Nodes.getNodeAs<Expr>(Id);
159 "Id not bound or not Expr: " + Id);
211 "Could not construct expression source from ID: " + Id);
285 "Id not bound: " + BaseId);
297 std::string Id;
302 IfBoundStencil(StringRef Id, Stencil TrueStencil, Stencil FalseStencil)
303 : Id(std::string(Id)), TrueStencil(std::move(TrueStencil)),
307 return (llvm::Twine("ifBound(\"") + Id + "\", " + TrueStencil->toString() +
315 return (M.find(Id) != M.end() ? TrueStencil : FalseStencil)
439 Stencil transformer::dPrint(StringRef Id) {
440 return std::make_shared<DebugPrintNodeStencil>(std::string(Id));
443 Stencil transformer::expression(llvm::StringRef Id) {
445 std::string(Id));
468 Stencil transformer::describe(StringRef Id) {
470 std::string(Id));
477 Stencil transformer::ifBound(StringRef Id, Stencil TrueStencil,
479 return std::make_shared<IfBoundStencil>(Id, std::move(TrueStencil),