Browse Source

#1182: TransformExpressionTrees: Remove unused pseudo this-parameter from parameterVariables list.

pull/1213/head
Siegfried Pammer 7 years ago
parent
commit
e941e7534c
  1. 4
      ICSharpCode.Decompiler/IL/Transforms/TransformExpressionTrees.cs

4
ICSharpCode.Decompiler/IL/Transforms/TransformExpressionTrees.cs

@ -171,10 +171,6 @@ namespace ICSharpCode.Decompiler.IL.Transforms @@ -171,10 +171,6 @@ namespace ICSharpCode.Decompiler.IL.Transforms
bool ReadParameters(ILInstruction initializer, IList<IParameter> parameters, IList<ILVariable> parameterVariables, ITypeResolveContext resolveContext)
{
if (!context.Function.Method.IsStatic) {
var thisParam = context.Function.Variables[0];
parameterVariables.Add(new ILVariable(VariableKind.Parameter, thisParam.Type, -1) { Name = "this" });
}
switch (initializer) {
case Block initializerBlock:
if (initializerBlock.Kind != BlockKind.ArrayInitializer)

Loading…
Cancel
Save