예제 #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
Type const*
Elaborator::elaborate(Reference_type const* t)
{
  Type const* t1 = elaborate(t->type());
  return get_reference_type(t1);
}