Lines Matching refs:Node
25 using llvm::yaml::Node;
61 bool parse(Fragment &F, Node &N) { in parse()
63 Dict.handle("If", [&](Node &N) { parse(F.If, N); }); in parse()
64 Dict.handle("CompileFlags", [&](Node &N) { parse(F.CompileFlags, N); }); in parse()
65 Dict.handle("Index", [&](Node &N) { parse(F.Index, N); }); in parse()
66 Dict.handle("Style", [&](Node &N) { parse(F.Style, N); }); in parse()
67 Dict.handle("Diagnostics", [&](Node &N) { parse(F.Diagnostics, N); }); in parse()
68 Dict.handle("Completion", [&](Node &N) { parse(F.Completion, N); }); in parse()
69 Dict.handle("Hover", [&](Node &N) { parse(F.Hover, N); }); in parse()
70 Dict.handle("InlayHints", [&](Node &N) { parse(F.InlayHints, N); }); in parse()
76 void parse(Fragment::IfBlock &F, Node &N) { in parse()
78 Dict.unrecognized([&](Located<std::string>, Node &) { in parse() argument
82 Dict.handle("PathMatch", [&](Node &N) { in parse()
86 Dict.handle("PathExclude", [&](Node &N) { in parse()
93 void parse(Fragment::CompileFlagsBlock &F, Node &N) { in parse()
95 Dict.handle("Compiler", [&](Node &N) { in parse()
99 Dict.handle("Add", [&](Node &N) { in parse()
103 Dict.handle("Remove", [&](Node &N) { in parse()
107 Dict.handle("CompilationDatabase", [&](Node &N) { in parse()
113 void parse(Fragment::StyleBlock &F, Node &N) { in parse()
115 Dict.handle("FullyQualifiedNamespaces", [&](Node &N) { in parse()
122 void parse(Fragment::DiagnosticsBlock &F, Node &N) { in parse()
124 Dict.handle("Suppress", [&](Node &N) { in parse()
128 Dict.handle("UnusedIncludes", [&](Node &N) { in parse()
131 Dict.handle("Includes", [&](Node &N) { parse(F.Includes, N); }); in parse()
132 Dict.handle("ClangTidy", [&](Node &N) { parse(F.ClangTidy, N); }); in parse()
136 void parse(Fragment::DiagnosticsBlock::ClangTidyBlock &F, Node &N) { in parse()
138 Dict.handle("Add", [&](Node &N) { in parse()
142 Dict.handle("Remove", [&](Node &N) { in parse()
146 Dict.handle("CheckOptions", [&](Node &N) { in parse()
148 CheckOptDict.unrecognized([&](Located<std::string> &&Key, Node &Val) { in parse()
158 void parse(Fragment::DiagnosticsBlock::IncludesBlock &F, Node &N) { in parse()
160 Dict.handle("IgnoreHeader", [&](Node &N) { in parse()
167 void parse(Fragment::IndexBlock &F, Node &N) { in parse()
170 [&](Node &N) { F.Background = scalarValue(N, "Background"); }); in parse()
171 Dict.handle("External", [&](Node &N) { in parse()
175 if (N.getType() == Node::NK_Mapping) { in parse()
177 } else if (N.getType() == Node::NK_Scalar || in parse()
178 N.getType() == Node::NK_BlockScalar) { in parse()
187 Dict.handle("StandardLibrary", [&](Node &N) { in parse()
205 void parse(Fragment::IndexBlock::ExternalBlock &F, Node &N) { in parse()
207 Dict.handle("File", [&](Node &N) { F.File = scalarValue(N, "File"); }); in parse()
209 [&](Node &N) { F.Server = scalarValue(N, "Server"); }); in parse()
211 [&](Node &N) { F.MountPoint = scalarValue(N, "MountPoint"); }); in parse()
215 void parse(Fragment::CompletionBlock &F, Node &N) { in parse()
217 Dict.handle("AllScopes", [&](Node &N) { in parse()
224 void parse(Fragment::HoverBlock &F, Node &N) { in parse()
226 Dict.handle("ShowAKA", [&](Node &N) { in parse()
233 void parse(Fragment::InlayHintsBlock &F, Node &N) { in parse()
235 Dict.handle("Enabled", [&](Node &N) { in parse()
239 Dict.handle("ParameterNames", [&](Node &N) { in parse()
243 Dict.handle("DeducedTypes", [&](Node &N) { in parse()
247 Dict.handle("Designators", [&](Node &N) { in parse()
258 std::vector<std::pair<llvm::StringRef, std::function<void(Node &)>>> Keys;
259 std::function<bool(Located<std::string>, Node &)> UnknownHandler;
269 void handle(llvm::StringLiteral Key, std::function<void(Node &)> Parse) { in handle()
281 unrecognized(std::function<bool(Located<std::string>, Node &)> Handler) { in unrecognized()
286 void parse(Node &N) const { in parse()
287 if (N.getType() != Node::NK_Mapping) { in parse()
352 llvm::Optional<Located<std::string>> scalarValue(Node &N, in scalarValue()
363 llvm::Optional<Located<bool>> boolValue(Node &N, llvm::StringRef Desc) { in boolValue()
373 llvm::Optional<std::vector<Located<std::string>>> scalarValues(Node &N) { in scalarValues()
398 void error(const llvm::Twine &Msg, const Node &N) { in error()
406 void warning(const llvm::Twine &Msg, const Node &N) { in warning()
429 if (Node *N = Doc.getRoot()) { in parseYAML()