Lines Matching refs:syntax
1 //===- Tree.h - structure of the syntax tree ------------------*- C++ -*-=====//
8 // Defines the basic structure of the syntax tree. There are two kinds of nodes:
35 namespace syntax {
37 /// A memory arena for syntax trees. Also tracks the underlying token buffers,
53 std::pair<FileID, llvm::ArrayRef<syntax::Token>>
61 llvm::DenseMap<FileID, std::vector<syntax::Token>> ExtraTokens;
74 /// A node in a syntax tree. Each node is either a Leaf (representing tokens) or
142 Leaf(const syntax::Token *T);
145 const syntax::Token *token() const { return Tok; }
148 const syntax::Token *Tok;
170 syntax::Node *findChild(NodeRole R);
194 } // namespace syntax