diff --git a/src/Parser/ParserEntry.bf b/src/Parser/ParserEntry.bf index c66c151..9899a6f 100644 --- a/src/Parser/ParserEntry.bf +++ b/src/Parser/ParserEntry.bf @@ -5,12 +5,5 @@ using System; struct ParserEntry { public bool IsBofaOrText = true; //True == Bofa, False == Text - public EntryUnion Data; - - [Union] - public struct EntryUnion - { - public Bofa Bofa; - public StringView Text; - } + public ParserEntryUnion Data; } \ No newline at end of file diff --git a/src/Parser/ParserEntryUnion.bf b/src/Parser/ParserEntryUnion.bf new file mode 100644 index 0000000..531f037 --- /dev/null +++ b/src/Parser/ParserEntryUnion.bf @@ -0,0 +1,10 @@ +namespace Bofa.Parser; + +using System; + +[Union] +struct ParserEntryUnion +{ + public Bofa Bofa; + public StringView Text; +} \ No newline at end of file