Skip to content

Commit

Permalink
resolve hashOf union access deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
Herringway committed Jan 16, 2025
1 parent 3a5a2c5 commit 452f09e
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions source/dyaml/event.d
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,12 @@ struct Event
Mark startMark;
///End position of the event in file/stream.
Mark endMark;
union
{
struct
{
///Anchor of the event, if any.
string _anchor;
///Tag of the event, if any.
string _tag;
}
///Tag directives, if this is a DocumentStart.
//TagDirectives tagDirectives;
TagDirective[] _tagDirectives;
}
///Anchor of the event, if any.
string _anchor;
///Tag of the event, if any.
string _tag;
///Tag directives, if this is a DocumentStart.
TagDirective[] _tagDirectives;
///Event type.
EventID id = EventID.invalid;
///Style of scalar event, if this is a scalar event.
Expand Down

0 comments on commit 452f09e

Please sign in to comment.