149 references to Method
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (3)
ExpressionTrees\Sources\ExprLambdaUtils.vb (3)
184
If node.
Method
IsNot Nothing Then
185
_s.AppendLine(indent + "method: " + node.
Method
.ToString() + " in " + node.
Method
.DeclaringType.ToString())
System.Linq.Expressions (146)
System\Linq\Expressions\BinaryExpression.cs (114)
109
return Expression.MakeBinary(NodeType, left, right, IsLiftedToNull,
Method
, conversion);
164
Expression r = Expression.MakeBinary(op, Left, Right, false,
Method
);
197
Expression e2 = Expression.MakeBinary(op, Expression.MakeMemberAccess(temp1, member.Member), Right, false,
Method
);
256
Expression op = Expression.MakeBinary(binaryOp, tempIndex, Right, false,
Method
);
400
MethodInfo? opTrueFalse = TypeUtils.GetBooleanOperator(
Method
!.DeclaringType!, opName);
420
Method
,
670
throw Error.UserDefinedOpMustHaveValidReturnType(binaryType, b.
Method
!.Name);
676
ValidateOpAssignConversionLambda(conversion, b.Left, b.
Method
!, b.NodeType);
677
b = new OpAssignMethodConversionBinaryExpression(b.NodeType, b.Left, b.Right, b.Left.Type, b.
Method
!, conversion);
687
ParameterInfo[] pis = b.
Method
!.GetParametersCached();
703
throw Error.UserDefinedOpMustHaveValidReturnType(binaryType, b.
Method
!.Name);
709
ValidateOpAssignConversionLambda(conversion, b.Left, b.
Method
!, b.NodeType);
710
b = new OpAssignMethodConversionBinaryExpression(b.NodeType, b.Left, b.Right, b.Left.Type, b.
Method
!, conversion);
964
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
967
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, <see cref="BinaryExpression.IsLiftedToNull"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
1017
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
1019
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, <see cref="BinaryExpression.IsLiftedToNull"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
1109
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
1112
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, <see cref="BinaryExpression.IsLiftedToNull"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
1143
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
1146
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, <see cref="BinaryExpression.IsLiftedToNull"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
1176
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
1179
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, <see cref="BinaryExpression.IsLiftedToNull"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
1209
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
1212
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, <see cref="BinaryExpression.IsLiftedToNull"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
1262
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
1264
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
1315
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
1317
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
1469
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
1471
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
1505
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
1507
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
1519
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
1522
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, <see cref="BinaryExpression.
Method
"/>,
1588
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
1590
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
1602
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
1605
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, <see cref="BinaryExpression.
Method
"/>,
1647
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
1649
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
1683
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
1685
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
1719
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
1721
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
1733
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
1736
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, <see cref="BinaryExpression.
Method
"/>,
1777
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
1779
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
1791
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
1794
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, <see cref="BinaryExpression.
Method
"/>,
1835
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
1837
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
1871
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
1873
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
1907
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
1909
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
1921
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
1924
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, <see cref="BinaryExpression.
Method
"/>,
1965
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
1967
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
2001
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
2003
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
2015
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
2018
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, <see cref="BinaryExpression.
Method
"/>,
2059
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
2061
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
2095
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
2097
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
2109
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
2112
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, <see cref="BinaryExpression.
Method
"/>,
2153
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
2155
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
2167
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
2170
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, <see cref="BinaryExpression.
Method
"/>,
2211
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
2213
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
2263
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
2265
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
2300
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
2302
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
2314
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
2317
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, <see cref="BinaryExpression.
Method
"/>,
2359
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
2361
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
2396
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
2398
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
2410
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
2413
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, <see cref="BinaryExpression.
Method
"/>,
2455
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
2457
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
2491
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
2493
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
2505
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
2508
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, <see cref="BinaryExpression.
Method
"/>,
2549
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
2551
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
2585
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
2587
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
2599
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
2602
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, <see cref="BinaryExpression.
Method
"/>,
2643
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
2645
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
2679
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
2681
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
2693
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
2696
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, <see cref="BinaryExpression.
Method
"/>,
2737
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
2739
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
2768
ParameterInfo[] pis = b.
Method
!.GetParametersCached();
2795
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
2797
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, and <see cref="BinaryExpression.
Method
"/> properties set to the specified values.
2809
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="BinaryExpression.
Method
"/> property equal to.</param>
2812
/// and the <see cref="BinaryExpression.Left"/>, <see cref="BinaryExpression.Right"/>, <see cref="BinaryExpression.
Method
"/>,
System\Linq\Expressions\Compiler\LambdaCompiler.Address.cs (1)
68
Debug.Assert(node.NodeType == ExpressionType.ArrayIndex && node.
Method
== null);
System\Linq\Expressions\Compiler\LambdaCompiler.Binary.cs (3)
26
if (b.
Method
!= null)
99
MethodCallExpression mc = Expression.Call(null, b.
Method
!, p1, p2);
124
EmitMethodCallExpression(Expression.Call(null, b.
Method
!, b.Left, b.Right), flags);
System\Linq\Expressions\Compiler\LambdaCompiler.Logical.cs (12)
89
Debug.Assert(b.
Method
== null);
112
Debug.Assert(b.
Method
== null);
278
Debug.Assert(b.
Method
!.IsStatic);
283
MethodInfo? opFalse = TypeUtils.GetBooleanOperator(b.
Method
.DeclaringType!, "op_False");
294
_ilg.Emit(OpCodes.Call, b.
Method
);
314
if (b.
Method
!= null)
384
Debug.Assert(b.
Method
!.IsStatic);
389
MethodInfo? opTrue = TypeUtils.GetBooleanOperator(b.
Method
.DeclaringType!, "op_True");
400
_ilg.Emit(OpCodes.Call, b.
Method
);
408
if (b.
Method
!= null)
514
if (node.
Method
!= null)
586
if (node.
Method
!= null || node.IsLifted)
System\Linq\Expressions\Compiler\StackSpiller.cs (3)
236
node.
Method
,
266
RequireNoRefArgs(node.
Method
);
275
node.
Method
,
System\Linq\Expressions\Expression.DebuggerProxy.cs (1)
28
public MethodInfo? Method => _node.
Method
;
System\Linq\Expressions\ExpressionVisitor.cs (3)
659
if (before != after && before.
Method
== null)
661
if (after.
Method
!= null)
663
throw Error.MustRewriteWithoutMethod(after.
Method
, nameof(VisitBinary));
System\Linq\Expressions\Interpreter\LightCompiler.cs (8)
757
if (node.
Method
!= null)
835
_instructions.EmitCall(node.
Method
);
858
_instructions.EmitCall(node.
Method
);
890
_instructions.EmitCall(node.
Method
);
1335
if (b.
Method
!= null && !b.IsLiftedLogical)
1359
MethodInfo? opTrue = TypeUtils.GetBooleanOperator(expr.
Method
!.DeclaringType!, andAlso ? "op_False" : "op_True");
1366
Debug.Assert(expr.
Method
.IsStatic);
1367
_instructions.EmitCall(expr.
Method
);
System\Linq\Expressions\SwitchExpression.cs (1)
274
comparison = equal.
Method
;