Lines Matching refs:shared_ptr
68 void WriteArgumentList(CodeWriter* to, const vector<std::shared_ptr<Expression>>& arguments) { in WriteArgumentList()
78 Field::Field(int m, std::shared_ptr<Variable> v) : ClassElement(), modifiers(m), variable(v) {} in Field()
119 FieldVariable::FieldVariable(std::shared_ptr<Expression> o, const string& n) in FieldVariable()
126 overloaded{[&](std::shared_ptr<Expression> e) { e->Write(to); }, in Write()
149 void StatementBlock::Add(std::shared_ptr<Statement> statement) { in Add()
153 void StatementBlock::Add(std::shared_ptr<Expression> expression) { in Add()
157 ExpressionStatement::ExpressionStatement(std::shared_ptr<Expression> e) : expression(e) {} in ExpressionStatement()
164 Assignment::Assignment(std::shared_ptr<Variable> l, std::shared_ptr<Expression> r) in Assignment()
167 Assignment::Assignment(std::shared_ptr<Variable> l, std::shared_ptr<Expression> r, string c) in Assignment()
181 MethodCall::MethodCall(const string& n, const std::vector<std::shared_ptr<Expression>>& args) in MethodCall()
184 MethodCall::MethodCall(std::shared_ptr<Expression> o, const string& n) : receiver(o), name(n) {} in MethodCall()
188 MethodCall::MethodCall(std::shared_ptr<Expression> o, const string& n, in MethodCall()
189 const std::vector<std::shared_ptr<Expression>>& args) in MethodCall()
193 const std::vector<std::shared_ptr<Expression>>& args) in MethodCall()
198 overloaded{[&](std::shared_ptr<Expression> e) { in Write()
209 Comparison::Comparison(std::shared_ptr<Expression> l, const string& o, in Comparison()
210 std::shared_ptr<Expression> r) in Comparison()
224 const std::vector<std::shared_ptr<Expression>>& args) in NewExpression()
233 NewArrayExpression::NewArrayExpression(const std::string& t, std::shared_ptr<Expression> s) in NewArrayExpression()
242 Cast::Cast(const std::string& t, std::shared_ptr<Expression> e) : type(t), expression(e) {} in Cast()
250 VariableDeclaration::VariableDeclaration(std::shared_ptr<Variable> l, std::shared_ptr<Expression> r) in VariableDeclaration()
253 VariableDeclaration::VariableDeclaration(std::shared_ptr<Variable> l) : lvalue(l) {} in VariableDeclaration()
277 ReturnStatement::ReturnStatement(std::shared_ptr<Expression> e) : expression(e) {} in ReturnStatement()
314 SwitchStatement::SwitchStatement(std::shared_ptr<Expression> e) : expression(e) {} in SwitchStatement()
461 std::shared_ptr<Expression> NULL_VALUE = std::make_shared<LiteralExpression>("null");
462 std::shared_ptr<Expression> THIS_VALUE = std::make_shared<LiteralExpression>("this");
463 std::shared_ptr<Expression> SUPER_VALUE = std::make_shared<LiteralExpression>("super");
464 std::shared_ptr<Expression> TRUE_VALUE = std::make_shared<LiteralExpression>("true");
465 std::shared_ptr<Expression> FALSE_VALUE = std::make_shared<LiteralExpression>("false");