nixd
Loading...
Searching...
No Matches
nixf::ExprString Class Reference

#include <Simple.h>

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

Public Member Functions

 ExprString (LexerCursorRange Range, std::shared_ptr< InterpolatedParts > Parts)
const InterpolatedPartsparts () const
bool isLiteral () const
const std::string & literal () const
ChildVector children () const override
Public Member Functions inherited from nixf::Expr
bool maybeLambda () const
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::Expr
static bool classof (const Node *N)
static bool isExpr (NodeKind Kind)
static bool maybeLambda (NodeKind Kind)
Static Public Member Functions inherited from nixf::Node
static const char * name (NodeKind Kind)
Protected Member Functions inherited from nixf::Expr
 Expr (NodeKind Kind, LexerCursorRange Range)
Protected Member Functions inherited from nixf::Node
 Node (NodeKind Kind, LexerCursorRange Range)

Detailed Description

Definition at line 116 of file Simple.h.

Constructor & Destructor Documentation

◆ ExprString()

nixf::ExprString::ExprString ( LexerCursorRange Range,
std::shared_ptr< InterpolatedParts > Parts )
inline

Definition at line 120 of file Simple.h.

References nixf::Expr::Expr().

Member Function Documentation

◆ children()

ChildVector nixf::ExprString::children ( ) const
inlinenodiscardoverridevirtual

Implements nixf::Node.

Definition at line 140 of file Simple.h.

◆ isLiteral()

bool nixf::ExprString::isLiteral ( ) const
inlinenodiscard

Definition at line 130 of file Simple.h.

Referenced by nixf::AttrName::isStatic().

◆ literal()

const std::string & nixf::ExprString::literal ( ) const
inlinenodiscard

Definition at line 135 of file Simple.h.

Referenced by nixf::AttrName::staticName().

◆ parts()

const InterpolatedParts & nixf::ExprString::parts ( ) const
inlinenodiscard

Definition at line 125 of file Simple.h.


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