|
|
@ -75,7 +75,8 @@ namespace ICSharpCode.NRefactory.CSharp |
|
|
|
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) |
|
|
|
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) |
|
|
|
{ |
|
|
|
{ |
|
|
|
AssignmentExpression o = other as AssignmentExpression; |
|
|
|
AssignmentExpression o = other as AssignmentExpression; |
|
|
|
return o != null && this.Left.DoMatch(o.Left, match) && this.Operator == o.Operator && this.Right.DoMatch(o.Right, match); |
|
|
|
return o != null && (this.Operator == AssignmentOperatorType.Any || this.Operator == o.Operator) |
|
|
|
|
|
|
|
&& this.Left.DoMatch(o.Left, match) && this.Right.DoMatch(o.Right, match); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static string GetOperatorSymbol(AssignmentOperatorType op) |
|
|
|
public static string GetOperatorSymbol(AssignmentOperatorType op) |
|
|
@ -136,5 +137,8 @@ namespace ICSharpCode.NRefactory.CSharp |
|
|
|
BitwiseOr, |
|
|
|
BitwiseOr, |
|
|
|
/// <summary>left ^= right</summary>
|
|
|
|
/// <summary>left ^= right</summary>
|
|
|
|
ExclusiveOr, |
|
|
|
ExclusiveOr, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>Any operator (for pattern matching)</summary>
|
|
|
|
|
|
|
|
Any |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|