nixd
Loading...
Searching...
No Matches
Public Member Functions | List of all members
nixf::Inherit Class Reference

#include <Attrs.h>

Inheritance diagram for nixf::Inherit:
[legend]
Collaboration diagram for nixf::Inherit:
[legend]

Public Member Functions

 Inherit (LexerCursorRange Range, std::vector< std::shared_ptr< AttrName > > Names, std::shared_ptr< Expr > E)
 
const std::vector< std::shared_ptr< AttrName > > & names () const
 
bool hasExpr ()
 
const std::shared_ptr< Expr > & expr () const
 
ChildVector children () const override
 
- Public Member Functions inherited from nixf::Node
NodeKind kind () const
 
LexerCursorRange range () const
 
PositionRange positionRange () const
 
LexerCursor lCur () const
 
LexerCursor rCur () const
 
const char * name () const
 
virtual ~Node ()=default
 
const Nodedescend (PositionRange Range) const
 Descendant node that contains the given range.
 
std::string_view src (std::string_view Src) const
 

Additional Inherited Members

- Public Types inherited from nixf::Node
enum  NodeKind { NK_BeginExpr , NK_EndExpr }
 
using ChildVector = boost::container::small_vector<Node *, 8>
 
- Static Public Member Functions inherited from nixf::Node
static const char * name (NodeKind Kind)
 
- Protected Member Functions inherited from nixf::Node
 Node (NodeKind Kind, LexerCursorRange Range)
 

Detailed Description

Definition at line 140 of file Attrs.h.

Constructor & Destructor Documentation

◆ Inherit()

nixf::Inherit::Inherit ( LexerCursorRange Range,
std::vector< std::shared_ptr< AttrName > > Names,
std::shared_ptr< Expr > E )
inline

Definition at line 145 of file Attrs.h.

Member Function Documentation

◆ children()

ChildVector nixf::Inherit::children ( ) const
inlineoverridevirtual

Implements nixf::Node.

Definition at line 157 of file Attrs.h.

◆ expr()

const std::shared_ptr< Expr > & nixf::Inherit::expr ( ) const
inline

Definition at line 155 of file Attrs.h.

Referenced by nixf::Sema::lowerInherit().

◆ hasExpr()

bool nixf::Inherit::hasExpr ( )
inline

Definition at line 153 of file Attrs.h.

◆ names()

const std::vector< std::shared_ptr< AttrName > > & nixf::Inherit::names ( ) const
inline

Definition at line 149 of file Attrs.h.

Referenced by nixf::Sema::lowerInherit().


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