1 write to Method
ILLink.RoslynAnalyzer (1)
TrimAnalysis\MethodProxy.cs (1)
12
public MethodProxy(IMethodSymbol method) =>
Method
= method;
38 references to Method
ILLink.RoslynAnalyzer (38)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\MethodParameterValue.cs (1)
24
=> this.ValueToString(Parameter.Method.
Method
, Parameter.Index, DynamicallyAccessedMemberTypes);
TrimAnalysis\FlowAnnotations.cs (5)
148
if (!param.Method.
Method
.ContainingType.IsTypeInterestingForDataflow(isByRef: false))
150
return param.Method.
Method
.GetDynamicallyAccessedMemberTypes();
224
=> RequiresDataFlowAnalysis(method.
Method
);
227
=> new MethodReturnValue(method.
Method
, isNewObj, dynamicallyAccessedMemberTypes);
230
=> GetMethodReturnValue(method, isNewObj, GetMethodReturnValueAnnotation(method.
Method
));
TrimAnalysis\HandleCallAction.cs (7)
196
ITypeSymbol typeMapGroup = calledMethod.
Method
.TypeArguments[0];
252
if (!method.
Method
.IsConstructor())
254
var type = method.
Method
.ContainingType;
305
=> _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForMethod(_diagnosticContext.Location, method.
Method
);
312
if (method.
Method
.MethodKind == MethodKind.PropertyGet || method.
Method
.MethodKind == MethodKind.PropertySet)
314
var property = (IPropertySymbol)method.
Method
.AssociatedSymbol!;
TrimAnalysis\MethodParameterValue.cs (1)
29
public IMethodSymbol MethodSymbol => Parameter.Method.
Method
;
TrimAnalysis\MethodProxy.cs (18)
16
public string Name { get =>
Method
.Name; }
18
public string GetDisplayName() =>
Method
.GetDisplayName();
20
internal partial bool IsDeclaredOnType(string fullTypeName) => IsTypeOf(
Method
.ContainingType, fullTypeName);
22
internal partial bool HasMetadataParameters() =>
Method
.Parameters.Length > 0;
24
internal partial int GetMetadataParametersCount() =>
Method
.GetMetadataParametersCount();
26
internal partial int GetParametersCount() =>
Method
.GetParametersCount();
28
internal partial ParameterProxyEnumerable GetParameters() =>
Method
.GetParameters();
30
internal partial ParameterProxy GetParameter(ParameterIndex index) =>
Method
.GetParameter(index);
32
internal partial bool HasGenericParameters() =>
Method
.IsGenericMethod;
34
internal partial bool HasGenericParametersCount(int genericParameterCount) =>
Method
.TypeParameters.Length == genericParameterCount;
38
if (
Method
.TypeParameters.IsEmpty)
41
var builder = ImmutableArray.CreateBuilder<GenericParameterProxy>(
Method
.TypeParameters.Length);
42
foreach (var typeParameter in
Method
.TypeParameters)
50
internal partial bool IsConstructor() =>
Method
.IsConstructor();
52
internal partial bool IsStatic() =>
Method
.IsStatic;
54
internal partial bool HasImplicitThis() =>
Method
.HasImplicitThis();
56
internal partial bool ReturnsVoid() =>
Method
.ReturnType.SpecialType == SpecialType.System_Void;
66
public override string ToString() =>
Method
.ToString();
TrimAnalysis\ParameterProxy.cs (6)
21
return Method.
Method
.ContainingType.IsValueType
25
switch (Method.
Method
.Parameters[MetadataIndex].RefKind)
32
Debug.Fail($"Unexpected RefKind {Method.
Method
.Parameters[MetadataIndex].RefKind} found on parameter {GetDisplayName()}");
40
public IParameterSymbol? ParameterSymbol => IsImplicitThis ? null : Method.
Method
.Parameters[MetadataIndex];
49
? new TypeProxy(Method.
Method
.ContainingType)
50
: new TypeProxy(Method.
Method
.Parameters[MetadataIndex].Type);