summaryrefslogtreecommitdiff
path: root/Source/ModelViewer/DataModel.cs
diff options
context:
space:
mode:
authorGravatar MichalMoskal <unknown>2010-10-14 21:45:32 +0000
committerGravatar MichalMoskal <unknown>2010-10-14 21:45:32 +0000
commit0cc0ae1ee83d8901fcf79492926c414d62f8f416 (patch)
treeb8a32a2bf5eb156c5c8d3d7eeb8ef7fcff9f0fff /Source/ModelViewer/DataModel.cs
parent2cf9c9394780b1affd5a764b269757310d977b7a (diff)
Implement struct printing
Diffstat (limited to 'Source/ModelViewer/DataModel.cs')
-rw-r--r--Source/ModelViewer/DataModel.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/ModelViewer/DataModel.cs b/Source/ModelViewer/DataModel.cs
index f1b0b26f..ff5206c7 100644
--- a/Source/ModelViewer/DataModel.cs
+++ b/Source/ModelViewer/DataModel.cs
@@ -141,6 +141,8 @@ namespace Microsoft.Boogie.ModelViewer
if (!cond) throw new System.Exception("assertion violation");
}
+ public static IEnumerable<T> Empty<T>() { yield break; }
+
public static IEnumerable<T> Map<S, T>(this IEnumerable<S> inp, Func<S, T> conv)
{
foreach (var s in inp) yield return conv(s);