git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154063
91177308-0d34-0410-b5e6-
96231b3b80d8
OwningPtr<Document> &Doc;
SMRange SourceRange;
+ ~Node();
+
private:
unsigned int TypeID;
StringRef Anchor;
static inline bool classof(const Node *N) {
return N->getType() == NK_Null;
}
+
+protected:
+ ~NullNode();
};
/// @brief A scalar node is an opaque datum that can be presented as a
return N->getType() == NK_Scalar;
}
+protected:
+ ~ScalarNode();
+
private:
StringRef Value;
return N->getType() == NK_KeyValue;
}
+protected:
+ ~KeyValueNode();
+
private:
Node *Key;
Node *Value;
return N->getType() == NK_Mapping;
}
+protected:
+ ~MappingNode();
+
private:
MappingType Type;
bool IsAtBeginning;
return N->getType() == NK_Sequence;
}
+protected:
+ ~SequenceNode();
+
private:
SequenceType SeqType;
bool IsAtBeginning;
return N->getType() == NK_Alias;
}
+protected:
+ ~AliasNode();
+
private:
StringRef Name;
};