C# Class Rakudo.Runtime.SignatureBinder

Simple signature binder implementation.
Afficher le fichier Open project: jnthn/6model

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat void