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);
82 references to MethodInfo
Microsoft.CodeAnalysis.CSharp (82)
Binder\Binder.ValueChecks.cs (73)
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) 1992in MethodInfo methodInfo, 2007MethodInfo localMethodInfo = ReplaceWithExtensionImplementationIfNeeded(methodInfo, ref parameters, ref receiver, ref argsOpt, ref argRefKindsOpt, ref argsToParamsOpt); 2016SafeContext getInvocationEscapeWithOldRules(MethodInfo methodInfo, ImmutableArray<ParameterSymbol> parameters, BoundExpression? receiver, ImmutableArray<BoundExpression> argsOpt, ImmutableArray<RefKind> argRefKindsOpt, ImmutableArray<int> argsToParamsOpt, SafeContext localScopeDepth, bool isRefEscape) 2088in MethodInfo methodInfo, 2143private static MethodInfo ReplaceWithExtensionImplementationIfNeeded(MethodInfo methodInfo, ref ImmutableArray<ParameterSymbol> parameters, 2153MethodInfo replacedMethodInfo = methodInfo.ReplaceWithExtensionImplementation(out bool wasError); 2197in MethodInfo methodInfo, 2215MethodInfo localMethodInfo = ReplaceWithExtensionImplementationIfNeeded(methodInfo, ref parameters, ref receiver, ref argsOpt, ref argRefKindsOpt, ref argsToParamsOpt); 2224bool checkInvocationEscapeWithOldRules(SyntaxNode syntax, MethodInfo methodInfo, 2301in MethodInfo methodInfo, 2374in MethodInfo methodInfo, 2473static EscapeArgument getReceiver(in MethodInfo methodInfo, BoundExpression receiver) 2551in MethodInfo methodInfo, 2621in MethodInfo methodInfo, 2676in MethodInfo methodInfo, 2752in MethodInfo methodInfo, 2866in MethodInfo methodInfo, 2876MethodInfo localMethodInfo = ReplaceWithExtensionImplementationIfNeeded(methodInfo, ref parameters, ref receiverOpt, ref argsOpt, ref argRefKindsOpt, ref argsToParamsOpt); 2885bool checkInvocationArgMixingWithOldRules(SyntaxNode syntax, MethodInfo methodInfo, 2976in MethodInfo methodInfo, 3536MethodInfo.Create(call.Method), 3558MethodInfo.Create(methodSymbol), 3575MethodInfo.Create(indexerAccess), 3597MethodInfo.Create(indexerAccess), 3619MethodInfo.Create(call.Method), 3651MethodInfo.Create(equivalentSignatureMethod), 3667MethodInfo.Create(propertyAccess.PropertySymbol), 3854MethodInfo.Create(methodSymbol), 3880MethodInfo.Create(indexerAccess), 3911MethodInfo.Create(indexerAccess), 3937MethodInfo.Create(methodSymbol), 3973MethodInfo.Create(equivalentSignatureMethod), 3998MethodInfo.Create(signature), 4023MethodInfo.Create(propertySymbol), 4244MethodInfo.Create(call.Method), 4260MethodInfo.Create(ptrSymbol), 4276MethodInfo.Create(indexerAccess), 4298MethodInfo.Create(indexerAccess), 4314MethodInfo.Create(call.Method), 4337MethodInfo.Create(equivalentSignatureMethod), 4353MethodInfo.Create(propertyAccess.PropertySymbol), 4369MethodInfo.Create(constructorSymbol), 4414MethodInfo.Create(unaryMethod), 4450MethodInfo.Create(equivalentSignatureMethod), 4467MethodInfo.Create(operatorMethod), 4503MethodInfo.Create(compoundMethod), 4528MethodInfo.Create(binaryMethod), 4552MethodInfo.Create(uo.LogicalOperator), 4745var methodInfo = MethodInfo.Create(indexer, expr.AccessorKind); 4797var methodInfo = MethodInfo.Create(property, accessorKind); 4971MethodInfo.Create(methodSymbol), 4991MethodInfo.Create(ptrSymbol), 5011MethodInfo.Create(indexerAccess), 5037MethodInfo.Create(indexerAccess), 5059MethodInfo.Create(methodSymbol), 5086MethodInfo.Create(equivalentSignatureMethod), 5106MethodInfo.Create(propertyAccess.PropertySymbol), 5126MethodInfo.Create(constructorSymbol), 5193MethodInfo.Create(unaryMethod), 5240MethodInfo.Create(equivalentSignatureMethod), 5261MethodInfo.Create(operatorMethod), 5298MethodInfo.Create(compoundMethod), 5332MethodInfo.Create(binaryMethod), 5364MethodInfo.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),