Skip to content

Commit be1a4c8

Browse files
committed
[generator] Add additional AttributeTargets to our dummy SupportedOSPlatformAttribute.
1 parent 7dfbab6 commit be1a4c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/generator/Java.Interop.Tools.Generator.ObjectModel/NamespaceMapping.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public void Generate (CodeGenerationOptions opt, GenerationInfo gen_info)
4141
sw.WriteLine ("#if !NET");
4242
sw.WriteLine ("namespace System.Runtime.Versioning {");
4343
sw.WriteLine (" [System.Diagnostics.Conditional(\"NEVER\")]");
44-
sw.WriteLine (" [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Constructor | AttributeTargets.Event | AttributeTargets.Method | AttributeTargets.Module | AttributeTargets.Property | AttributeTargets.Struct, AllowMultiple = true, Inherited = false)]");
44+
sw.WriteLine (" [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Constructor | AttributeTargets.Enum | AttributeTargets.Event | AttributeTargets.Field | AttributeTargets.Interface | AttributeTargets.Method | AttributeTargets.Module | AttributeTargets.Property | AttributeTargets.Struct, AllowMultiple = true, Inherited = false)]");
4545
sw.WriteLine (" internal sealed class SupportedOSPlatformAttribute : Attribute {");
4646
sw.WriteLine (" public SupportedOSPlatformAttribute (string platformName) { }");
4747
sw.WriteLine (" }");

0 commit comments

Comments
 (0)