6 instantiations of MethodInfo
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder.ValueChecks.cs (6)
65
return new
MethodInfo
(method, method, null);
70
return new
MethodInfo
(
79
AccessorKind.Get => new
MethodInfo
(property, property.GetOwnOrInheritedGetMethod(), setMethod: null),
80
AccessorKind.Set => new
MethodInfo
(property, property.GetOwnOrInheritedSetMethod(), setMethod: null),
81
AccessorKind.Both => new
MethodInfo
(property, property.GetOwnOrInheritedGetMethod(), property.GetOwnOrInheritedSetMethod()),
97
return 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"/>
63
internal static
MethodInfo
Create(MethodSymbol method)
68
internal static
MethodInfo
Create(PropertySymbol property)
76
internal static
MethodInfo
Create(PropertySymbol property, AccessorKind accessorKind) =>
85
internal static
MethodInfo
Create(BoundIndexerAccess expr) =>
88
internal
MethodInfo
ReplaceWithExtensionImplementation(out bool wasError)
1991
in
MethodInfo
methodInfo,
2006
MethodInfo
localMethodInfo = ReplaceWithExtensionImplementationIfNeeded(methodInfo, ref parameters, ref receiver, ref argsOpt, ref argRefKindsOpt, ref argsToParamsOpt);
2015
SafeContext getInvocationEscapeWithOldRules(
MethodInfo
methodInfo, ImmutableArray<ParameterSymbol> parameters, BoundExpression? receiver, ImmutableArray<BoundExpression> argsOpt, ImmutableArray<RefKind> argRefKindsOpt, ImmutableArray<int> argsToParamsOpt, SafeContext localScopeDepth, bool isRefEscape)
2087
in
MethodInfo
methodInfo,
2142
private static
MethodInfo
ReplaceWithExtensionImplementationIfNeeded(
MethodInfo
methodInfo, ref ImmutableArray<ParameterSymbol> parameters,
2152
MethodInfo
replacedMethodInfo = methodInfo.ReplaceWithExtensionImplementation(out bool wasError);
2196
in
MethodInfo
methodInfo,
2214
MethodInfo
localMethodInfo = ReplaceWithExtensionImplementationIfNeeded(methodInfo, ref parameters, ref receiver, ref argsOpt, ref argRefKindsOpt, ref argsToParamsOpt);
2223
bool checkInvocationEscapeWithOldRules(SyntaxNode syntax,
MethodInfo
methodInfo,
2300
in
MethodInfo
methodInfo,
2373
in
MethodInfo
methodInfo,
2472
static EscapeArgument getReceiver(in
MethodInfo
methodInfo, BoundExpression receiver)
2550
in
MethodInfo
methodInfo,
2620
in
MethodInfo
methodInfo,
2675
in
MethodInfo
methodInfo,
2751
in
MethodInfo
methodInfo,
2865
in
MethodInfo
methodInfo,
2875
MethodInfo
localMethodInfo = ReplaceWithExtensionImplementationIfNeeded(methodInfo, ref parameters, ref receiverOpt, ref argsOpt, ref argRefKindsOpt, ref argsToParamsOpt);
2884
bool checkInvocationArgMixingWithOldRules(SyntaxNode syntax,
MethodInfo
methodInfo,
2975
in
MethodInfo
methodInfo,
3535
MethodInfo
.Create(call.Method),
3557
MethodInfo
.Create(methodSymbol),
3574
MethodInfo
.Create(indexerAccess),
3596
MethodInfo
.Create(indexerAccess),
3618
MethodInfo
.Create(call.Method),
3650
MethodInfo
.Create(equivalentSignatureMethod),
3666
MethodInfo
.Create(propertyAccess.PropertySymbol),
3853
MethodInfo
.Create(methodSymbol),
3879
MethodInfo
.Create(indexerAccess),
3910
MethodInfo
.Create(indexerAccess),
3936
MethodInfo
.Create(methodSymbol),
3972
MethodInfo
.Create(equivalentSignatureMethod),
3997
MethodInfo
.Create(signature),
4022
MethodInfo
.Create(propertySymbol),
4243
MethodInfo
.Create(call.Method),
4259
MethodInfo
.Create(ptrSymbol),
4275
MethodInfo
.Create(indexerAccess),
4297
MethodInfo
.Create(indexerAccess),
4313
MethodInfo
.Create(call.Method),
4336
MethodInfo
.Create(equivalentSignatureMethod),
4352
MethodInfo
.Create(propertyAccess.PropertySymbol),
4368
MethodInfo
.Create(constructorSymbol),
4413
MethodInfo
.Create(unaryMethod),
4449
MethodInfo
.Create(equivalentSignatureMethod),
4466
MethodInfo
.Create(operatorMethod),
4502
MethodInfo
.Create(compoundMethod),
4527
MethodInfo
.Create(binaryMethod),
4551
MethodInfo
.Create(uo.LogicalOperator),
4744
var
methodInfo =
MethodInfo
.Create(indexer, expr.AccessorKind);
4796
var
methodInfo =
MethodInfo
.Create(property, accessorKind);
4970
MethodInfo
.Create(methodSymbol),
4990
MethodInfo
.Create(ptrSymbol),
5010
MethodInfo
.Create(indexerAccess),
5036
MethodInfo
.Create(indexerAccess),
5058
MethodInfo
.Create(methodSymbol),
5085
MethodInfo
.Create(equivalentSignatureMethod),
5105
MethodInfo
.Create(propertyAccess.PropertySymbol),
5125
MethodInfo
.Create(constructorSymbol),
5192
MethodInfo
.Create(unaryMethod),
5239
MethodInfo
.Create(equivalentSignatureMethod),
5260
MethodInfo
.Create(operatorMethod),
5297
MethodInfo
.Create(compoundMethod),
5331
MethodInfo
.Create(binaryMethod),
5363
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),