-
Notifications
You must be signed in to change notification settings - Fork 148
TransformCallableDefinitions
rollynoel edited this page Jun 15, 2013
·
1 revision
Added by Avishay Lavie
Scans the AST for callable definitions and converts them to class definitions which inherit from System.MulticastDelegate, and adds the definition of the Invoke and BeginInvoke methods. These are later filled in by the CLR.
That is, if the code before the step looks like this:
callable MyCallable(arg as int) as bool
It will be transformed to this:
class MyCallable(MulticastDelegate):
def Invoke(arg as int) as bool:
pass
def BeginInvoke(arg as int, state as object, callaback as AsyncCallback):
pass
and so on.