Lines Matching refs:DocNode
23 // Convert this DocNode into an empty array.
24 void DocNode::convertToArray() { *this = getDocument()->getArrayNode(); }
26 // Convert this DocNode into an empty map.
27 void DocNode::convertToMap() { *this = getDocument()->getMapNode(); }
30 DocNode::MapTy::iterator MapDocNode::find(StringRef S) {
36 DocNode &MapDocNode::operator[](StringRef S) {
41 DocNode &MapDocNode::operator[](DocNode Key) {
43 DocNode &N = (*Map)[Key];
52 DocNode &MapDocNode::operator[](int Key) {
55 DocNode &MapDocNode::operator[](unsigned Key) {
58 DocNode &MapDocNode::operator[](int64_t Key) {
61 DocNode &MapDocNode::operator[](uint64_t Key) {
66 DocNode &ArrayDocNode::operator[](size_t Index) {
75 // DocNode has an associated Document, i.e. it was not constructed using the
79 DocNode &DocNode::operator=(StringRef Val) {
83 DocNode &DocNode::operator=(MemoryBufferRef Val) {
87 DocNode &DocNode::operator=(bool Val) {
91 DocNode &DocNode::operator=(int Val) {
95 DocNode &DocNode::operator=(unsigned Val) {
99 DocNode &DocNode::operator=(int64_t Val) {
103 DocNode &DocNode::operator=(uint64_t Val) {
110 StackLevel(DocNode Node, size_t StartIndex, size_t Length,
111 DocNode *MapEntry = nullptr)
114 DocNode Node;
118 DocNode *MapEntry;
119 DocNode MapKey;
133 function_ref<int(DocNode *DestNode, DocNode SrcNode, DocNode MapKey)>
159 // Convert it into a DocNode.
160 DocNode Node;
194 DocNode *DestNode = nullptr;
219 DocNode MapKey = !Stack.empty() && !Stack.back().MapKey.isEmpty()
253 DocNode Node;
254 DocNode::MapTy::iterator MapIt;
255 DocNode::ArrayTy::iterator ArrayIt;
265 DocNode Node = getRoot();
271 {Node, DocNode::MapTy::iterator(), Node.getArray().begin(), false});
276 {Node, Node.getMap().begin(), DocNode::ArrayTy::iterator(), true});