Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a slot that we'll be able to stick dispatchees in (where dispatch…
…ee = something that a sub that's going to serve as a dispatcher will have in its candidate list).
  • Loading branch information
jnthn committed Aug 22, 2010
1 parent bfac235 commit f324cbc
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions dotnet/runtime/Metamodel/Representations/RakudoCodeRef.cs
Expand Up @@ -18,11 +18,36 @@ public sealed class RakudoCodeRef : Representation
/// </summary>
public sealed class Instance : RakudoObject
{
/// <summary>
/// The code body - the thing that actually runs instructions.
/// </summary>
public Func<ThreadContext, RakudoObject, RakudoObject, RakudoObject> Body;

/// <summary>
/// The static lexpad.
/// </summary>
public Dictionary<string, RakudoObject> StaticLexPad;

/// <summary>
/// Our static outer block.
/// </summary>
public Instance OuterBlock;

/// <summary>
/// Signature object.
/// </summary>
public Signature Sig;

/// <summary>
/// The context currently using this sub.
/// </summary>
public Context CurrentContext;

/// <summary>
/// Things we have control over the dispatch of.
/// </summary>
public List<Instance> Dispatchees;

public Instance(SharedTable STable)
{
this.STable = STable;
Expand Down

0 comments on commit f324cbc

Please sign in to comment.