diff options
Diffstat (limited to 'src/ext/Util/wixext/Symbols/GroupGroupSymbol.cs')
-rw-r--r-- | src/ext/Util/wixext/Symbols/GroupGroupSymbol.cs | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/ext/Util/wixext/Symbols/GroupGroupSymbol.cs b/src/ext/Util/wixext/Symbols/GroupGroupSymbol.cs new file mode 100644 index 00000000..fdd1ee76 --- /dev/null +++ b/src/ext/Util/wixext/Symbols/GroupGroupSymbol.cs | |||
@@ -0,0 +1,56 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
2 | |||
3 | namespace WixToolset.Util | ||
4 | { | ||
5 | using WixToolset.Data; | ||
6 | using WixToolset.Util.Symbols; | ||
7 | |||
8 | public static partial class UtilSymbolDefinitions | ||
9 | { | ||
10 | public static readonly IntermediateSymbolDefinition GroupGroup = new IntermediateSymbolDefinition( | ||
11 | UtilSymbolDefinitionType.GroupGroup.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(GroupGroupSymbol.SymbolFields.ParentGroupRef), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(GroupGroupSymbol.SymbolFields.ChildGroupRef), IntermediateFieldType.String), | ||
16 | }, | ||
17 | typeof(UserGroupSymbol)); | ||
18 | } | ||
19 | } | ||
20 | |||
21 | namespace WixToolset.Util.Symbols | ||
22 | { | ||
23 | using WixToolset.Data; | ||
24 | |||
25 | public class GroupGroupSymbol : IntermediateSymbol | ||
26 | { | ||
27 | public enum SymbolFields | ||
28 | { | ||
29 | ParentGroupRef, | ||
30 | ChildGroupRef, | ||
31 | } | ||
32 | |||
33 | public GroupGroupSymbol() : base(UtilSymbolDefinitions.GroupGroup, null, null) | ||
34 | { | ||
35 | } | ||
36 | |||
37 | public GroupGroupSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilSymbolDefinitions.GroupGroup, sourceLineNumber, id) | ||
38 | { | ||
39 | } | ||
40 | |||
41 | public IntermediateField this[GroupGroupSymbol.SymbolFields index] => this.Fields[(int)index]; | ||
42 | |||
43 | public string ParentGroupRef | ||
44 | { | ||
45 | get => this.Fields[(int)GroupGroupSymbol.SymbolFields.ParentGroupRef].AsString(); | ||
46 | set => this.Set((int)GroupGroupSymbol.SymbolFields.ParentGroupRef, value); | ||
47 | } | ||
48 | |||
49 | public string ChildGroupRef | ||
50 | { | ||
51 | get => this.Fields[(int)GroupGroupSymbol.SymbolFields.ChildGroupRef].AsString(); | ||
52 | set => this.Set((int)GroupGroupSymbol.SymbolFields.ChildGroupRef, value); | ||
53 | } | ||
54 | |||
55 | } | ||
56 | } | ||