1 write to Method
ILLink.RoslynAnalyzer (1)
TrimAnalysis\MethodProxy.cs (1)
12 public MethodProxy (IMethodSymbol method) => Method = method;
37 references to Method
ILLink.RoslynAnalyzer (37)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\MethodParameterValue.cs (1)
24 => this.ValueToString (Parameter.Method.Method, Parameter.Index, DynamicallyAccessedMemberTypes);
TrimAnalysis\FlowAnnotations.cs (5)
140 if (!param.Method.Method.ContainingType.IsTypeInterestingForDataflow (isByRef: false)) 142 return param.Method.Method.GetDynamicallyAccessedMemberTypes (); 212 => RequiresDataFlowAnalysis (method.Method); 215 => new MethodReturnValue (method.Method, isNewObj, dynamicallyAccessedMemberTypes); 218 => GetMethodReturnValue (method, isNewObj, GetMethodReturnValueAnnotation (method.Method));
TrimAnalysis\HandleCallAction.cs (6)
178 if (!method.Method.IsConstructor ()) 180 var type = method.Method.ContainingType; 229 => _reflectionAccessAnalyzer.GetReflectionAccessDiagnosticsForMethod (_diagnosticContext.Location, method.Method); 236 if (method.Method.MethodKind == MethodKind.PropertyGet || method.Method.MethodKind == MethodKind.PropertySet) { 237 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) { 49 internal partial bool IsConstructor () => Method.IsConstructor (); 51 internal partial bool IsStatic () => Method.IsStatic; 53 internal partial bool HasImplicitThis () => Method.HasImplicitThis (); 55 internal partial bool ReturnsVoid () => Method.ReturnType.SpecialType == SpecialType.System_Void; 65 public override string ToString () => Method.ToString ();
TrimAnalysis\ParameterProxy.cs (6)
21 return Method.Method.ContainingType.IsValueType 25 switch (Method.Method.Parameters[MetadataIndex].RefKind) { 31 Debug.Fail ($"Unexpected RefKind {Method.Method.Parameters[MetadataIndex].RefKind} found on parameter {GetDisplayName ()}"); 39 public IParameterSymbol? ParameterSymbol => IsImplicitThis ? null : Method.Method.Parameters[MetadataIndex]; 48 ? new TypeProxy (Method.Method.ContainingType) 49 : new TypeProxy (Method.Method.Parameters[MetadataIndex].Type);