Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[dotnet] Comment improvements, and give our code object representatio…

…n a slot for any dispatch candidates it will operate over, in the case that it's a dispatch routine.
  • Loading branch information...
commit e4552237bb94def23db09af61137523a61fd0e86 1 parent b11ad22
Jonathan Worthington authored October 30, 2010
26  dotnet/runtime/Metamodel/Representations/RakudoCodeRef.cs
@@ -8,14 +8,16 @@
8 8
 namespace Rakudo.Metamodel.Representations
9 9
 {
10 10
     /// <summary>
11  
-    /// A representation for low-level code references. This is something
12  
-    /// specific to this Rakudo backend, not something standard accross all
13  
-    /// Rakudo backends.
  11
+    /// A representation for a low-level code object (something that actually
  12
+    /// references a piece of code that we'll run). This is used for things
  13
+    /// that serve the role of an only sub (that has a body) and a dispatcher
  14
+    /// (which has a body as well as a list of candidates that it operates
  15
+    /// on).
14 16
     /// </summary>
15 17
     public sealed class RakudoCodeRef : Representation
16 18
     {
17 19
         /// <summary>
18  
-        /// This is how the boxed form of a P6str looks.
  20
+        /// Instance that uses the RakudoCodeRef representation.
19 21
         /// </summary>
20 22
         public sealed class Instance : RakudoObject
21 23
         {
@@ -40,6 +42,17 @@ public sealed class Instance : RakudoObject
40 42
             public Signature Sig;
41 43
 
42 44
             /// <summary>
  45
+            /// Exception handlers this block has, if any.
  46
+            /// </summary>
  47
+            public Handler[] Handlers;
  48
+
  49
+            /// <summary>
  50
+            /// If this is a dispatcher, this is the list of dispatchees that
  51
+            /// it will operate over.
  52
+            /// </summary>
  53
+            public RakudoObject[] Dispatchees;
  54
+
  55
+            /// <summary>
43 56
             /// The context currently using this sub.
44 57
             /// </summary>
45 58
             public Context CurrentContext;
@@ -48,11 +61,6 @@ public sealed class Instance : RakudoObject
48 61
             /// The outer context to use for the next invocation, if any.
49 62
             /// </summary>
50 63
             public Context OuterForNextInvocation;
51  
-
52  
-            /// <summary>
53  
-            /// Exception handlers this block has, if any.
54  
-            /// </summary>
55  
-            public Handler[] Handlers;
56 64
             
57 65
             /// <summary>
58 66
             /// Creates a new instance with the given S-Table.

0 notes on commit e455223

Please sign in to comment.
Something went wrong with that request. Please try again.