C# Класс Rakudo.Runtime.SignatureBinder

Simple signature binder implementation.
Показать файл Открыть проект

Открытые методы

Метод Описание
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...)

Приватные методы

Метод Описание
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.

Описание методов

Bind() публичный статический Метод

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
Результат void