summaryrefslogtreecommitdiff
path: root/Source/VCExpr/TypeErasure.cs
diff options
context:
space:
mode:
authorGravatar Ally Donaldson <unknown>2013-07-22 23:03:55 +0100
committerGravatar Ally Donaldson <unknown>2013-07-22 23:03:55 +0100
commit350d32403f7441df525f871f3853ca9b660211fe (patch)
tree08883f3535bcddedf088d77e1a8dd532415a1154 /Source/VCExpr/TypeErasure.cs
parent07e15dce2315f99bcbc7b3aa558653feec9de906 (diff)
All ...Seq classes now gone
Diffstat (limited to 'Source/VCExpr/TypeErasure.cs')
-rw-r--r--Source/VCExpr/TypeErasure.cs17
1 files changed, 3 insertions, 14 deletions
diff --git a/Source/VCExpr/TypeErasure.cs b/Source/VCExpr/TypeErasure.cs
index f7860169..a25781af 100644
--- a/Source/VCExpr/TypeErasure.cs
+++ b/Source/VCExpr/TypeErasure.cs
@@ -40,7 +40,7 @@ namespace Microsoft.Boogie.TypeErasure {
new TypedIdent(Token.NoToken, "res",
cce.NonNull(types)[types.Length - 1]),
false);
- return new Function(Token.NoToken, name, ToSeq(typeParams), args, result);
+ return new Function(Token.NoToken, name, new List<TypeVariable>(typeParams), args, result);
}
public static Function BoogieFunction(string name, params Type[] types) {
@@ -80,7 +80,7 @@ namespace Microsoft.Boogie.TypeErasure {
return new List<T>(args);
}
- public static List<TypeVariable/*!*/>/*!*/ ToList(TypeVariableSeq seq) {
+ public static List<TypeVariable/*!*/>/*!*/ ToList(List<TypeVariable> seq) {
Contract.Requires(seq != null);
Contract.Ensures(cce.NonNullElements(Contract.Result<List<TypeVariable>>()));
List<TypeVariable/*!*/>/*!*/ res = new List<TypeVariable/*!*/>(seq.Count);
@@ -91,17 +91,6 @@ namespace Microsoft.Boogie.TypeErasure {
return res;
}
- public static TypeVariableSeq ToSeq(List<TypeVariable/*!*/>/*!*/ list) {
- Contract.Requires(cce.NonNullElements(list));
- Contract.Ensures(Contract.Result<TypeVariableSeq>() != null);
- TypeVariableSeq/*!*/ res = new TypeVariableSeq();
- foreach (TypeVariable/*!*/ var in list) {
- Contract.Assert(var != null);
- res.Add(var);
- }
- return res;
- }
-
public static List<T>/*!*/ Intersect<T>(List<T> a, List<T> b) {
Contract.Requires(b != null);
Contract.Requires(a != null);
@@ -991,7 +980,7 @@ namespace Microsoft.Boogie.TypeErasure {
}
// the instantiations of inserted type variables, the order corresponds to the order in which "AbstractionVariable(int)" delivers variables
- private Type/*!*/ ThinOutType(Type rawType, TypeVariableSeq boundTypeParams, List<Type> instantiations) {
+ private Type/*!*/ ThinOutType(Type rawType, List<TypeVariable> boundTypeParams, List<Type> instantiations) {
Contract.Requires(instantiations != null);
Contract.Requires(boundTypeParams != null);
Contract.Requires(rawType != null);