LLDB mainline
lldb_private::dil::BinaryOpNode Class Reference

#include <DILAST.h>

Inheritance diagram for lldb_private::dil::BinaryOpNode:
[legend]

Public Member Functions

 BinaryOpNode (uint32_t location, BinaryOpKind kind, ASTNodeUP lhs, ASTNodeUP rhs)
llvm::Expected< lldb::ValueObjectSPAccept (Visitor *v) const override
BinaryOpKind GetKind () const
ASTNodeGetLHS () const
ASTNodeGetRHS () const
Public Member Functions inherited from lldb_private::dil::ASTNode
 ASTNode (uint32_t location, NodeKind kind)
virtual ~ASTNode ()=default
uint32_t GetLocation () const
NodeKind GetKind () const

Static Public Member Functions

static bool classof (const ASTNode *node)

Private Attributes

BinaryOpKind m_kind
ASTNodeUP m_lhs
ASTNodeUP m_rhs

Detailed Description

Definition at line 162 of file DILAST.h.

Constructor & Destructor Documentation

◆ BinaryOpNode()

lldb_private::dil::BinaryOpNode::BinaryOpNode ( uint32_t location,
BinaryOpKind kind,
ASTNodeUP lhs,
ASTNodeUP rhs )
inline

Member Function Documentation

◆ Accept()

llvm::Expected< lldb::ValueObjectSP > lldb_private::dil::BinaryOpNode::Accept ( Visitor * v) const
overridevirtual

Implements lldb_private::dil::ASTNode.

Definition at line 42 of file DILAST.cpp.

References lldb_private::dil::Visitor::Visit().

◆ classof()

bool lldb_private::dil::BinaryOpNode::classof ( const ASTNode * node)
inlinestatic

◆ GetKind()

BinaryOpKind lldb_private::dil::BinaryOpNode::GetKind ( ) const
inline

Definition at line 171 of file DILAST.h.

References m_kind.

Referenced by lldb_private::dil::Interpreter::Visit().

◆ GetLHS()

ASTNode & lldb_private::dil::BinaryOpNode::GetLHS ( ) const
inline

Definition at line 172 of file DILAST.h.

References lldb_private::dil::ASTNode::ASTNode(), and m_lhs.

Referenced by lldb_private::dil::Interpreter::Visit().

◆ GetRHS()

ASTNode & lldb_private::dil::BinaryOpNode::GetRHS ( ) const
inline

Definition at line 173 of file DILAST.h.

References lldb_private::dil::ASTNode::ASTNode(), and m_rhs.

Referenced by lldb_private::dil::Interpreter::Visit().

Member Data Documentation

◆ m_kind

BinaryOpKind lldb_private::dil::BinaryOpNode::m_kind
private

Definition at line 180 of file DILAST.h.

Referenced by BinaryOpNode(), and GetKind().

◆ m_lhs

ASTNodeUP lldb_private::dil::BinaryOpNode::m_lhs
private

Definition at line 181 of file DILAST.h.

Referenced by BinaryOpNode(), and GetLHS().

◆ m_rhs

ASTNodeUP lldb_private::dil::BinaryOpNode::m_rhs
private

Definition at line 182 of file DILAST.h.

Referenced by BinaryOpNode(), and GetRHS().


The documentation for this class was generated from the following files: