6 instantiations of MethodInfo
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder.ValueChecks.cs (6)
65return new MethodInfo(method, method, null); 70return new MethodInfo( 79AccessorKind.Get => new MethodInfo(property, property.GetOwnOrInheritedGetMethod(), setMethod: null), 80AccessorKind.Set => new MethodInfo(property, property.GetOwnOrInheritedSetMethod(), setMethod: null), 81AccessorKind.Both => new MethodInfo(property, property.GetOwnOrInheritedGetMethod(), property.GetOwnOrInheritedSetMethod()), 97return new MethodInfo(symbol, method, setMethod);
82 references to MethodInfo
Microsoft.CodeAnalysis.CSharp (82)
Binder\Binder.ValueChecks.cs (73)
39/// method is used in a get scenario. That will lead to a non-null <see cref="MethodInfo.Symbol"/> 63internal static MethodInfo Create(MethodSymbol method) 68internal static MethodInfo Create(PropertySymbol property) 76internal static MethodInfo Create(PropertySymbol property, AccessorKind accessorKind) => 85internal static MethodInfo Create(BoundIndexerAccess expr) => 88internal 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, 3535MethodInfo.Create(call.Method), 3557MethodInfo.Create(methodSymbol), 3574MethodInfo.Create(indexerAccess), 3596MethodInfo.Create(indexerAccess), 3618MethodInfo.Create(call.Method), 3650MethodInfo.Create(equivalentSignatureMethod), 3666MethodInfo.Create(propertyAccess.PropertySymbol), 3853MethodInfo.Create(methodSymbol), 3879MethodInfo.Create(indexerAccess), 3910MethodInfo.Create(indexerAccess), 3936MethodInfo.Create(methodSymbol), 3972MethodInfo.Create(equivalentSignatureMethod), 3997MethodInfo.Create(signature), 4022MethodInfo.Create(propertySymbol), 4243MethodInfo.Create(call.Method), 4259MethodInfo.Create(ptrSymbol), 4275MethodInfo.Create(indexerAccess), 4297MethodInfo.Create(indexerAccess), 4313MethodInfo.Create(call.Method), 4336MethodInfo.Create(equivalentSignatureMethod), 4352MethodInfo.Create(propertyAccess.PropertySymbol), 4368MethodInfo.Create(constructorSymbol), 4413MethodInfo.Create(unaryMethod), 4449MethodInfo.Create(equivalentSignatureMethod), 4466MethodInfo.Create(operatorMethod), 4502MethodInfo.Create(compoundMethod), 4527MethodInfo.Create(binaryMethod), 4551MethodInfo.Create(uo.LogicalOperator), 4744var methodInfo = MethodInfo.Create(indexer, expr.AccessorKind); 4796var methodInfo = MethodInfo.Create(property, accessorKind); 4970MethodInfo.Create(methodSymbol), 4990MethodInfo.Create(ptrSymbol), 5010MethodInfo.Create(indexerAccess), 5036MethodInfo.Create(indexerAccess), 5058MethodInfo.Create(methodSymbol), 5085MethodInfo.Create(equivalentSignatureMethod), 5105MethodInfo.Create(propertyAccess.PropertySymbol), 5125MethodInfo.Create(constructorSymbol), 5192MethodInfo.Create(unaryMethod), 5239MethodInfo.Create(equivalentSignatureMethod), 5260MethodInfo.Create(operatorMethod), 5297MethodInfo.Create(compoundMethod), 5331MethodInfo.Create(binaryMethod), 5363MethodInfo.Create(uo.LogicalOperator),
Binder\RefSafetyAnalysis.cs (9)
558MethodInfo.Create(compoundMethod), 572MethodInfo.Create(compoundMethod), 725MethodInfo.Create(method), 823var methodInfo = MethodInfo.Create(constructor); 908MethodInfo.Create(node), 931MethodInfo.Create(method), 1032MethodInfo.Create(deconstructMethod), 1123MethodInfo.Create(equivalentSignatureMethod),