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) 1988in MethodInfo methodInfo, 2003MethodInfo localMethodInfo = ReplaceWithExtensionImplementationIfNeeded(methodInfo, ref parameters, ref receiver, ref argsOpt, ref argRefKindsOpt, ref argsToParamsOpt); 2012SafeContext getInvocationEscapeWithOldRules(MethodInfo methodInfo, ImmutableArray<ParameterSymbol> parameters, BoundExpression? receiver, ImmutableArray<BoundExpression> argsOpt, ImmutableArray<RefKind> argRefKindsOpt, ImmutableArray<int> argsToParamsOpt, SafeContext localScopeDepth, bool isRefEscape) 2084in MethodInfo methodInfo, 2139private static MethodInfo ReplaceWithExtensionImplementationIfNeeded(MethodInfo methodInfo, ref ImmutableArray<ParameterSymbol> parameters, 2149MethodInfo replacedMethodInfo = methodInfo.ReplaceWithExtensionImplementation(out bool wasError); 2193in MethodInfo methodInfo, 2211MethodInfo localMethodInfo = ReplaceWithExtensionImplementationIfNeeded(methodInfo, ref parameters, ref receiver, ref argsOpt, ref argRefKindsOpt, ref argsToParamsOpt); 2220bool checkInvocationEscapeWithOldRules(SyntaxNode syntax, MethodInfo methodInfo, 2297in MethodInfo methodInfo, 2370in MethodInfo methodInfo, 2469static EscapeArgument getReceiver(in MethodInfo methodInfo, BoundExpression receiver) 2547in MethodInfo methodInfo, 2617in MethodInfo methodInfo, 2672in MethodInfo methodInfo, 2748in MethodInfo methodInfo, 2862in MethodInfo methodInfo, 2872MethodInfo localMethodInfo = ReplaceWithExtensionImplementationIfNeeded(methodInfo, ref parameters, ref receiverOpt, ref argsOpt, ref argRefKindsOpt, ref argsToParamsOpt); 2881bool checkInvocationArgMixingWithOldRules(SyntaxNode syntax, MethodInfo methodInfo, 2972in MethodInfo methodInfo, 3532MethodInfo.Create(call.Method), 3554MethodInfo.Create(methodSymbol), 3571MethodInfo.Create(indexerAccess), 3593MethodInfo.Create(indexerAccess), 3615MethodInfo.Create(call.Method), 3647MethodInfo.Create(equivalentSignatureMethod), 3663MethodInfo.Create(propertyAccess.PropertySymbol), 3850MethodInfo.Create(methodSymbol), 3876MethodInfo.Create(indexerAccess), 3907MethodInfo.Create(indexerAccess), 3933MethodInfo.Create(methodSymbol), 3969MethodInfo.Create(equivalentSignatureMethod), 3994MethodInfo.Create(signature), 4019MethodInfo.Create(propertySymbol), 4240MethodInfo.Create(call.Method), 4256MethodInfo.Create(ptrSymbol), 4272MethodInfo.Create(indexerAccess), 4294MethodInfo.Create(indexerAccess), 4310MethodInfo.Create(call.Method), 4333MethodInfo.Create(equivalentSignatureMethod), 4349MethodInfo.Create(propertyAccess.PropertySymbol), 4365MethodInfo.Create(constructorSymbol), 4410MethodInfo.Create(unaryMethod), 4446MethodInfo.Create(equivalentSignatureMethod), 4463MethodInfo.Create(operatorMethod), 4499MethodInfo.Create(compoundMethod), 4524MethodInfo.Create(binaryMethod), 4548MethodInfo.Create(uo.LogicalOperator), 4741var methodInfo = MethodInfo.Create(indexer, expr.AccessorKind); 4793var methodInfo = MethodInfo.Create(property, accessorKind); 4967MethodInfo.Create(methodSymbol), 4987MethodInfo.Create(ptrSymbol), 5007MethodInfo.Create(indexerAccess), 5033MethodInfo.Create(indexerAccess), 5055MethodInfo.Create(methodSymbol), 5082MethodInfo.Create(equivalentSignatureMethod), 5102MethodInfo.Create(propertyAccess.PropertySymbol), 5122MethodInfo.Create(constructorSymbol), 5189MethodInfo.Create(unaryMethod), 5236MethodInfo.Create(equivalentSignatureMethod), 5257MethodInfo.Create(operatorMethod), 5294MethodInfo.Create(compoundMethod), 5328MethodInfo.Create(binaryMethod), 5360MethodInfo.Create(uo.LogicalOperator),
Binder\RefSafetyAnalysis.cs (9)
558MethodInfo.Create(compoundMethod), 572MethodInfo.Create(compoundMethod), 721MethodInfo.Create(method), 819var methodInfo = MethodInfo.Create(constructor); 904MethodInfo.Create(node), 927MethodInfo.Create(method), 1028MethodInfo.Create(deconstructMethod), 1119MethodInfo.Create(equivalentSignatureMethod),