You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 601f682
Browse filesBrowse the repository at this point in the historyBrowse files
/// <summary>Creates a UnaryExpression that represents the assignment of the expression incremented by 1 and returns the incremented value, with the implementing method.</summary>
/// <summary>Creates a UnaryExpression that represents the assignment of the expression incremented by 1 and returns the original value, with the implementing method.</summary>
/// <summary>Creates a UnaryExpression that represents the assignment of the expression decremented by 1 and returns the decremented value, with the implementing method.</summary>
/// <summary>Creates a UnaryExpression that represents the assignment of the expression decremented by 1 and returns the original value, with the implementing method.</summary>
ExpressionType.PreIncrementAssign=>method==null?PreIncrementAssign(operand):ThrowNotSupportedUnary("PreIncrementAssign with method is not supported"),
736
-
ExpressionType.PostIncrementAssign=>method==null?PostIncrementAssign(operand):ThrowNotSupportedUnary("PostIncrementAssign with method is not supported"),
737
-
ExpressionType.PreDecrementAssign=>method==null?PreDecrementAssign(operand):ThrowNotSupportedUnary("PreDecrementAssign with method is not supported"),
738
-
ExpressionType.PostDecrementAssign=>method==null?PostDecrementAssign(operand):ThrowNotSupportedUnary("PostDecrementAssign with method is not supported"),
AssignToArithmeticOrSelf(nodeType), false, il, ref context, parent);
2240
+
if (nodeType == ExpressionType.Assign)
2241
+
return TryEmitArithmeticAndOrAssign(ba.Left, ba.Right, exprType, nodeType, false, il, ref context, parent);
2242
+
2243
+
if (ba.Conversion != null) // todo: @feature the conversion lambda of the compound assignment is not supported yet, better to fail than to produce the wrong result
2244
+
return false;
2245
+
2246
+
var baMethod = ba.Method;
2247
+
return baMethod != null
2248
+
? TryEmitOpAssignWithMethod(ba.Left, ba.Right, baMethod, AssignToArithmeticOrSelf(nodeType), false, il, ref context, parent)
Copy file name to clipboardExpand all lines: src/FastExpressionCompiler/ImTools.cs
+26-13Lines changed: 26 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -850,8 +850,11 @@ public interface ISmallList<T> : IIndexed<T>, IEnumerable<T>
850
850
/// <summary>Clears the list.</summary>
851
851
voidClear();
852
852
853
-
/// <summary>Copies the contents of the list to the passed array.</summary>
854
-
voidCopyToArray(T[]arr,intcopyToIndex=0);
853
+
/// <summary>Copies the contents of the list to the passed array. Copies into the new array starting from the specified index and for the specified count</summary>
/// <summary>Copies the contents of the list to a new array. Copies into the new array starting from the specified index and for the specified count.</summary>
/// <summary>Copies the contents of the list to a new array. Copies into the new array starting from the specified index and for the specified count.</summary>
0 commit comments