retdec
include
retdec
demangler
borland_ast
parentheses_node.h
Go to the documentation of this file.
1
7
#ifndef RETDEC_PARENTHESES_NODE_H
8
#define RETDEC_PARENTHESES_NODE_H
9
10
#include "
retdec/demangler/borland_ast/node.h
"
11
#include "
retdec/demangler/context.h
"
12
13
namespace
retdec
{
14
namespace
demangler {
15
namespace
borland {
16
17
/*
18
* @brief Representation of node that adds parentheses around another node in borland AST.
19
*/
20
class
ParenthesesNode
:
public
Node
21
{
22
public
:
23
static
std::shared_ptr<ParenthesesNode>
create
(std::shared_ptr<Node> type);
24
25
void
printLeft
(std::ostream &s)
const override
;
26
27
private
:
28
explicit
ParenthesesNode
(std::shared_ptr<Node> type);
29
30
private
:
31
std::shared_ptr<Node>
_type
;
32
};
33
34
}
// namespace borland
35
}
// namespace demangler
36
}
// namespace retdec
37
38
#endif
//RETDEC_PARENTHESES_NODE_H
retdec::demangler::borland::Node
Base class for all nodes in AST.
Definition:
node.h:22
retdec::demangler::borland::ParenthesesNode
Definition:
parentheses_node.h:21
retdec::demangler::borland::ParenthesesNode::ParenthesesNode
ParenthesesNode(std::shared_ptr< Node > type)
Definition:
parentheses_node.cpp:15
retdec::demangler::borland::ParenthesesNode::create
static std::shared_ptr< ParenthesesNode > create(std::shared_ptr< Node > type)
Definition:
parentheses_node.cpp:25
retdec::demangler::borland::ParenthesesNode::_type
std::shared_ptr< Node > _type
Definition:
parentheses_node.h:31
retdec::demangler::borland::ParenthesesNode::printLeft
void printLeft(std::ostream &s) const override
Definition:
parentheses_node.cpp:18
context.h
Storage for all created nodes in borland AST.
retdec
Definition:
archive_wrapper.h:19
node.h
Base class for all nodes in borland AST.
Generated on Tue Aug 8 2023 10:45:48 for retdec by
1.9.1