diff options
author | Rob Mensching <rob@firegiant.com> | 2020-06-27 12:07:22 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2020-06-27 13:30:34 -0700 |
commit | 8e0423b251346b66627795b4ae1cbdebcb7c5784 (patch) | |
tree | 68206b5957b54b99d7162e37ac368c4b9b631da7 | |
parent | 881f9d05042b72ea34382fc0c148a8cfbca06c9c (diff) | |
download | wix-8e0423b251346b66627795b4ae1cbdebcb7c5784.tar.gz wix-8e0423b251346b66627795b4ae1cbdebcb7c5784.tar.bz2 wix-8e0423b251346b66627795b4ae1cbdebcb7c5784.zip |
The Great Tuple to Symbol Rename (tm)
-rw-r--r-- | src/wixext/DifxAppCompiler.cs | 10 | ||||
-rw-r--r-- | src/wixext/DifxAppExtensionData.cs | 10 | ||||
-rw-r--r-- | src/wixext/DifxAppTableDefinitions.cs | 4 | ||||
-rw-r--r-- | src/wixext/Tuples/DifxAppTupleDefinitions.cs | 14 | ||||
-rw-r--r-- | src/wixext/Tuples/MsiDriverPackagesTuple.cs | 40 |
5 files changed, 39 insertions, 39 deletions
diff --git a/src/wixext/DifxAppCompiler.cs b/src/wixext/DifxAppCompiler.cs index 4d0b8ec9..e3687a49 100644 --- a/src/wixext/DifxAppCompiler.cs +++ b/src/wixext/DifxAppCompiler.cs | |||
@@ -6,7 +6,7 @@ namespace WixToolset.DifxApp | |||
6 | using System.Collections.Generic; | 6 | using System.Collections.Generic; |
7 | using System.Xml.Linq; | 7 | using System.Xml.Linq; |
8 | using WixToolset.Data; | 8 | using WixToolset.Data; |
9 | using WixToolset.DifxApp.Tuples; | 9 | using WixToolset.DifxApp.Symbols; |
10 | using WixToolset.Extensibility; | 10 | using WixToolset.Extensibility; |
11 | 11 | ||
12 | /// <summary> | 12 | /// <summary> |
@@ -138,10 +138,10 @@ namespace WixToolset.DifxApp | |||
138 | switch (this.Context.Platform) | 138 | switch (this.Context.Platform) |
139 | { | 139 | { |
140 | case Platform.X86: | 140 | case Platform.X86: |
141 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, TupleDefinitions.CustomAction, "MsiProcessDrivers"); | 141 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, SymbolDefinitions.CustomAction, "MsiProcessDrivers"); |
142 | break; | 142 | break; |
143 | case Platform.X64: | 143 | case Platform.X64: |
144 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, TupleDefinitions.CustomAction, "MsiProcessDrivers_x64"); | 144 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, SymbolDefinitions.CustomAction, "MsiProcessDrivers_x64"); |
145 | break; | 145 | break; |
146 | case Platform.IA64: | 146 | case Platform.IA64: |
147 | case Platform.ARM: | 147 | case Platform.ARM: |
@@ -149,7 +149,7 @@ namespace WixToolset.DifxApp | |||
149 | break; | 149 | break; |
150 | } | 150 | } |
151 | 151 | ||
152 | var tuple = section.AddTuple(new MsiDriverPackagesTuple(sourceLineNumbers) | 152 | var symbol = section.AddSymbol(new MsiDriverPackagesSymbol(sourceLineNumbers) |
153 | { | 153 | { |
154 | ComponentRef = componentId, | 154 | ComponentRef = componentId, |
155 | Flags = attributes, | 155 | Flags = attributes, |
@@ -157,7 +157,7 @@ namespace WixToolset.DifxApp | |||
157 | 157 | ||
158 | if (CompilerConstants.IntegerNotSet != sequence) | 158 | if (CompilerConstants.IntegerNotSet != sequence) |
159 | { | 159 | { |
160 | tuple.Sequence = sequence; | 160 | symbol.Sequence = sequence; |
161 | } | 161 | } |
162 | } | 162 | } |
163 | } | 163 | } |
diff --git a/src/wixext/DifxAppExtensionData.cs b/src/wixext/DifxAppExtensionData.cs index 49e1354f..31a95b8e 100644 --- a/src/wixext/DifxAppExtensionData.cs +++ b/src/wixext/DifxAppExtensionData.cs | |||
@@ -9,15 +9,15 @@ namespace WixToolset.DifxApp | |||
9 | { | 9 | { |
10 | public override string DefaultCulture => "en-US"; | 10 | public override string DefaultCulture => "en-US"; |
11 | 11 | ||
12 | public override bool TryGetTupleDefinitionByName(string name, out IntermediateTupleDefinition tupleDefinition) | 12 | public override bool TryGetSymbolDefinitionByName(string name, out IntermediateSymbolDefinition symbolDefinition) |
13 | { | 13 | { |
14 | tupleDefinition = DifxAppTupleDefinitions.ByName(name); | 14 | symbolDefinition = DifxAppSymbolDefinitions.ByName(name); |
15 | return tupleDefinition != null; | 15 | return symbolDefinition != null; |
16 | } | 16 | } |
17 | 17 | ||
18 | public override Intermediate GetLibrary(ITupleDefinitionCreator tupleDefinitions) | 18 | public override Intermediate GetLibrary(ISymbolDefinitionCreator symbolDefinitions) |
19 | { | 19 | { |
20 | return Intermediate.Load(typeof(DifxAppExtensionData).Assembly, "WixToolset.DifxApp.difxapp.wixlib", tupleDefinitions); | 20 | return Intermediate.Load(typeof(DifxAppExtensionData).Assembly, "WixToolset.DifxApp.difxapp.wixlib", symbolDefinitions); |
21 | } | 21 | } |
22 | } | 22 | } |
23 | } | 23 | } |
diff --git a/src/wixext/DifxAppTableDefinitions.cs b/src/wixext/DifxAppTableDefinitions.cs index 8c92c94f..a6c26444 100644 --- a/src/wixext/DifxAppTableDefinitions.cs +++ b/src/wixext/DifxAppTableDefinitions.cs | |||
@@ -8,14 +8,14 @@ namespace WixToolset.DifxApp | |||
8 | { | 8 | { |
9 | public static readonly TableDefinition MsiDriverPackages = new TableDefinition( | 9 | public static readonly TableDefinition MsiDriverPackages = new TableDefinition( |
10 | "MsiDriverPackages", | 10 | "MsiDriverPackages", |
11 | DifxAppTupleDefinitions.MsiDriverPackages, | 11 | DifxAppSymbolDefinitions.MsiDriverPackages, |
12 | new[] | 12 | new[] |
13 | { | 13 | { |
14 | new ColumnDefinition("Component", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, keyTable: "Component", keyColumn: 1, description: "Name of the component that represents the driver package", modularizeType: ColumnModularizeType.Column), | 14 | new ColumnDefinition("Component", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, keyTable: "Component", keyColumn: 1, description: "Name of the component that represents the driver package", modularizeType: ColumnModularizeType.Column), |
15 | new ColumnDefinition("Flags", ColumnType.Number, 4, primaryKey: false, nullable: false, ColumnCategory.Unknown, minValue: 0, maxValue: 31, description: "Flags for installing and uninstalling driver packages"), | 15 | new ColumnDefinition("Flags", ColumnType.Number, 4, primaryKey: false, nullable: false, ColumnCategory.Unknown, minValue: 0, maxValue: 31, description: "Flags for installing and uninstalling driver packages"), |
16 | new ColumnDefinition("Sequence", ColumnType.Number, 4, primaryKey: false, nullable: true, ColumnCategory.Unknown, minValue: 0, description: "Order in which the driver packages are processed"), | 16 | new ColumnDefinition("Sequence", ColumnType.Number, 4, primaryKey: false, nullable: true, ColumnCategory.Unknown, minValue: 0, description: "Order in which the driver packages are processed"), |
17 | }, | 17 | }, |
18 | tupleIdIsPrimaryKey: false | 18 | symbolIdIsPrimaryKey: false |
19 | ); | 19 | ); |
20 | 20 | ||
21 | public static readonly TableDefinition[] All = new[] | 21 | public static readonly TableDefinition[] All = new[] |
diff --git a/src/wixext/Tuples/DifxAppTupleDefinitions.cs b/src/wixext/Tuples/DifxAppTupleDefinitions.cs index 37dabb86..76f4d88f 100644 --- a/src/wixext/Tuples/DifxAppTupleDefinitions.cs +++ b/src/wixext/Tuples/DifxAppTupleDefinitions.cs | |||
@@ -5,18 +5,18 @@ namespace WixToolset.DifxApp | |||
5 | using System; | 5 | using System; |
6 | using WixToolset.Data; | 6 | using WixToolset.Data; |
7 | 7 | ||
8 | public enum DifxAppTupleDefinitionType | 8 | public enum DifxAppSymbolDefinitionType |
9 | { | 9 | { |
10 | MsiDriverPackages, | 10 | MsiDriverPackages, |
11 | } | 11 | } |
12 | 12 | ||
13 | public static partial class DifxAppTupleDefinitions | 13 | public static partial class DifxAppSymbolDefinitions |
14 | { | 14 | { |
15 | public static readonly Version Version = new Version("4.0.0"); | 15 | public static readonly Version Version = new Version("4.0.0"); |
16 | 16 | ||
17 | public static IntermediateTupleDefinition ByName(string name) | 17 | public static IntermediateSymbolDefinition ByName(string name) |
18 | { | 18 | { |
19 | if (!Enum.TryParse(name, out DifxAppTupleDefinitionType type)) | 19 | if (!Enum.TryParse(name, out DifxAppSymbolDefinitionType type)) |
20 | { | 20 | { |
21 | return null; | 21 | return null; |
22 | } | 22 | } |
@@ -24,12 +24,12 @@ namespace WixToolset.DifxApp | |||
24 | return ByType(type); | 24 | return ByType(type); |
25 | } | 25 | } |
26 | 26 | ||
27 | public static IntermediateTupleDefinition ByType(DifxAppTupleDefinitionType type) | 27 | public static IntermediateSymbolDefinition ByType(DifxAppSymbolDefinitionType type) |
28 | { | 28 | { |
29 | switch (type) | 29 | switch (type) |
30 | { | 30 | { |
31 | case DifxAppTupleDefinitionType.MsiDriverPackages: | 31 | case DifxAppSymbolDefinitionType.MsiDriverPackages: |
32 | return DifxAppTupleDefinitions.MsiDriverPackages; | 32 | return DifxAppSymbolDefinitions.MsiDriverPackages; |
33 | 33 | ||
34 | default: | 34 | default: |
35 | throw new ArgumentOutOfRangeException(nameof(type)); | 35 | throw new ArgumentOutOfRangeException(nameof(type)); |
diff --git a/src/wixext/Tuples/MsiDriverPackagesTuple.cs b/src/wixext/Tuples/MsiDriverPackagesTuple.cs index 9c57e47c..2fd91bc8 100644 --- a/src/wixext/Tuples/MsiDriverPackagesTuple.cs +++ b/src/wixext/Tuples/MsiDriverPackagesTuple.cs | |||
@@ -3,61 +3,61 @@ | |||
3 | namespace WixToolset.DifxApp | 3 | namespace WixToolset.DifxApp |
4 | { | 4 | { |
5 | using WixToolset.Data; | 5 | using WixToolset.Data; |
6 | using WixToolset.DifxApp.Tuples; | 6 | using WixToolset.DifxApp.Symbols; |
7 | 7 | ||
8 | public static partial class DifxAppTupleDefinitions | 8 | public static partial class DifxAppSymbolDefinitions |
9 | { | 9 | { |
10 | public static readonly IntermediateTupleDefinition MsiDriverPackages = new IntermediateTupleDefinition( | 10 | public static readonly IntermediateSymbolDefinition MsiDriverPackages = new IntermediateSymbolDefinition( |
11 | DifxAppTupleDefinitionType.MsiDriverPackages.ToString(), | 11 | DifxAppSymbolDefinitionType.MsiDriverPackages.ToString(), |
12 | new[] | 12 | new[] |
13 | { | 13 | { |
14 | new IntermediateFieldDefinition(nameof(MsiDriverPackagesTupleFields.ComponentRef), IntermediateFieldType.String), | 14 | new IntermediateFieldDefinition(nameof(MsiDriverPackagesSymbolFields.ComponentRef), IntermediateFieldType.String), |
15 | new IntermediateFieldDefinition(nameof(MsiDriverPackagesTupleFields.Flags), IntermediateFieldType.Number), | 15 | new IntermediateFieldDefinition(nameof(MsiDriverPackagesSymbolFields.Flags), IntermediateFieldType.Number), |
16 | new IntermediateFieldDefinition(nameof(MsiDriverPackagesTupleFields.Sequence), IntermediateFieldType.Number), | 16 | new IntermediateFieldDefinition(nameof(MsiDriverPackagesSymbolFields.Sequence), IntermediateFieldType.Number), |
17 | }, | 17 | }, |
18 | typeof(MsiDriverPackagesTuple)); | 18 | typeof(MsiDriverPackagesSymbol)); |
19 | } | 19 | } |
20 | } | 20 | } |
21 | 21 | ||
22 | namespace WixToolset.DifxApp.Tuples | 22 | namespace WixToolset.DifxApp.Symbols |
23 | { | 23 | { |
24 | using WixToolset.Data; | 24 | using WixToolset.Data; |
25 | 25 | ||
26 | public enum MsiDriverPackagesTupleFields | 26 | public enum MsiDriverPackagesSymbolFields |
27 | { | 27 | { |
28 | ComponentRef, | 28 | ComponentRef, |
29 | Flags, | 29 | Flags, |
30 | Sequence, | 30 | Sequence, |
31 | } | 31 | } |
32 | 32 | ||
33 | public class MsiDriverPackagesTuple : IntermediateTuple | 33 | public class MsiDriverPackagesSymbol : IntermediateSymbol |
34 | { | 34 | { |
35 | public MsiDriverPackagesTuple() : base(DifxAppTupleDefinitions.MsiDriverPackages, null, null) | 35 | public MsiDriverPackagesSymbol() : base(DifxAppSymbolDefinitions.MsiDriverPackages, null, null) |
36 | { | 36 | { |
37 | } | 37 | } |
38 | 38 | ||
39 | public MsiDriverPackagesTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(DifxAppTupleDefinitions.MsiDriverPackages, sourceLineNumber, id) | 39 | public MsiDriverPackagesSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(DifxAppSymbolDefinitions.MsiDriverPackages, sourceLineNumber, id) |
40 | { | 40 | { |
41 | } | 41 | } |
42 | 42 | ||
43 | public IntermediateField this[MsiDriverPackagesTupleFields index] => this.Fields[(int)index]; | 43 | public IntermediateField this[MsiDriverPackagesSymbolFields index] => this.Fields[(int)index]; |
44 | 44 | ||
45 | public string ComponentRef | 45 | public string ComponentRef |
46 | { | 46 | { |
47 | get => this.Fields[(int)MsiDriverPackagesTupleFields.ComponentRef].AsString(); | 47 | get => this.Fields[(int)MsiDriverPackagesSymbolFields.ComponentRef].AsString(); |
48 | set => this.Set((int)MsiDriverPackagesTupleFields.ComponentRef, value); | 48 | set => this.Set((int)MsiDriverPackagesSymbolFields.ComponentRef, value); |
49 | } | 49 | } |
50 | 50 | ||
51 | public int Flags | 51 | public int Flags |
52 | { | 52 | { |
53 | get => this.Fields[(int)MsiDriverPackagesTupleFields.Flags].AsNumber(); | 53 | get => this.Fields[(int)MsiDriverPackagesSymbolFields.Flags].AsNumber(); |
54 | set => this.Set((int)MsiDriverPackagesTupleFields.Flags, value); | 54 | set => this.Set((int)MsiDriverPackagesSymbolFields.Flags, value); |
55 | } | 55 | } |
56 | 56 | ||
57 | public int? Sequence | 57 | public int? Sequence |
58 | { | 58 | { |
59 | get => this.Fields[(int)MsiDriverPackagesTupleFields.Sequence].AsNullableNumber(); | 59 | get => this.Fields[(int)MsiDriverPackagesSymbolFields.Sequence].AsNullableNumber(); |
60 | set => this.Set((int)MsiDriverPackagesTupleFields.Sequence, value); | 60 | set => this.Set((int)MsiDriverPackagesSymbolFields.Sequence, value); |
61 | } | 61 | } |
62 | } | 62 | } |
63 | } \ No newline at end of file | 63 | } \ No newline at end of file |