25 lines
405 B
C++
25 lines
405 B
C++
#ifndef MEMGRAPH_CYPHER_AST_AST_ACCESSOR_HPP
|
|
#define MEMGRAPH_CYPHER_AST_AST_ACCESSOR_HPP
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
#include "expr.hpp"
|
|
#include "identifier.hpp"
|
|
|
|
namespace ast
|
|
{
|
|
|
|
struct Accessor : public VisitableExpr<Accessor>
|
|
{
|
|
Accessor(Identifier* entity, Identifier* prop)
|
|
: entity(entity), prop(prop) {}
|
|
|
|
Identifier::uptr entity;
|
|
Identifier::uptr prop;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|