LLDB mainline
lldb_private::dil::ASTNode Class Referenceabstract

The rest of the classes in this file, except for the Visitor class at the very end, define all the types of AST nodes used by the DIL parser and expression evaluator. More...

#include <DILAST.h>

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

Public Member Functions

 ASTNode (uint32_t location, NodeKind kind)
virtual ~ASTNode ()=default
virtual llvm::Expected< lldb::ValueObjectSPAccept (Visitor *v) const =0
uint32_t GetLocation () const
NodeKind GetKind () const

Private Attributes

uint32_t m_location
const NodeKind m_kind

Detailed Description

The rest of the classes in this file, except for the Visitor class at the very end, define all the types of AST nodes used by the DIL parser and expression evaluator.

The DIL parser parses the input string and creates the AST parse tree from the AST nodes. The resulting AST node tree gets passed to the DIL expression evaluator, which evaluates the DIL AST nodes and creates/returns a ValueObjectSP containing the result. Base class for AST nodes used by the Data Inspection Language (DIL) parser. All of the specialized types of AST nodes inherit from this (virtual) base class.

Definition at line 52 of file DILAST.h.

Constructor & Destructor Documentation

◆ ASTNode()

◆ ~ASTNode()

virtual lldb_private::dil::ASTNode::~ASTNode ( )
virtualdefault

Member Function Documentation

◆ Accept()

◆ GetKind()

◆ GetLocation()

Member Data Documentation

◆ m_kind

const NodeKind lldb_private::dil::ASTNode::m_kind
private

Definition at line 65 of file DILAST.h.

Referenced by ASTNode(), and GetKind().

◆ m_location

uint32_t lldb_private::dil::ASTNode::m_location
private

Definition at line 64 of file DILAST.h.

Referenced by ASTNode(), and GetLocation().


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