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);
84 references to MethodInfo
Microsoft.CodeAnalysis.CSharp (84)
Binder\Binder.ValueChecks.cs (75)
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) 1991in MethodInfo methodInfo, 2006MethodInfo localMethodInfo = ReplaceWithExtensionImplementationIfNeeded(methodInfo, ref parameters, ref receiver, ref argsOpt, ref argRefKindsOpt, ref argsToParamsOpt); 2015SafeContext getInvocationEscapeWithOldRules(MethodInfo methodInfo, ImmutableArray<ParameterSymbol> parameters, BoundExpression? receiver, ImmutableArray<BoundExpression> argsOpt, ImmutableArray<RefKind> argRefKindsOpt, ImmutableArray<int> argsToParamsOpt, SafeContext localScopeDepth, bool isRefEscape) 2087in MethodInfo methodInfo, 2142private static MethodInfo ReplaceWithExtensionImplementationIfNeeded(MethodInfo methodInfo, ref ImmutableArray<ParameterSymbol> parameters, 2152MethodInfo replacedMethodInfo = methodInfo.ReplaceWithExtensionImplementation(out bool wasError); 2196in MethodInfo methodInfo, 2214MethodInfo localMethodInfo = ReplaceWithExtensionImplementationIfNeeded(methodInfo, ref parameters, ref receiver, ref argsOpt, ref argRefKindsOpt, ref argsToParamsOpt); 2223bool checkInvocationEscapeWithOldRules(SyntaxNode syntax, MethodInfo methodInfo, 2300in MethodInfo methodInfo, 2373in MethodInfo methodInfo, 2472static EscapeArgument getReceiver(in MethodInfo methodInfo, BoundExpression receiver) 2550in MethodInfo methodInfo, 2620in MethodInfo methodInfo, 2675in MethodInfo methodInfo, 2751in MethodInfo methodInfo, 2865in MethodInfo methodInfo, 2875MethodInfo localMethodInfo = ReplaceWithExtensionImplementationIfNeeded(methodInfo, ref parameters, ref receiverOpt, ref argsOpt, ref argRefKindsOpt, ref argsToParamsOpt); 2884bool checkInvocationArgMixingWithOldRules(SyntaxNode syntax, MethodInfo methodInfo, 2975in MethodInfo methodInfo, 3537MethodInfo.Create(call.Method), 3559MethodInfo.Create(methodSymbol), 3576MethodInfo.Create(indexerAccess), 3598MethodInfo.Create(indexerAccess), 3620MethodInfo.Create(call.Method), 3652MethodInfo.Create(equivalentSignatureMethod), 3668MethodInfo.Create(propertyAccess.PropertySymbol), 3862MethodInfo.Create(methodSymbol), 3888MethodInfo.Create(indexerAccess), 3919MethodInfo.Create(indexerAccess), 3945MethodInfo.Create(methodSymbol), 3981MethodInfo.Create(equivalentSignatureMethod), 4006MethodInfo.Create(signature), 4031MethodInfo.Create(propertySymbol), 4259MethodInfo.Create(call.Method), 4275MethodInfo.Create(ptrSymbol), 4291MethodInfo.Create(indexerAccess), 4313MethodInfo.Create(indexerAccess), 4329MethodInfo.Create(call.Method), 4352MethodInfo.Create(equivalentSignatureMethod), 4368MethodInfo.Create(propertyAccess.PropertySymbol), 4384MethodInfo.Create(constructorSymbol), 4429MethodInfo.Create(unaryMethod), 4465MethodInfo.Create(equivalentSignatureMethod), 4482MethodInfo.Create(operatorMethod), 4519MethodInfo.Create(incrementMethod), 4543MethodInfo.Create(compoundMethod), 4568MethodInfo.Create(binaryMethod), 4592MethodInfo.Create(uo.LogicalOperator), 4785var methodInfo = MethodInfo.Create(indexer, expr.AccessorKind); 4837var methodInfo = MethodInfo.Create(property, accessorKind); 5011MethodInfo.Create(methodSymbol), 5031MethodInfo.Create(ptrSymbol), 5051MethodInfo.Create(indexerAccess), 5077MethodInfo.Create(indexerAccess), 5099MethodInfo.Create(methodSymbol), 5126MethodInfo.Create(equivalentSignatureMethod), 5146MethodInfo.Create(propertyAccess.PropertySymbol), 5166MethodInfo.Create(constructorSymbol), 5233MethodInfo.Create(unaryMethod), 5280MethodInfo.Create(equivalentSignatureMethod), 5301MethodInfo.Create(operatorMethod), 5340MethodInfo.Create(incrementMethod), 5366MethodInfo.Create(compoundMethod), 5400MethodInfo.Create(binaryMethod), 5432MethodInfo.Create(uo.LogicalOperator),
Binder\RefSafetyAnalysis.cs (9)
558MethodInfo.Create(compoundMethod), 572MethodInfo.Create(compoundMethod), 725MethodInfo.Create(method), 824var methodInfo = MethodInfo.Create(constructor); 909MethodInfo.Create(node), 932MethodInfo.Create(method), 1033MethodInfo.Create(deconstructMethod), 1124MethodInfo.Create(equivalentSignatureMethod),