Lines Matching refs:Node
14 // LocationVerifier and RangeVerifier to verify whether a matched node has
68 const NodeType &Node) {}
85 /// verifier for the matched node.
132 const NodeType *Node = Result.Nodes.getNodeAs<NodeType>("");
133 if (!Node) {
134 setFailure("Matched node has wrong type");
138 verify(Result, *Node);
148 setFailure("Node was not bound");
156 /// \brief Verify whether a node has the correct source location.
158 /// By default, Node.getSourceLocation() is checked. This can be changed
170 const NodeType &Node) override {
171 SourceLocation Loc = getLocation(Node);
185 virtual SourceLocation getLocation(const NodeType &Node) {
186 return Node.getLocation();
193 /// \brief Verify whether a node has the correct source range.
195 /// By default, Node.getSourceRange() is checked. This can be changed
210 const NodeType &Node) override {
211 SourceRange R = getRange(Node);
232 virtual SourceRange getRange(const NodeType &Node) {
233 return Node.getSourceRange();
240 /// \brief Verify whether a node's dump contains a given substring.
249 const ast_type_traits::DynTypedNode &Node) override {
252 Node.dump(Dump, *Result.SourceManager);
267 /// \brief Verify whether a node's pretty print matches a given string.
276 const ast_type_traits::DynTypedNode &Node) override {
279 Node.print(Print, Result.Context->getPrintingPolicy());