6 instantiations of MethodInfo
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder.ValueChecks.cs (6)
66return new MethodInfo(method, method, null); 71return new MethodInfo( 80AccessorKind.Get => new MethodInfo(property, property.GetOwnOrInheritedGetMethod(), setMethod: null), 81AccessorKind.Set => new MethodInfo(property, property.GetOwnOrInheritedSetMethod(), setMethod: null), 82AccessorKind.Both => new MethodInfo(property, property.GetOwnOrInheritedGetMethod(), property.GetOwnOrInheritedSetMethod()), 98return new MethodInfo(symbol, method, setMethod);
29 references to MethodInfo
Microsoft.CodeAnalysis.CSharp (29)
Binder\Binder.ValueChecks.cs (29)
40/// method is used in a get scenario. That will lead to a non-null <see cref="MethodInfo.Symbol"/> 64internal static MethodInfo Create(MethodSymbol method) 69internal static MethodInfo Create(PropertySymbol property) 77internal static MethodInfo Create(PropertySymbol property, AccessorKind accessorKind) => 86internal static MethodInfo Create(BoundIndexerAccess expr) => 89internal MethodInfo ReplaceWithExtensionImplementation(out bool wasError) 125public MethodInfo MethodInfo; 137MethodInfo = MethodInfo.Create(call.Method), 150MethodInfo = MethodInfo.Create(method), 165MethodInfo = MethodInfo.Create(methodSymbol), 179MethodInfo = MethodInfo.Create(indexerAccess), 194MethodInfo = MethodInfo.Create(objectCreation.Constructor), 210MethodInfo = MethodInfo.Create(unaryOperator.MethodOpt), 226MethodInfo = MethodInfo.Create(binaryOperator.Method), 240MethodInfo = MethodInfo.Create(logicalOperator.LogicalOperator), 253MethodInfo = MethodInfo.Create(operatorMethod), 266MethodInfo = MethodInfo.Create(equivalentSignatureMethod), 281MethodInfo = MethodInfo.Create(incrementOperator.MethodOpt), 298MethodInfo = MethodInfo.Create(method), 312MethodInfo = MethodInfo.Create(equivalentSignatureMethod), 325MethodInfo = MethodInfo.Create(propertyAccess.PropertySymbol), 334MethodInfo = MethodInfo.Create(colElement.AddMethod), 2369MethodInfo replacedMethodInfo = methodInvocationInfo.MethodInfo.ReplaceWithExtensionImplementation(out bool wasError); 2708static EscapeArgument getReceiver(in MethodInfo methodInfo, BoundExpression receiver) 2844var methodInfo = localMethodInvocationInfo.MethodInfo; 4859var methodInfo = MethodInfo.Create(indexer, expr.AccessorKind); 4915var methodInfo = MethodInfo.Create(property, accessorKind);