Lines Matching full:yaml
424 /// \brief A virtual file system parsed from a YAML file.
515 /// \brief Parses \p Buffer, which is expected to be in YAML format and
551 /// \brief A helper class to hold the common YAML parsing state.
553 yaml::Stream &Stream;
555 void error(yaml::Node *N, const Twine &Msg) {
560 bool parseScalarString(yaml::Node *N, StringRef &Result,
562 yaml::ScalarNode *S = dyn_cast<yaml::ScalarNode>(N);
572 bool parseScalarBool(yaml::Node *N, bool &Result) {
600 bool checkDuplicateOrUnknownKey(yaml::Node *KeyNode, StringRef Key,
616 bool checkMissingKeys(yaml::Node *Obj, DenseMap<StringRef, KeyStatus> &Keys) {
628 Entry *parseEntry(yaml::Node *N) {
629 yaml::MappingNode *M = dyn_cast<yaml::MappingNode>(N);
653 for (yaml::MappingNode::iterator I = M->begin(), E = M->end(); I != E;
688 yaml::SequenceNode *Contents =
689 dyn_cast<yaml::SequenceNode>(I->getValue());
696 for (yaml::SequenceNode::iterator I = Contents->begin(),
779 VFSFromYAMLParser(yaml::Stream &S) : Stream(S) {}
782 bool parse(yaml::Node *Root, VFSFromYAML *FS) {
783 yaml::MappingNode *Top = dyn_cast<yaml::MappingNode>(Root);
800 for (yaml::MappingNode::iterator I = Top->begin(), E = Top->end(); I != E;
811 yaml::SequenceNode *Roots = dyn_cast<yaml::SequenceNode>(I->getValue());
817 for (yaml::SequenceNode::iterator I = Roots->begin(), E = Roots->end();
874 yaml::Stream Stream(Buffer, SM);
877 yaml::document_iterator DI = Stream.begin();
878 yaml::Node *Root = DI->getRoot();
1071 OS.indent(Indent + 2) << "'name': \"" << llvm::yaml::escape(Name) << "\",\n";
1087 OS.indent(Indent + 2) << "'name': \"" << llvm::yaml::escape(VPath) << "\",\n";
1089 << llvm::yaml::escape(RPath) << "\"\n";