C# 클래스 Rakudo.Runtime.SignatureBinder

Simple signature binder implementation.
파일 보기 프로젝트 열기: jnthn/6model

공개 메소드들

메소드 설명
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