1 write to Method
ILLink.RoslynAnalyzer (1)
TrimAnalysis\MethodProxy.cs (1)
12
public MethodProxy(IMethodSymbol method) =>
Method
= method;
36 references to Method
ILLink.RoslynAnalyzer (36)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\MethodParameterValue.cs (1)
24
=> this.ValueToString(Parameter.Method.
Method
, Parameter.Index, DynamicallyAccessedMemberTypes);
TrimAnalysis\FlowAnnotations.cs (6)
163
if (!param.Method.
Method
.ContainingType.IsTypeInterestingForDataflow(isByRef: false))
165
return param.Method.
Method
.GetDynamicallyAccessedMemberTypes();
175
IMethodSymbol parameterMethod = param.Method.
Method
;
243
=> RequiresDataFlowAnalysis(method.
Method
);
246
=> new MethodReturnValue(method.
Method
, isNewObj, dynamicallyAccessedMemberTypes);
249
=> GetMethodReturnValue(method, isNewObj, GetMethodReturnValueAnnotation(method.
Method
));
TrimAnalysis\HandleCallAction.cs (7)
197
ITypeSymbol typeMapGroup = calledMethod.
Method
.TypeArguments[0];
253
if (!method.
Method
.IsConstructor())
255
var type = method.
Method
.ContainingType;
306
=> _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForMethod(_diagnosticContext.Location, method.
Method
);
313
if (method.
Method
.MethodKind == MethodKind.PropertyGet || method.
Method
.MethodKind == MethodKind.PropertySet)
315
var property = (IPropertySymbol)method.
Method
.AssociatedSymbol!;
TrimAnalysis\MethodParameterValue.cs (1)
24
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 HasGenericArgumentsCount(int genericArgumentCount) =>
Method
.TypeArguments.Length == genericArgumentCount;
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 (3)
23
return Method.
Method
.ContainingType.IsValueType
51
var method = Method.
Method
;
71
public TypeProxy ParameterType => new TypeProxy(ParameterSymbol?.Type ?? Method.
Method
.ContainingType);