|
|
|
@ -843,7 +843,7 @@ namespace ICSharpCode.Decompiler.IL
@@ -843,7 +843,7 @@ namespace ICSharpCode.Decompiler.IL
|
|
|
|
|
protected internal override bool PerformMatch(ILInstruction other, ref Patterns.Match match) |
|
|
|
|
{ |
|
|
|
|
var o = other as CompoundAssignmentInstruction; |
|
|
|
|
return o != null && this.target.PerformMatch(o.target, ref match) && this.value.PerformMatch(o.value, ref match); |
|
|
|
|
return o != null && this.target.PerformMatch(o.target, ref match) && this.value.PerformMatch(o.value, ref match) && type.Equals(o.type); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -2765,7 +2765,7 @@ namespace ICSharpCode.Decompiler.IL
@@ -2765,7 +2765,7 @@ namespace ICSharpCode.Decompiler.IL
|
|
|
|
|
protected internal override bool PerformMatch(ILInstruction other, ref Patterns.Match match) |
|
|
|
|
{ |
|
|
|
|
var o = other as NewArr; |
|
|
|
|
return o != null && type.Equals(o.type); |
|
|
|
|
return o != null && type.Equals(o.type) && Patterns.ListMatch.DoMatch(this.Indices, o.Indices, ref match); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -3073,7 +3073,7 @@ namespace ICSharpCode.Decompiler.IL
@@ -3073,7 +3073,7 @@ namespace ICSharpCode.Decompiler.IL
|
|
|
|
|
protected internal override bool PerformMatch(ILInstruction other, ref Patterns.Match match) |
|
|
|
|
{ |
|
|
|
|
var o = other as LdElema; |
|
|
|
|
return o != null && type.Equals(o.type) && this.array.PerformMatch(o.array, ref match) && IsReadOnly == o.IsReadOnly; |
|
|
|
|
return o != null && type.Equals(o.type) && this.array.PerformMatch(o.array, ref match) && Patterns.ListMatch.DoMatch(this.Indices, o.Indices, ref match) && IsReadOnly == o.IsReadOnly; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|