Home | History | Annotate | Download | only in ASTMatchers

Lines Matching defs:ID

65   /// \brief Adds \c Node to the map with key \c ID.
68 void addNode(StringRef ID, const ast_type_traits::DynTypedNode& DynNode) {
69 NodeMap[ID] = DynNode;
72 /// \brief Returns the AST node bound to \c ID.
74 /// Returns NULL if there was no node bound to \c ID or if there is a node but
77 const T *getNodeAs(StringRef ID) const {
78 IDToNodeMap::const_iterator It = NodeMap.find(ID);
85 ast_type_traits::DynTypedNode getNode(StringRef ID) const {
86 IDToNodeMap::const_iterator It = NodeMap.find(ID);
126 /// nodes from the Id matcher.
141 /// \brief Add a binding from an id to a node.
142 void setBinding(const std::string &Id,
147 Binding.addNode(Id, DynNode);
195 /// May bind \p DynNode to an ID via \p Builder, or recurse into
216 /// May bind 'Node' to an ID via 'Builder', or recurse into
314 /// \brief Bind the specified \p ID to the matcher.
315 /// \return A new matcher with the \p ID bound to it if this matcher supports
317 llvm::Optional<DynTypedMatcher> tryBind(StringRef ID) const;
319 /// \brief Returns a unique \p ID for the matcher.
323 /// include both in the ID to make it unique.
454 /// \brief Returns an ID that uniquely identifies the matcher.
1049 /// \brief A Matcher that allows binding the node it matches to an id.
1052 /// matched node to an id if the match was successful.
1064 Matcher<T> bind(StringRef ID) const {
1066 .tryBind(ID)
1550 return Nodes.getNode(ID) != Node;
1552 std::string ID;