Commits

Tatham Oddie committed c3d9d72

Added node ID to verbose output.

Comments (0)

Files changed (2)

Web/Models/NodeViewModel.cs

             this.node = node;
         }
 
+        public int NodeId
+        {
+            get { return node.NodeId; }
+        }
+
         public string TypeName
         {
             get { return node.GetType().Name; }

Web/Views/Analysis/Verbose.cshtml

 <table title="Expression tokens">
     <thead>
         <tr>
+            <th>Node Id</th>
+            <th>Node Type</th>
             <th>Depth</th>
-            <th>Node Type</th>
             <th>Index</th>
             <th>Data</th>
         </tr>
     <tbody>
         @foreach(var node in View.AllNodes) {
             <tr class="@node.CssClass">
+                <td>@node.NodeId</td>
+                <td>@node.TypeName</td>
                 <td>@node.Depth</td>
-                <td>@node.TypeName</td>
                 <td>@node.StartIndex</td>
                 <td><code>@node.Data</code></td>
             </tr>