diff options
| author | Rob Mensching <rob@firegiant.com> | 2020-06-25 14:43:50 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2020-06-25 14:50:31 -0700 |
| commit | 38afa9e7bc7eacc021f8805f607368a05751e3c3 (patch) | |
| tree | 803b0a8d9a06a7d6f7c4df408437017ae21a883e /src/WixToolset.Core.WindowsInstaller/Bind/AddCreateFoldersCommand.cs | |
| parent | 8968578d50858721317d410549a9f9b5c62bf1f7 (diff) | |
| download | wix-38afa9e7bc7eacc021f8805f607368a05751e3c3.tar.gz wix-38afa9e7bc7eacc021f8805f607368a05751e3c3.tar.bz2 wix-38afa9e7bc7eacc021f8805f607368a05751e3c3.zip | |
The Great Tuple to Symbol Rename (tm)
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Bind/AddCreateFoldersCommand.cs')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Bind/AddCreateFoldersCommand.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/AddCreateFoldersCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/AddCreateFoldersCommand.cs index ba844da4..c4fddb3e 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/AddCreateFoldersCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/AddCreateFoldersCommand.cs | |||
| @@ -5,10 +5,10 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 5 | using System.Collections.Generic; | 5 | using System.Collections.Generic; |
| 6 | using System.Linq; | 6 | using System.Linq; |
| 7 | using WixToolset.Data; | 7 | using WixToolset.Data; |
| 8 | using WixToolset.Data.Tuples; | 8 | using WixToolset.Data.Symbols; |
| 9 | 9 | ||
| 10 | /// <summary> | 10 | /// <summary> |
| 11 | /// Add CreateFolder tuples, if not already present, for null-keypath components. | 11 | /// Add CreateFolder symbols, if not already present, for null-keypath components. |
| 12 | /// </summary> | 12 | /// </summary> |
| 13 | internal class AddCreateFoldersCommand | 13 | internal class AddCreateFoldersCommand |
| 14 | { | 14 | { |
| @@ -21,15 +21,15 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 21 | 21 | ||
| 22 | public void Execute() | 22 | public void Execute() |
| 23 | { | 23 | { |
| 24 | var createFolderTuplesByComponentRef = new HashSet<string>(this.Section.Tuples.OfType<CreateFolderTuple>().Select(t => t.ComponentRef)); | 24 | var createFolderSymbolsByComponentRef = new HashSet<string>(this.Section.Symbols.OfType<CreateFolderSymbol>().Select(t => t.ComponentRef)); |
| 25 | foreach (var componentTuple in this.Section.Tuples.OfType<ComponentTuple>().Where(t => t.KeyPathType == ComponentKeyPathType.Directory).ToList()) | 25 | foreach (var componentSymbol in this.Section.Symbols.OfType<ComponentSymbol>().Where(t => t.KeyPathType == ComponentKeyPathType.Directory).ToList()) |
| 26 | { | 26 | { |
| 27 | if (!createFolderTuplesByComponentRef.Contains(componentTuple.Id.Id)) | 27 | if (!createFolderSymbolsByComponentRef.Contains(componentSymbol.Id.Id)) |
| 28 | { | 28 | { |
| 29 | this.Section.AddTuple(new CreateFolderTuple(componentTuple.SourceLineNumbers) | 29 | this.Section.AddSymbol(new CreateFolderSymbol(componentSymbol.SourceLineNumbers) |
| 30 | { | 30 | { |
| 31 | DirectoryRef = componentTuple.DirectoryRef, | 31 | DirectoryRef = componentSymbol.DirectoryRef, |
| 32 | ComponentRef = componentTuple.Id.Id, | 32 | ComponentRef = componentSymbol.Id.Id, |
| 33 | }); | 33 | }); |
| 34 | } | 34 | } |
| 35 | } | 35 | } |
