Lines Matching refs:ScalarDocNode
24 struct ScalarDocNode : DocNode {
25 ScalarDocNode(DocNode N) : DocNode(N) {}
27 /// Get the YAML tag for this ScalarDocNode. This normally returns ""; it only
108 /// Get the YAML tag for this ScalarDocNode. This normally returns ""; it only
111 StringRef ScalarDocNode::getYAMLTag() const {
116 ScalarDocNode N = getDocument()->getNode();
167 static ScalarDocNode &getAsScalar(DocNode &N) {
168 return *static_cast<ScalarDocNode *>(&N);
172 /// YAMLIO for ScalarDocNode
173 template <> struct TaggedScalarTraits<ScalarDocNode> {
175 static void output(const ScalarDocNode &S, void *Ctxt, raw_ostream &OS,
182 ScalarDocNode &S) {
186 static QuotingType mustQuote(const ScalarDocNode &S, StringRef ScalarStr) {
211 ScalarDocNode KeyObj = M.getDocument()->getNode();