aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/AssemblyTuple.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2020-06-24 14:05:08 -0700
committerRob Mensching <rob@firegiant.com>2020-06-25 12:48:19 -0700
commit9787570331b511bab73ac8f4f38a3b8cfa053ca5 (patch)
tree508155e2cf4f6bafeef2be1059da547291025352 /src/WixToolset.Data/Tuples/AssemblyTuple.cs
parent2bcc21d5c2d27e578f59f905f6acd0979b78aa9d (diff)
downloadwix-9787570331b511bab73ac8f4f38a3b8cfa053ca5.tar.gz
wix-9787570331b511bab73ac8f4f38a3b8cfa053ca5.tar.bz2
wix-9787570331b511bab73ac8f4f38a3b8cfa053ca5.zip
The Great Tuple to Symbol Rename (tm)
Diffstat (limited to 'src/WixToolset.Data/Tuples/AssemblyTuple.cs')
-rw-r--r--src/WixToolset.Data/Tuples/AssemblyTuple.cs58
1 files changed, 29 insertions, 29 deletions
diff --git a/src/WixToolset.Data/Tuples/AssemblyTuple.cs b/src/WixToolset.Data/Tuples/AssemblyTuple.cs
index d1e5e1ce..192ca4eb 100644
--- a/src/WixToolset.Data/Tuples/AssemblyTuple.cs
+++ b/src/WixToolset.Data/Tuples/AssemblyTuple.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 Assembly = new IntermediateTupleDefinition( 9 public static readonly IntermediateSymbolDefinition Assembly = new IntermediateSymbolDefinition(
10 TupleDefinitionType.Assembly, 10 SymbolDefinitionType.Assembly,
11 new[] 11 new[]
12 { 12 {
13 new IntermediateFieldDefinition(nameof(AssemblyTupleFields.ComponentRef), IntermediateFieldType.String), 13 new IntermediateFieldDefinition(nameof(AssemblySymbolFields.ComponentRef), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(AssemblyTupleFields.FeatureRef), IntermediateFieldType.String), 14 new IntermediateFieldDefinition(nameof(AssemblySymbolFields.FeatureRef), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(AssemblyTupleFields.ManifestFileRef), IntermediateFieldType.String), 15 new IntermediateFieldDefinition(nameof(AssemblySymbolFields.ManifestFileRef), IntermediateFieldType.String),
16 new IntermediateFieldDefinition(nameof(AssemblyTupleFields.ApplicationFileRef), IntermediateFieldType.String), 16 new IntermediateFieldDefinition(nameof(AssemblySymbolFields.ApplicationFileRef), IntermediateFieldType.String),
17 new IntermediateFieldDefinition(nameof(AssemblyTupleFields.Type), IntermediateFieldType.Number), 17 new IntermediateFieldDefinition(nameof(AssemblySymbolFields.Type), IntermediateFieldType.Number),
18 new IntermediateFieldDefinition(nameof(AssemblyTupleFields.ProcessorArchitecture), IntermediateFieldType.String), 18 new IntermediateFieldDefinition(nameof(AssemblySymbolFields.ProcessorArchitecture), IntermediateFieldType.String),
19 }, 19 },
20 typeof(AssemblyTuple)); 20 typeof(AssemblySymbol));
21 } 21 }
22} 22}
23 23
24namespace WixToolset.Data.Tuples 24namespace WixToolset.Data.Symbols
25{ 25{
26 public enum AssemblyTupleFields 26 public enum AssemblySymbolFields
27 { 27 {
28 ComponentRef, 28 ComponentRef,
29 FeatureRef, 29 FeatureRef,
@@ -45,52 +45,52 @@ namespace WixToolset.Data.Tuples
45 Win32Assembly, 45 Win32Assembly,
46 } 46 }
47 47
48 public class AssemblyTuple : IntermediateTuple 48 public class AssemblySymbol : IntermediateSymbol
49 { 49 {
50 public AssemblyTuple() : base(TupleDefinitions.Assembly, null, null) 50 public AssemblySymbol() : base(SymbolDefinitions.Assembly, null, null)
51 { 51 {
52 } 52 }
53 53
54 public AssemblyTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.Assembly, sourceLineNumber, id) 54 public AssemblySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Assembly, sourceLineNumber, id)
55 { 55 {
56 } 56 }
57 57
58 public IntermediateField this[AssemblyTupleFields index] => this.Fields[(int)index]; 58 public IntermediateField this[AssemblySymbolFields index] => this.Fields[(int)index];
59 59
60 public string ComponentRef 60 public string ComponentRef
61 { 61 {
62 get => (string)this.Fields[(int)AssemblyTupleFields.ComponentRef]; 62 get => (string)this.Fields[(int)AssemblySymbolFields.ComponentRef];
63 set => this.Set((int)AssemblyTupleFields.ComponentRef, value); 63 set => this.Set((int)AssemblySymbolFields.ComponentRef, value);
64 } 64 }
65 65
66 public string FeatureRef 66 public string FeatureRef
67 { 67 {
68 get => (string)this.Fields[(int)AssemblyTupleFields.FeatureRef]; 68 get => (string)this.Fields[(int)AssemblySymbolFields.FeatureRef];
69 set => this.Set((int)AssemblyTupleFields.FeatureRef, value); 69 set => this.Set((int)AssemblySymbolFields.FeatureRef, value);
70 } 70 }
71 71
72 public string ManifestFileRef 72 public string ManifestFileRef
73 { 73 {
74 get => (string)this.Fields[(int)AssemblyTupleFields.ManifestFileRef]; 74 get => (string)this.Fields[(int)AssemblySymbolFields.ManifestFileRef];
75 set => this.Set((int)AssemblyTupleFields.ManifestFileRef, value); 75 set => this.Set((int)AssemblySymbolFields.ManifestFileRef, value);
76 } 76 }
77 77
78 public string ApplicationFileRef 78 public string ApplicationFileRef
79 { 79 {
80 get => (string)this.Fields[(int)AssemblyTupleFields.ApplicationFileRef]; 80 get => (string)this.Fields[(int)AssemblySymbolFields.ApplicationFileRef];
81 set => this.Set((int)AssemblyTupleFields.ApplicationFileRef, value); 81 set => this.Set((int)AssemblySymbolFields.ApplicationFileRef, value);
82 } 82 }
83 83
84 public AssemblyType Type 84 public AssemblyType Type
85 { 85 {
86 get => (AssemblyType)this.Fields[(int)AssemblyTupleFields.Type].AsNumber(); 86 get => (AssemblyType)this.Fields[(int)AssemblySymbolFields.Type].AsNumber();
87 set => this.Set((int)AssemblyTupleFields.Type, (int)value); 87 set => this.Set((int)AssemblySymbolFields.Type, (int)value);
88 } 88 }
89 89
90 public string ProcessorArchitecture 90 public string ProcessorArchitecture
91 { 91 {
92 get => (string)this.Fields[(int)AssemblyTupleFields.ProcessorArchitecture]; 92 get => (string)this.Fields[(int)AssemblySymbolFields.ProcessorArchitecture];
93 set => this.Set((int)AssemblyTupleFields.ProcessorArchitecture, value); 93 set => this.Set((int)AssemblySymbolFields.ProcessorArchitecture, value);
94 } 94 }
95 } 95 }
96} 96}