6 instantiations of MethodInfo
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder.ValueChecks.cs (6)
66
return new
MethodInfo
(method, method, null);
71
return new
MethodInfo
(
80
AccessorKind.Get => new
MethodInfo
(property, property.GetOwnOrInheritedGetMethod(), setMethod: null),
81
AccessorKind.Set => new
MethodInfo
(property, property.GetOwnOrInheritedSetMethod(), setMethod: null),
82
AccessorKind.Both => new
MethodInfo
(property, property.GetOwnOrInheritedGetMethod(), property.GetOwnOrInheritedSetMethod()),
98
return 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"/>
64
internal static
MethodInfo
Create(MethodSymbol method)
69
internal static
MethodInfo
Create(PropertySymbol property)
77
internal static
MethodInfo
Create(PropertySymbol property, AccessorKind accessorKind) =>
86
internal static
MethodInfo
Create(BoundIndexerAccess expr) =>
89
internal
MethodInfo
ReplaceWithExtensionImplementation(out bool wasError)
1992
in
MethodInfo
methodInfo,
2007
MethodInfo
localMethodInfo = ReplaceWithExtensionImplementationIfNeeded(methodInfo, ref parameters, ref receiver, ref argsOpt, ref argRefKindsOpt, ref argsToParamsOpt);
2016
SafeContext getInvocationEscapeWithOldRules(
MethodInfo
methodInfo, ImmutableArray<ParameterSymbol> parameters, BoundExpression? receiver, ImmutableArray<BoundExpression> argsOpt, ImmutableArray<RefKind> argRefKindsOpt, ImmutableArray<int> argsToParamsOpt, SafeContext localScopeDepth, bool isRefEscape)
2088
in
MethodInfo
methodInfo,
2143
private static
MethodInfo
ReplaceWithExtensionImplementationIfNeeded(
MethodInfo
methodInfo, ref ImmutableArray<ParameterSymbol> parameters,
2153
MethodInfo
replacedMethodInfo = methodInfo.ReplaceWithExtensionImplementation(out bool wasError);
2197
in
MethodInfo
methodInfo,
2215
MethodInfo
localMethodInfo = ReplaceWithExtensionImplementationIfNeeded(methodInfo, ref parameters, ref receiver, ref argsOpt, ref argRefKindsOpt, ref argsToParamsOpt);
2224
bool checkInvocationEscapeWithOldRules(SyntaxNode syntax,
MethodInfo
methodInfo,
2301
in
MethodInfo
methodInfo,
2374
in
MethodInfo
methodInfo,
2473
static EscapeArgument getReceiver(in
MethodInfo
methodInfo, BoundExpression receiver)
2551
in
MethodInfo
methodInfo,
2621
in
MethodInfo
methodInfo,
2676
in
MethodInfo
methodInfo,
2752
in
MethodInfo
methodInfo,
2866
in
MethodInfo
methodInfo,
2876
MethodInfo
localMethodInfo = ReplaceWithExtensionImplementationIfNeeded(methodInfo, ref parameters, ref receiverOpt, ref argsOpt, ref argRefKindsOpt, ref argsToParamsOpt);
2885
bool checkInvocationArgMixingWithOldRules(SyntaxNode syntax,
MethodInfo
methodInfo,
2976
in
MethodInfo
methodInfo,
3536
MethodInfo
.Create(call.Method),
3558
MethodInfo
.Create(methodSymbol),
3575
MethodInfo
.Create(indexerAccess),
3597
MethodInfo
.Create(indexerAccess),
3619
MethodInfo
.Create(call.Method),
3651
MethodInfo
.Create(equivalentSignatureMethod),
3667
MethodInfo
.Create(propertyAccess.PropertySymbol),
3854
MethodInfo
.Create(methodSymbol),
3880
MethodInfo
.Create(indexerAccess),
3911
MethodInfo
.Create(indexerAccess),
3937
MethodInfo
.Create(methodSymbol),
3973
MethodInfo
.Create(equivalentSignatureMethod),
3998
MethodInfo
.Create(signature),
4023
MethodInfo
.Create(propertySymbol),
4244
MethodInfo
.Create(call.Method),
4260
MethodInfo
.Create(ptrSymbol),
4276
MethodInfo
.Create(indexerAccess),
4298
MethodInfo
.Create(indexerAccess),
4314
MethodInfo
.Create(call.Method),
4337
MethodInfo
.Create(equivalentSignatureMethod),
4353
MethodInfo
.Create(propertyAccess.PropertySymbol),
4369
MethodInfo
.Create(constructorSymbol),
4414
MethodInfo
.Create(unaryMethod),
4450
MethodInfo
.Create(equivalentSignatureMethod),
4467
MethodInfo
.Create(operatorMethod),
4503
MethodInfo
.Create(compoundMethod),
4528
MethodInfo
.Create(binaryMethod),
4552
MethodInfo
.Create(uo.LogicalOperator),
4745
var
methodInfo =
MethodInfo
.Create(indexer, expr.AccessorKind);
4797
var
methodInfo =
MethodInfo
.Create(property, accessorKind);
4971
MethodInfo
.Create(methodSymbol),
4991
MethodInfo
.Create(ptrSymbol),
5011
MethodInfo
.Create(indexerAccess),
5037
MethodInfo
.Create(indexerAccess),
5059
MethodInfo
.Create(methodSymbol),
5086
MethodInfo
.Create(equivalentSignatureMethod),
5106
MethodInfo
.Create(propertyAccess.PropertySymbol),
5126
MethodInfo
.Create(constructorSymbol),
5193
MethodInfo
.Create(unaryMethod),
5240
MethodInfo
.Create(equivalentSignatureMethod),
5261
MethodInfo
.Create(operatorMethod),
5298
MethodInfo
.Create(compoundMethod),
5332
MethodInfo
.Create(binaryMethod),
5364
MethodInfo
.Create(uo.LogicalOperator),
Binder\RefSafetyAnalysis.cs (9)
558
MethodInfo
.Create(compoundMethod),
572
MethodInfo
.Create(compoundMethod),
725
MethodInfo
.Create(method),
823
var
methodInfo =
MethodInfo
.Create(constructor);
908
MethodInfo
.Create(node),
931
MethodInfo
.Create(method),
1032
MethodInfo
.Create(deconstructMethod),
1123
MethodInfo
.Create(equivalentSignatureMethod),