Skip to content

Commit

Permalink
[RGen] Add attributes to the accessor struct in the generator. (#22055)
Browse files Browse the repository at this point in the history
  • Loading branch information
mandel-macaque authored Jan 29, 2025
1 parent 208f61a commit a70bd3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ void GenerateCode (SourceProductionContext context, Compilation compilation,
var models = new (string Model, AttributeTargets[] Targets) [] {
("EnumMember", [AttributeTargets.Field]),
("Parameter", [AttributeTargets.Parameter]),
("Accessor", [AttributeTargets.Property]),
("Property", [AttributeTargets.Property]),
("Method", [AttributeTargets.Method]),
("Binding", [AttributeTargets.Interface, AttributeTargets.Class, AttributeTargets.Enum, AttributeTargets.Struct]),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ namespace Microsoft.Macios.Generator.DataModel;
readonly partial struct Accessor {

public ExportData? ExportPropertyData { get; init; }

public Accessor () { }
}

0 comments on commit a70bd3e

Please sign in to comment.