Lines Matching refs:RootNode
387 : RootNode(nullptr), Context(new Demangler{nullptr, nullptr}) {}
395 : RootNode(Other.RootNode), Context(Other.Context) {
396 Other.Context = Other.RootNode = nullptr;
401 std::swap(RootNode, Other.RootNode);
406 // Demangle MangledName into an AST, storing it into this->RootNode.
411 RootNode = Parser->parse();
412 return RootNode == nullptr;
415 static char *printNode(const Node *RootNode, char *Buf, size_t *N) {
417 RootNode->print(OB);
428 const Node *Name = static_cast<const FunctionEncoding *>(RootNode)->getName();
457 const Node *Name = static_cast<const FunctionEncoding *>(RootNode)->getName();
500 auto *Name = static_cast<FunctionEncoding *>(RootNode)->getName();
508 NodeArray Params = static_cast<FunctionEncoding *>(RootNode)->getParams();
529 static_cast<const FunctionEncoding *>(RootNode)->getReturnType())
539 assert(RootNode != nullptr && "must call partialDemangle()");
540 return printNode(static_cast<Node *>(RootNode), Buf, N);
544 assert(RootNode != nullptr && "must call partialDemangle()");
547 auto *E = static_cast<const FunctionEncoding *>(RootNode);
552 const Node *N = static_cast<const Node *>(RootNode);
584 assert(RootNode != nullptr && "must call partialDemangle()");
585 return static_cast<const Node *>(RootNode)->getKind() ==
590 assert(RootNode != nullptr && "must call partialDemangle()");
591 auto K = static_cast<const Node *>(RootNode)->getKind();