コード例 #1
0
ファイル: builder.cpp プロジェクト: Jenny-fa/banjo
Reference_expr&
Builder::make_reference(Object_parm& d)
{
  return make<Reference_expr>(get_reference_type(d.type()), d);
}
コード例 #2
0
ファイル: builder.cpp プロジェクト: Jenny-fa/banjo
Reference_expr&
Builder::make_reference(Function_decl& d)
{
  return make<Reference_expr>(get_reference_type(d.type()), d);
}
コード例 #3
0
ファイル: parser.cpp プロジェクト: cjb129/beekar
// TODO: Ensure that we can actually construt
// a reference-to-T.
Type const*
Parser::on_reference_type(Type const* t)
{
  return get_reference_type(t);
}
コード例 #4
0
ファイル: builder.cpp プロジェクト: Jenny-fa/banjo
// Get an expression that refers to a variable. The type
// is a reference to the declared type of the variable.
Reference_expr&
Builder::make_reference(Variable_decl& d)
{
  return make<Reference_expr>(get_reference_type(d.type()), d);
}
コード例 #5
0
ファイル: elaborator.cpp プロジェクト: thehexia/beaker
Type const*
Elaborator::elaborate(Reference_type const* t)
{
  Type const* t1 = elaborate(t->type());
  return get_reference_type(t1);
}