aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/DirectoryTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/WixToolset.Data/Tuples/DirectoryTuple.cs58
1 files changed, 29 insertions, 29 deletions
diff --git a/src/WixToolset.Data/Tuples/DirectoryTuple.cs b/src/WixToolset.Data/Tuples/DirectoryTuple.cs
index 51f559aa..209f5ca1 100644
--- a/src/WixToolset.Data/Tuples/DirectoryTuple.cs
+++ b/src/WixToolset.Data/Tuples/DirectoryTuple.cs
@@ -2,28 +2,28 @@
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 Directory = new IntermediateTupleDefinition( 9 public static readonly IntermediateSymbolDefinition Directory = new IntermediateSymbolDefinition(
10 TupleDefinitionType.Directory, 10 SymbolDefinitionType.Directory,
11 new[] 11 new[]
12 { 12 {
13 new IntermediateFieldDefinition(nameof(DirectoryTupleFields.ParentDirectoryRef), IntermediateFieldType.String), 13 new IntermediateFieldDefinition(nameof(DirectorySymbolFields.ParentDirectoryRef), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(DirectoryTupleFields.Name), IntermediateFieldType.String), 14 new IntermediateFieldDefinition(nameof(DirectorySymbolFields.Name), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(DirectoryTupleFields.ShortName), IntermediateFieldType.String), 15 new IntermediateFieldDefinition(nameof(DirectorySymbolFields.ShortName), IntermediateFieldType.String),
16 new IntermediateFieldDefinition(nameof(DirectoryTupleFields.SourceName), IntermediateFieldType.String), 16 new IntermediateFieldDefinition(nameof(DirectorySymbolFields.SourceName), IntermediateFieldType.String),
17 new IntermediateFieldDefinition(nameof(DirectoryTupleFields.SourceShortName), IntermediateFieldType.String), 17 new IntermediateFieldDefinition(nameof(DirectorySymbolFields.SourceShortName), IntermediateFieldType.String),
18 new IntermediateFieldDefinition(nameof(DirectoryTupleFields.ComponentGuidGenerationSeed), IntermediateFieldType.String), 18 new IntermediateFieldDefinition(nameof(DirectorySymbolFields.ComponentGuidGenerationSeed), IntermediateFieldType.String),
19 }, 19 },
20 typeof(DirectoryTuple)); 20 typeof(DirectorySymbol));
21 } 21 }
22} 22}
23 23
24namespace WixToolset.Data.Tuples 24namespace WixToolset.Data.Symbols
25{ 25{
26 public enum DirectoryTupleFields 26 public enum DirectorySymbolFields
27 { 27 {
28 ParentDirectoryRef, 28 ParentDirectoryRef,
29 Name, 29 Name,
@@ -33,52 +33,52 @@ namespace WixToolset.Data.Tuples
33 ComponentGuidGenerationSeed, 33 ComponentGuidGenerationSeed,
34 } 34 }
35 35
36 public class DirectoryTuple : IntermediateTuple 36 public class DirectorySymbol : IntermediateSymbol
37 { 37 {
38 public DirectoryTuple() : base(TupleDefinitions.Directory, null, null) 38 public DirectorySymbol() : base(SymbolDefinitions.Directory, null, null)
39 { 39 {
40 } 40 }
41 41
42 public DirectoryTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.Directory, sourceLineNumber, id) 42 public DirectorySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Directory, sourceLineNumber, id)
43 { 43 {
44 } 44 }
45 45
46 public IntermediateField this[DirectoryTupleFields index] => this.Fields[(int)index]; 46 public IntermediateField this[DirectorySymbolFields index] => this.Fields[(int)index];
47 47
48 public string ParentDirectoryRef 48 public string ParentDirectoryRef
49 { 49 {
50 get => (string)this.Fields[(int)DirectoryTupleFields.ParentDirectoryRef]; 50 get => (string)this.Fields[(int)DirectorySymbolFields.ParentDirectoryRef];
51 set => this.Set((int)DirectoryTupleFields.ParentDirectoryRef, value); 51 set => this.Set((int)DirectorySymbolFields.ParentDirectoryRef, value);
52 } 52 }
53 53
54 public string Name 54 public string Name
55 { 55 {
56 get => (string)this.Fields[(int)DirectoryTupleFields.Name]; 56 get => (string)this.Fields[(int)DirectorySymbolFields.Name];
57 set => this.Set((int)DirectoryTupleFields.Name, value); 57 set => this.Set((int)DirectorySymbolFields.Name, value);
58 } 58 }
59 59
60 public string ShortName 60 public string ShortName
61 { 61 {
62 get => (string)this.Fields[(int)DirectoryTupleFields.ShortName]; 62 get => (string)this.Fields[(int)DirectorySymbolFields.ShortName];
63 set => this.Set((int)DirectoryTupleFields.ShortName, value); 63 set => this.Set((int)DirectorySymbolFields.ShortName, value);
64 } 64 }
65 65
66 public string SourceName 66 public string SourceName
67 { 67 {
68 get => (string)this.Fields[(int)DirectoryTupleFields.SourceName]; 68 get => (string)this.Fields[(int)DirectorySymbolFields.SourceName];
69 set => this.Set((int)DirectoryTupleFields.SourceName, value); 69 set => this.Set((int)DirectorySymbolFields.SourceName, value);
70 } 70 }
71 71
72 public string SourceShortName 72 public string SourceShortName
73 { 73 {
74 get => (string)this.Fields[(int)DirectoryTupleFields.SourceShortName]; 74 get => (string)this.Fields[(int)DirectorySymbolFields.SourceShortName];
75 set => this.Set((int)DirectoryTupleFields.SourceShortName, value); 75 set => this.Set((int)DirectorySymbolFields.SourceShortName, value);
76 } 76 }
77 77
78 public string ComponentGuidGenerationSeed 78 public string ComponentGuidGenerationSeed
79 { 79 {
80 get => (string)this.Fields[(int)DirectoryTupleFields.ComponentGuidGenerationSeed]; 80 get => (string)this.Fields[(int)DirectorySymbolFields.ComponentGuidGenerationSeed];
81 set => this.Set((int)DirectoryTupleFields.ComponentGuidGenerationSeed, value); 81 set => this.Set((int)DirectorySymbolFields.ComponentGuidGenerationSeed, value);
82 } 82 }
83 } 83 }
84} 84}