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);
29 references to MethodInfo
Microsoft.CodeAnalysis.CSharp (29)
Binder\Binder.ValueChecks.cs (29)
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)
124public MethodInfo MethodInfo;
136MethodInfo = MethodInfo.Create(call.Method),
149MethodInfo = MethodInfo.Create(method),
164MethodInfo = MethodInfo.Create(methodSymbol),
178MethodInfo = MethodInfo.Create(indexerAccess),
193MethodInfo = MethodInfo.Create(objectCreation.Constructor),
209MethodInfo = MethodInfo.Create(unaryOperator.MethodOpt),
226MethodInfo = MethodInfo.Create(binaryOperatorMethod),
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),
2397MethodInfo replacedMethodInfo = methodInvocationInfo.MethodInfo.ReplaceWithExtensionImplementation(out bool wasError);
2733static EscapeArgument getReceiver(in MethodInfo methodInfo, BoundExpression receiver)
2869var methodInfo = localMethodInvocationInfo.MethodInfo;
4887var methodInfo = MethodInfo.Create(indexer, expr.AccessorKind);
4943var methodInfo = MethodInfo.Create(property, accessorKind);