Lines Matching full:stack
174 SmallVector<Node, 16> Stack;
184 /// Push a new node on the stack.
186 if (!Stack.empty()) {
187 assert(Stack.back().isDoneWithAttrs());
188 if (Stack.back().State == NS_LazyChildren) {
189 Stack.back().State = NS_Children;
195 Stack.push_back(Node(name));
201 assert(!Stack.empty() && !Stack.back().isDoneWithAttrs());
207 assert(!Stack.empty() && !Stack.back().isDoneWithAttrs());
208 Stack.back().State = NS_LazyChildren;
213 assert(!Stack.empty() && Stack.back().isDoneWithAttrs());
214 if (Stack.back().State == NS_LazyChildren) {
218 out << "</" << Stack.back().Name << ">\n";
220 if (Stack.size() > 1) Indent--;
221 Stack.pop_back();
1032 Stack.back().State = NS_Children; // explicitly become non-lazy