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

#include <Attrs.h>

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

Public Member Functions

 Binding (LexerCursorRange Range, std::shared_ptr< AttrPath > Path, std::shared_ptr< Expr > Value)
 
const AttrPathpath () const
 
const std::shared_ptr< Expr > & value () 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 115 of file Attrs.h.

Constructor & Destructor Documentation

◆ Binding()

nixf::Binding::Binding ( LexerCursorRange Range,
std::shared_ptr< AttrPath > Path,
std::shared_ptr< Expr > Value )
inline

Definition at line 120 of file Attrs.h.

Member Function Documentation

◆ children()

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

Implements nixf::Node.

Definition at line 135 of file Attrs.h.

◆ path()

const AttrPath & nixf::Binding::path ( ) const
inline

Definition at line 128 of file Attrs.h.

◆ value()

const std::shared_ptr< Expr > & nixf::Binding::value ( ) const
inline

Definition at line 133 of file Attrs.h.


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