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