Skip to content

Commit

Permalink
versions and tombstones
Browse files Browse the repository at this point in the history
  • Loading branch information
kelindar committed Nov 19, 2016
1 parent 95301c6 commit 95606db
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Emitter.Runtime/Diagnostics/Debugging/DebugHandle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,14 @@ private void Populate()
var entryType = entry.GetType();
var entryKey = entryType.GetField("Key").GetValue(entry);
var entryValue = entryType.GetField("Value").GetValue(entry);
var entryVersion = entryType.GetField("Version").GetValue(entry);
var entryDeleted = (bool)entryType.GetField("Deleted").GetValue(entry);

// Format the key
var key = string.Format("{0}: v{1}{2}", entryKey.ToString(), entryVersion.ToString(), entryDeleted ? "(-)" : "");

// Inspect the value
this.Members[entryKey.ToString()] = PopulateValue(
this.Members[key] = PopulateValue(
entryValue
);
}
Expand Down

0 comments on commit 95606db

Please sign in to comment.