aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/RegLocatorTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/WixToolset.Data/Tuples/RegLocatorTuple.cs52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/WixToolset.Data/Tuples/RegLocatorTuple.cs b/src/WixToolset.Data/Tuples/RegLocatorTuple.cs
index 8f358051..bf50dab7 100644
--- a/src/WixToolset.Data/Tuples/RegLocatorTuple.cs
+++ b/src/WixToolset.Data/Tuples/RegLocatorTuple.cs
@@ -2,27 +2,27 @@
2 2
3namespace WixToolset.Data 3namespace WixToolset.Data
4{ 4{
5 using WixToolset.Data.Tuples; 5 using WixToolset.Data.Symbols;
6 6
7 public static partial class TupleDefinitions 7 public static partial class SymbolDefinitions
8 { 8 {
9 public static readonly IntermediateTupleDefinition RegLocator = new IntermediateTupleDefinition( 9 public static readonly IntermediateSymbolDefinition RegLocator = new IntermediateSymbolDefinition(
10 TupleDefinitionType.RegLocator, 10 SymbolDefinitionType.RegLocator,
11 new[] 11 new[]
12 { 12 {
13 new IntermediateFieldDefinition(nameof(RegLocatorTupleFields.Root), IntermediateFieldType.Number), 13 new IntermediateFieldDefinition(nameof(RegLocatorSymbolFields.Root), IntermediateFieldType.Number),
14 new IntermediateFieldDefinition(nameof(RegLocatorTupleFields.Key), IntermediateFieldType.String), 14 new IntermediateFieldDefinition(nameof(RegLocatorSymbolFields.Key), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(RegLocatorTupleFields.Name), IntermediateFieldType.String), 15 new IntermediateFieldDefinition(nameof(RegLocatorSymbolFields.Name), IntermediateFieldType.String),
16 new IntermediateFieldDefinition(nameof(RegLocatorTupleFields.Type), IntermediateFieldType.Number), 16 new IntermediateFieldDefinition(nameof(RegLocatorSymbolFields.Type), IntermediateFieldType.Number),
17 new IntermediateFieldDefinition(nameof(RegLocatorTupleFields.Win64), IntermediateFieldType.Bool), 17 new IntermediateFieldDefinition(nameof(RegLocatorSymbolFields.Win64), IntermediateFieldType.Bool),
18 }, 18 },
19 typeof(RegLocatorTuple)); 19 typeof(RegLocatorSymbol));
20 } 20 }
21} 21}
22 22
23namespace WixToolset.Data.Tuples 23namespace WixToolset.Data.Symbols
24{ 24{
25 public enum RegLocatorTupleFields 25 public enum RegLocatorSymbolFields
26 { 26 {
27 Root, 27 Root,
28 Key, 28 Key,
@@ -38,46 +38,46 @@ namespace WixToolset.Data.Tuples
38 Raw 38 Raw
39 }; 39 };
40 40
41 public class RegLocatorTuple : IntermediateTuple 41 public class RegLocatorSymbol : IntermediateSymbol
42 { 42 {
43 public RegLocatorTuple() : base(TupleDefinitions.RegLocator, null, null) 43 public RegLocatorSymbol() : base(SymbolDefinitions.RegLocator, null, null)
44 { 44 {
45 } 45 }
46 46
47 public RegLocatorTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.RegLocator, sourceLineNumber, id) 47 public RegLocatorSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.RegLocator, sourceLineNumber, id)
48 { 48 {
49 } 49 }
50 50
51 public IntermediateField this[RegLocatorTupleFields index] => this.Fields[(int)index]; 51 public IntermediateField this[RegLocatorSymbolFields index] => this.Fields[(int)index];
52 52
53 public RegistryRootType Root 53 public RegistryRootType Root
54 { 54 {
55 get => (RegistryRootType)this.Fields[(int)RegLocatorTupleFields.Root].AsNumber(); 55 get => (RegistryRootType)this.Fields[(int)RegLocatorSymbolFields.Root].AsNumber();
56 set => this.Set((int)RegLocatorTupleFields.Root, (int)value); 56 set => this.Set((int)RegLocatorSymbolFields.Root, (int)value);
57 } 57 }
58 58
59 public string Key 59 public string Key
60 { 60 {
61 get => (string)this.Fields[(int)RegLocatorTupleFields.Key]; 61 get => (string)this.Fields[(int)RegLocatorSymbolFields.Key];
62 set => this.Set((int)RegLocatorTupleFields.Key, value); 62 set => this.Set((int)RegLocatorSymbolFields.Key, value);
63 } 63 }
64 64
65 public string Name 65 public string Name
66 { 66 {
67 get => (string)this.Fields[(int)RegLocatorTupleFields.Name]; 67 get => (string)this.Fields[(int)RegLocatorSymbolFields.Name];
68 set => this.Set((int)RegLocatorTupleFields.Name, value); 68 set => this.Set((int)RegLocatorSymbolFields.Name, value);
69 } 69 }
70 70
71 public RegLocatorType Type 71 public RegLocatorType Type
72 { 72 {
73 get => (RegLocatorType)this.Fields[(int)RegLocatorTupleFields.Type].AsNumber(); 73 get => (RegLocatorType)this.Fields[(int)RegLocatorSymbolFields.Type].AsNumber();
74 set => this.Set((int)RegLocatorTupleFields.Type, (int)value); 74 set => this.Set((int)RegLocatorSymbolFields.Type, (int)value);
75 } 75 }
76 76
77 public bool Win64 77 public bool Win64
78 { 78 {
79 get => this.Fields[(int)RegLocatorTupleFields.Win64].AsBool(); 79 get => this.Fields[(int)RegLocatorSymbolFields.Win64].AsBool();
80 set => this.Set((int)RegLocatorTupleFields.Win64, value); 80 set => this.Set((int)RegLocatorSymbolFields.Win64, value);
81 } 81 }
82 } 82 }
83} 83}