Linker.Dataflow\DynamicallyAccessedMembersBinder.cs (10)
18 public static IEnumerable<IMetadataTokenProvider> GetDynamicallyAccessedMembers (this TypeDefinition typeDefinition, LinkContext context, DynamicallyAccessedMemberTypes memberTypes, bool declaredOnly = false)
147 public static IEnumerable<MethodDefinition> GetMethodsOnTypeHierarchy (this TypeReference thisType, LinkContext context, Func<MethodDefinition, bool>? filter, BindingFlags? bindingFlags = null)
191 public static IEnumerable<FieldDefinition> GetFieldsOnTypeHierarchy (this TypeDefinition thisType, LinkContext context, Func<FieldDefinition, bool>? filter, BindingFlags? bindingFlags = BindingFlags.Default)
231 public static IEnumerable<TypeDefinition> GetNestedTypesOnType (this TypeReference typeRef, LinkContext context, Func<TypeDefinition, bool>? filter, BindingFlags? bindingFlags = BindingFlags.Default)
254 public static IEnumerable<PropertyDefinition> GetPropertiesOnTypeHierarchy (this TypeDefinition thisType, LinkContext context, Func<PropertyDefinition, bool>? filter, BindingFlags? bindingFlags = BindingFlags.Default)
303 public static IEnumerable<EventDefinition> GetEventsOnTypeHierarchy (this TypeDefinition thisType, LinkContext context, Func<EventDefinition, bool>? filter, BindingFlags? bindingFlags = BindingFlags.Default)
354 public static IEnumerable<InterfaceImplementation> GetAllInterfaceImplementations (this TypeDefinition thisType, LinkContext context, bool declaredOnly)
378 public static void GetAllOnType (this TypeDefinition type, LinkContext context, bool declaredOnly, List<IMetadataTokenProvider> members) => GetAllOnType (type, context, declaredOnly, members, new HashSet<TypeDefinition> ());
380 static void GetAllOnType (TypeDefinition type, LinkContext context, bool declaredOnly, List<IMetadataTokenProvider> members, HashSet<TypeDefinition> types)
435 private static IEnumerable<T> ApplyIncludeInherited<T> (this TypeDefinition thisType, LinkContext context, Func<TypeDefinition, IEnumerable<T>> selector, bool includeBases)
Linker.Dataflow\ReflectionMethodBodyScanner.cs (7)
26 public static bool RequiresReflectionMethodBodyScannerForCallSite (LinkContext context, MethodReference calledMethod)
38 public static bool RequiresReflectionMethodBodyScannerForMethodBody (LinkContext context, MethodDefinition methodDefinition)
44 public static bool RequiresReflectionMethodBodyScannerForAccess (LinkContext context, FieldReference field)
53 public ReflectionMethodBodyScanner (LinkContext context, MarkStep parent, MessageOrigin origin)
167 LinkContext context,
191 static bool IsComInterop (IMarshalInfoProvider marshalInfoProvider, TypeReference parameterType, LinkContext context)
249 internal static bool IsPInvokeDangerous (MethodDefinition methodDefinition, LinkContext context, out bool comDangerousMethod)
Linker\BannedApiExtensions.cs (11)
15 public static Collection<Instruction> Instructions (this MethodBody body, LinkContext context)
18 public static Collection<ExceptionHandler> ExceptionHandlers (this MethodBody body, LinkContext context)
21 public static Collection<VariableDefinition> Variables (this MethodBody body, LinkContext context)
24 public static MethodIL GetMethodIL (this MethodDefinition method, LinkContext context)
27 public static MethodIL GetMethodIL (this MethodBody body, LinkContext context)
30 public static MethodDefinition? Resolve (this MethodReference method, LinkContext context)
33 public static MethodDefinition? TryResolve (this MethodReference method, LinkContext context)
36 public static TypeDefinition? Resolve (this TypeReference type, LinkContext context)
39 public static TypeDefinition? TryResolve (this TypeReference type, LinkContext context)
42 public static TypeDefinition? Resolve (this ExportedType type, LinkContext context)
45 public static TypeDefinition? TryResolve (this ExportedType type, LinkContext context)
Linker\EmbeddedXmlInfo.cs (7)
25 public void ProcessDescriptors (AssemblyDefinition assembly, LinkContext context)
46 public SubstitutionInfo? ProcessSubstitutions (AssemblyDefinition assembly, LinkContext context)
71 public AttributeInfo? ProcessAttributes (AssemblyDefinition assembly, LinkContext context)
105 static bool ShouldProcessRootDescriptorResource (AssemblyDefinition assembly, LinkContext context, string resourceName)
124 protected virtual DescriptorMarker GetExternalResolveStep (LinkContext context, EmbeddedResource resource, AssemblyDefinition assembly)
129 protected virtual BodySubstitutionParser GetExternalSubstitutionParser (LinkContext context, EmbeddedResource resource, AssemblyDefinition assembly)
134 protected virtual LinkAttributesParser GetExternalLinkAttributesParser (LinkContext context, EmbeddedResource resource, AssemblyDefinition assembly)
Linker\MessageContainer.cs (6)
108 internal static MessageContainer CreateWarningMessage (LinkContext context, string text, int code, MessageOrigin origin, WarnVersion version, string subcategory = MessageSubCategory.None)
127 internal static MessageContainer CreateWarningMessage (LinkContext context, MessageOrigin origin, DiagnosticId id, WarnVersion version, params string[] args)
147 public static MessageContainer CreateCustomWarningMessage (LinkContext context, string text, int code, MessageOrigin origin, WarnVersion version, string subcategory = MessageSubCategory.None)
160 private static MessageContainer CreateWarningMessageContainer (LinkContext context, string text, int code, MessageOrigin origin, WarnVersion version, string subcategory = MessageSubCategory.None)
180 private static MessageContainer CreateWarningMessageContainer (LinkContext context, MessageOrigin origin, DiagnosticId id, WarnVersion version, string subcategory, params string[] args)
213 static bool TryLogSingleWarning (LinkContext context, int code, MessageOrigin origin, string subcategory)