38 references to EnvironmentFlags
Microsoft.Interop.ComInterfaceGenerator (19)
ComInterfaceGeneratorHelpers.cs (7)
13private static readonly IMarshallingGeneratorResolver s_managedToUnmanagedDisabledMarshallingGeneratorResolver = CreateGeneratorResolver(EnvironmentFlags.DisableRuntimeMarshalling, MarshalDirection.ManagedToUnmanaged); 14private static readonly IMarshallingGeneratorResolver s_unmanagedToManagedDisabledMarshallingGeneratorResolver = CreateGeneratorResolver(EnvironmentFlags.DisableRuntimeMarshalling, MarshalDirection.UnmanagedToManaged); 15private static readonly IMarshallingGeneratorResolver s_managedToUnmanagedEnabledMarshallingGeneratorResolver = CreateGeneratorResolver(EnvironmentFlags.None, MarshalDirection.ManagedToUnmanaged); 16private static readonly IMarshallingGeneratorResolver s_unmanagedToManagedEnabledMarshallingGeneratorResolver = CreateGeneratorResolver(EnvironmentFlags.None, MarshalDirection.UnmanagedToManaged); 18private static IMarshallingGeneratorResolver CreateGeneratorResolver(EnvironmentFlags env, MarshalDirection direction) 26public static IMarshallingGeneratorResolver GetGeneratorResolver(EnvironmentFlags env, MarshalDirection direction) 27=> (env.HasFlag(EnvironmentFlags.DisableRuntimeMarshalling), direction) switch
IncrementalMethodStubGenerationContext.cs (1)
20EnvironmentFlags EnvironmentFlags,
VirtualMethodPointerStubGenerator.cs (4)
25Func<EnvironmentFlags, MarshalDirection, IMarshallingGeneratorResolver> generatorResolverCreator) 132Func<EnvironmentFlags, MarshalDirection, IMarshallingGeneratorResolver> generatorResolverCreator) 237Func<EnvironmentFlags, MarshalDirection, IMarshallingGeneratorResolver> generatorResolverCreator) 262Func<EnvironmentFlags, MarshalDirection, IMarshallingGeneratorResolver> generatorResolverCreator)
VtableIndexStubGeneratorHelpers.cs (7)
13private static readonly IMarshallingGeneratorResolver s_managedToUnmanagedDisabledMarshallingGeneratorResolver = CreateGeneratorResolver(EnvironmentFlags.DisableRuntimeMarshalling, MarshalDirection.ManagedToUnmanaged); 14private static readonly IMarshallingGeneratorResolver s_unmanagedToManagedDisabledMarshallingGeneratorResolver = CreateGeneratorResolver(EnvironmentFlags.DisableRuntimeMarshalling, MarshalDirection.UnmanagedToManaged); 15private static readonly IMarshallingGeneratorResolver s_managedToUnmanagedEnabledMarshallingGeneratorResolver = CreateGeneratorResolver(EnvironmentFlags.None, MarshalDirection.ManagedToUnmanaged); 16private static readonly IMarshallingGeneratorResolver s_unmanagedToManagedEnabledMarshallingGeneratorResolver = CreateGeneratorResolver(EnvironmentFlags.None, MarshalDirection.UnmanagedToManaged); 18private static IMarshallingGeneratorResolver CreateGeneratorResolver(EnvironmentFlags env, MarshalDirection direction) 24public static IMarshallingGeneratorResolver GetGeneratorResolver(EnvironmentFlags env, MarshalDirection direction) 25=> (env.HasFlag(EnvironmentFlags.DisableRuntimeMarshalling), direction) switch
Microsoft.Interop.LibraryImportGenerator (1)
LibraryImportGenerator.cs (1)
31EnvironmentFlags EnvironmentFlags,
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelLibraryImportGenerator.cs (1)
30EnvironmentFlags EnvironmentFlags,
Microsoft.Interop.SourceGeneration (17)
CompilationExtensions.cs (5)
14public static EnvironmentFlags GetEnvironmentFlags(this Compilation compilation) 16EnvironmentFlags flags = EnvironmentFlags.None; 19flags |= EnvironmentFlags.SkipLocalsInit; 23flags |= EnvironmentFlags.DisableRuntimeMarshalling;
IncrementalGeneratorInitializationContextExtensions.cs (5)
17public static IncrementalValueProvider<EnvironmentFlags> CreateEnvironmentFlagsProvider(this IncrementalGeneratorInitializationContext context) 28.Select((topLevelAttrs, ct) => !topLevelAttrs.IsEmpty ? EnvironmentFlags.SkipLocalsInit : EnvironmentFlags.None); 40.Select((topLevelAttrs, ct) => !topLevelAttrs.IsEmpty ? EnvironmentFlags.DisableRuntimeMarshalling : EnvironmentFlags.None);
Marshalling\DefaultMarshallingGeneratorResolver.cs (5)
22EnvironmentFlags env, 30new BlittableMarshallerResolver(env.HasFlag(EnvironmentFlags.DisableRuntimeMarshalling)), 48env.HasFlag(EnvironmentFlags.DisableRuntimeMarshalling), 62env.HasFlag(EnvironmentFlags.DisableRuntimeMarshalling), 75new CharMarshallingGeneratorResolver(useBlittableMarshallerForUtf16: env.HasFlag(EnvironmentFlags.DisableRuntimeMarshalling), stringMarshallingAttribute),
SignatureContext.cs (1)
151if (env.EnvironmentFlags.HasFlag(EnvironmentFlags.SkipLocalsInit))
StubEnvironment.cs (1)
19EnvironmentFlags EnvironmentFlags)