C# Class Rakudo.Runtime.SignatureBinder

Simple signature binder implementation.
Mostrar archivo Open project: jnthn/6model

Public Methods

Method Description
Bind ( ThreadContext TC, Context C, RakudoObject Capture ) : void

Binds the capture against the given signature and stores the bound values into variables in the lexpad. XXX No type-checking is available just yet. :-( XXX No support for nameds mapping to positionals yet either. (In other words, this kinda sucks...)

Private Methods

Method Description
Flatten ( int FlattenSpec, RakudoObject &Positionals, RakudoObject>.Dictionary &Naneds ) : void

Flattens arguments into the positionals list or the nameds. This is pretty straightforward way, could be optimized in various ways, such as special case where we only have one arg which is the whole parameter set.

NumRequiredPositionals ( Signature Sig ) : int

The number of positionals we require.

Method Details

Bind() public static method

Binds the capture against the given signature and stores the bound values into variables in the lexpad. XXX No type-checking is available just yet. :-( XXX No support for nameds mapping to positionals yet either. (In other words, this kinda sucks...)
public static Bind ( ThreadContext TC, Context C, RakudoObject Capture ) : void
TC ThreadContext
C Context
Capture Rakudo.Metamodel.RakudoObject
return void