Phasor 2.2.0
Stack VM based Programming Language
Loading...
Searching...
No Matches
Phasor::AST::FieldAccessExpr Struct Reference

Field Access Expression Node. More...

#include <AST.hpp>

Inheritance diagram for Phasor::AST::FieldAccessExpr:
[legend]
Collaboration diagram for Phasor::AST::FieldAccessExpr:
[legend]

Public Member Functions

 FieldAccessExpr (std::unique_ptr< Expression > obj, std::string field)
void print (int indent=0) const override
Public Member Functions inherited from Phasor::AST::Node
virtual ~Node ()=default

Public Attributes

std::unique_ptr< Expressionobject
std::string fieldName

Detailed Description

Field Access Expression Node.

Definition at line 669 of file AST.hpp.

Constructor & Destructor Documentation

◆ FieldAccessExpr()

Phasor::AST::FieldAccessExpr::FieldAccessExpr ( std::unique_ptr< Expression > obj,
std::string field )
inline

Definition at line 674 of file AST.hpp.

Member Function Documentation

◆ print()

void Phasor::AST::FieldAccessExpr::print ( int indent = 0) const
inlineoverridevirtual

Implements Phasor::AST::Node.

Definition at line 679 of file AST.hpp.

Member Data Documentation

◆ fieldName

std::string Phasor::AST::FieldAccessExpr::fieldName

Definition at line 672 of file AST.hpp.

◆ object

std::unique_ptr<Expression> Phasor::AST::FieldAccessExpr::object

Definition at line 671 of file AST.hpp.


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