[nem-en] Typing a expression in context of method

Michal Moskal michal.moskal at gmail.com
Fri May 11 09:55:47 CEST 2007


On 5/11/07, vc <vc at rsdn.ru> wrote:
> Hi.
>
> I need type some expression in context of method.
> If I create typer like this:
> def typer = Typer(mb); // mb is MethodBuilder
> typing work well, but it automatically run typing body of method.

Maybe just replace mb.Body with FunBody.Abstract(), call Typer(mb) and
replace it back again?

I agree it's kind of ugly, but is easy and should do the trick.

-- 
   Michał


More information about the devel-en mailing list