Lines Matching defs:parse

58   // Tries to parse N into F, returning false if it failed and we couldn't
60 bool parse(Fragment &F, Node &N) {
62 Dict.handle("If", [&](Node &N) { parse(F.If, N); });
63 Dict.handle("CompileFlags", [&](Node &N) { parse(F.CompileFlags, N); });
64 Dict.handle("Index", [&](Node &N) { parse(F.Index, N); });
65 Dict.handle("Style", [&](Node &N) { parse(F.Style, N); });
66 Dict.handle("Diagnostics", [&](Node &N) { parse(F.Diagnostics, N); });
67 Dict.handle("Completion", [&](Node &N) { parse(F.Completion, N); });
68 Dict.handle("Hover", [&](Node &N) { parse(F.Hover, N); });
69 Dict.handle("InlayHints", [&](Node &N) { parse(F.InlayHints, N); });
70 Dict.handle("SemanticTokens", [&](Node &N) { parse(F.SemanticTokens, N); });
71 Dict.parse(N);
76 void parse(Fragment::IfBlock &F, Node &N) {
90 Dict.parse(N);
93 void parse(Fragment::CompileFlagsBlock &F, Node &N) {
110 Dict.parse(N);
113 void parse(Fragment::StyleBlock &F, Node &N) {
127 Dict.parse(N);
130 void parse(Fragment::DiagnosticsBlock &F, Node &N) {
142 Dict.handle("Includes", [&](Node &N) { parse(F.Includes, N); });
143 Dict.handle("ClangTidy", [&](Node &N) { parse(F.ClangTidy, N); });
144 Dict.parse(N);
147 void parse(Fragment::DiagnosticsBlock::ClangTidyBlock &F, Node &N) {
164 CheckOptDict.parse(N);
170 Dict.parse(N);
173 void parse(Fragment::DiagnosticsBlock::IncludesBlock &F, Node &N) {
183 Dict.parse(N);
186 void parse(Fragment::IndexBlock &F, Node &N) {
195 parse(External, N);
198 parse(External, *scalarValue(N, "External"));
210 Dict.parse(N);
213 void parse(Fragment::IndexBlock::ExternalBlock &F,
224 void parse(Fragment::IndexBlock::ExternalBlock &F, Node &N) {
231 Dict.parse(N);
234 void parse(Fragment::CompletionBlock &F, Node &N) {
244 Dict.parse(N);
247 void parse(Fragment::HoverBlock &F, Node &N) {
253 Dict.parse(N);
256 void parse(Fragment::InlayHintsBlock &F, Node &N) {
286 Dict.parse(N);
289 void parse(Fragment::SemanticTokensBlock &F, Node &N) {
299 Dict.parse(N);
334 void parse(Node &N) const {
399 // Try to parse a single scalar value from the node, warn on failure.
431 // Try to parse a list of single scalar values, or just a single value.
494 if (Parser(*SM).parse(Fragment, *N))