diff options
Diffstat (limited to 'src/WixToolset.Core/Compiler.cs')
-rw-r--r-- | src/WixToolset.Core/Compiler.cs | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/src/WixToolset.Core/Compiler.cs b/src/WixToolset.Core/Compiler.cs index 7113c3b5..8aa82d47 100644 --- a/src/WixToolset.Core/Compiler.cs +++ b/src/WixToolset.Core/Compiler.cs | |||
@@ -554,7 +554,7 @@ namespace WixToolset.Core | |||
554 | 554 | ||
555 | if (!this.Core.EncounteredError) | 555 | if (!this.Core.EncounteredError) |
556 | { | 556 | { |
557 | this.Core.AddSymbol(new AppIdSymbol(sourceLineNumbers, new Identifier(AccessModifier.Public, appId)) | 557 | this.Core.AddSymbol(new AppIdSymbol(sourceLineNumbers, new Identifier(AccessModifier.Global, appId)) |
558 | { | 558 | { |
559 | AppId = appId, | 559 | AppId = appId, |
560 | RemoteServerName = remoteServerName, | 560 | RemoteServerName = remoteServerName, |
@@ -652,7 +652,7 @@ namespace WixToolset.Core | |||
652 | 652 | ||
653 | if (!this.Core.EncounteredError) | 653 | if (!this.Core.EncounteredError) |
654 | { | 654 | { |
655 | this.Core.AddSymbol(new MsiAssemblyNameSymbol(sourceLineNumbers, new Identifier(AccessModifier.Private, componentId, id)) | 655 | this.Core.AddSymbol(new MsiAssemblyNameSymbol(sourceLineNumbers, new Identifier(AccessModifier.Section, componentId, id)) |
656 | { | 656 | { |
657 | ComponentRef = componentId, | 657 | ComponentRef = componentId, |
658 | Name = id, | 658 | Name = id, |
@@ -1844,7 +1844,7 @@ namespace WixToolset.Core | |||
1844 | } | 1844 | } |
1845 | oneChild = true; | 1845 | oneChild = true; |
1846 | signature = this.ParseFileSearchElement(child, id.Id, false, CompilerConstants.IntegerNotSet); | 1846 | signature = this.ParseFileSearchElement(child, id.Id, false, CompilerConstants.IntegerNotSet); |
1847 | id = new Identifier(AccessModifier.Private, signature); // FileSearch signatures override parent signatures | 1847 | id = new Identifier(AccessModifier.Section, signature); // FileSearch signatures override parent signatures |
1848 | break; | 1848 | break; |
1849 | case "FileSearchRef": | 1849 | case "FileSearchRef": |
1850 | if (oneChild) | 1850 | if (oneChild) |
@@ -1853,7 +1853,7 @@ namespace WixToolset.Core | |||
1853 | } | 1853 | } |
1854 | oneChild = true; | 1854 | oneChild = true; |
1855 | var newId = this.ParseSimpleRefElement(child, SymbolDefinitions.Signature); // FileSearch signatures override parent signatures | 1855 | var newId = this.ParseSimpleRefElement(child, SymbolDefinitions.Signature); // FileSearch signatures override parent signatures |
1856 | id = new Identifier(AccessModifier.Private, newId); | 1856 | id = new Identifier(AccessModifier.Section, newId); |
1857 | signature = null; | 1857 | signature = null; |
1858 | break; | 1858 | break; |
1859 | default: | 1859 | default: |
@@ -2087,7 +2087,7 @@ namespace WixToolset.Core | |||
2087 | 2087 | ||
2088 | if (!this.Core.EncounteredError) | 2088 | if (!this.Core.EncounteredError) |
2089 | { | 2089 | { |
2090 | this.Core.AddSymbol(new CCPSearchSymbol(sourceLineNumbers, new Identifier(AccessModifier.Private, signature))); | 2090 | this.Core.AddSymbol(new CCPSearchSymbol(sourceLineNumbers, new Identifier(AccessModifier.Section, signature))); |
2091 | } | 2091 | } |
2092 | } | 2092 | } |
2093 | 2093 | ||
@@ -2272,7 +2272,7 @@ namespace WixToolset.Core | |||
2272 | { | 2272 | { |
2273 | // Placeholder id for defaulting Component/@Id to keypath id. | 2273 | // Placeholder id for defaulting Component/@Id to keypath id. |
2274 | componentIdPlaceholder = String.Concat(Compiler.ComponentIdPlaceholderStart, this.componentIdPlaceholders.Count, Compiler.ComponentIdPlaceholderEnd); | 2274 | componentIdPlaceholder = String.Concat(Compiler.ComponentIdPlaceholderStart, this.componentIdPlaceholders.Count, Compiler.ComponentIdPlaceholderEnd); |
2275 | id = new Identifier(AccessModifier.Private, componentIdPlaceholder); | 2275 | id = new Identifier(AccessModifier.Section, componentIdPlaceholder); |
2276 | } | 2276 | } |
2277 | 2277 | ||
2278 | if (null == directoryId) | 2278 | if (null == directoryId) |
@@ -2506,7 +2506,7 @@ namespace WixToolset.Core | |||
2506 | { | 2506 | { |
2507 | this.componentIdPlaceholders.Add(componentIdPlaceholder, keyPath); | 2507 | this.componentIdPlaceholders.Add(componentIdPlaceholder, keyPath); |
2508 | 2508 | ||
2509 | id = new Identifier(AccessModifier.Private, keyPath); | 2509 | id = new Identifier(AccessModifier.Section, keyPath); |
2510 | } | 2510 | } |
2511 | else | 2511 | else |
2512 | { | 2512 | { |
@@ -2545,7 +2545,7 @@ namespace WixToolset.Core | |||
2545 | 2545 | ||
2546 | if (0 < symbols.Count) | 2546 | if (0 < symbols.Count) |
2547 | { | 2547 | { |
2548 | this.Core.AddSymbol(new WixDeltaPatchSymbolPathsSymbol(sourceLineNumbers, new Identifier(AccessModifier.Private, SymbolPathType.Component, id.Id)) | 2548 | this.Core.AddSymbol(new WixDeltaPatchSymbolPathsSymbol(sourceLineNumbers, new Identifier(AccessModifier.Section, SymbolPathType.Component, id.Id)) |
2549 | { | 2549 | { |
2550 | SymbolType = SymbolPathType.Component, | 2550 | SymbolType = SymbolPathType.Component, |
2551 | SymbolId = id.Id, | 2551 | SymbolId = id.Id, |
@@ -2851,7 +2851,7 @@ namespace WixToolset.Core | |||
2851 | } | 2851 | } |
2852 | oneChild = true; | 2852 | oneChild = true; |
2853 | signature = this.ParseFileSearchElement(child, id.Id, false, CompilerConstants.IntegerNotSet); | 2853 | signature = this.ParseFileSearchElement(child, id.Id, false, CompilerConstants.IntegerNotSet); |
2854 | id = new Identifier(AccessModifier.Private, signature); // FileSearch signatures override parent signatures | 2854 | id = new Identifier(AccessModifier.Section, signature); // FileSearch signatures override parent signatures |
2855 | break; | 2855 | break; |
2856 | case "FileSearchRef": | 2856 | case "FileSearchRef": |
2857 | if (oneChild) | 2857 | if (oneChild) |
@@ -2860,7 +2860,7 @@ namespace WixToolset.Core | |||
2860 | } | 2860 | } |
2861 | oneChild = true; | 2861 | oneChild = true; |
2862 | var newId = this.ParseSimpleRefElement(child, SymbolDefinitions.Signature); // FileSearch signatures override parent signatures | 2862 | var newId = this.ParseSimpleRefElement(child, SymbolDefinitions.Signature); // FileSearch signatures override parent signatures |
2863 | id = new Identifier(AccessModifier.Private, newId); | 2863 | id = new Identifier(AccessModifier.Section, newId); |
2864 | signature = null; | 2864 | signature = null; |
2865 | break; | 2865 | break; |
2866 | default: | 2866 | default: |
@@ -3734,7 +3734,7 @@ namespace WixToolset.Core | |||
3734 | { | 3734 | { |
3735 | var columnNames = String.Join(new string(WixCustomTableSymbol.ColumnNamesSeparator, 1), columns.Select(c => c.Name)); | 3735 | var columnNames = String.Join(new string(WixCustomTableSymbol.ColumnNamesSeparator, 1), columns.Select(c => c.Name)); |
3736 | 3736 | ||
3737 | this.Core.AddSymbol(new WixCustomTableSymbol(sourceLineNumbers, new Identifier(AccessModifier.Public, tableId)) | 3737 | this.Core.AddSymbol(new WixCustomTableSymbol(sourceLineNumbers, new Identifier(AccessModifier.Global, tableId)) |
3738 | { | 3738 | { |
3739 | ColumnNames = columnNames, | 3739 | ColumnNames = columnNames, |
3740 | Unreal = unreal, | 3740 | Unreal = unreal, |
@@ -4067,7 +4067,7 @@ namespace WixToolset.Core | |||
4067 | attributes |= nullable ? WixCustomTableColumnSymbolAttributes.Nullable : WixCustomTableColumnSymbolAttributes.None; | 4067 | attributes |= nullable ? WixCustomTableColumnSymbolAttributes.Nullable : WixCustomTableColumnSymbolAttributes.None; |
4068 | attributes |= columnUnreal ? WixCustomTableColumnSymbolAttributes.Unreal : WixCustomTableColumnSymbolAttributes.None; | 4068 | attributes |= columnUnreal ? WixCustomTableColumnSymbolAttributes.Unreal : WixCustomTableColumnSymbolAttributes.None; |
4069 | 4069 | ||
4070 | var column = this.Core.AddSymbol(new WixCustomTableColumnSymbol(childSourceLineNumbers, new Identifier(AccessModifier.Private, tableId, columnName)) | 4070 | var column = this.Core.AddSymbol(new WixCustomTableColumnSymbol(childSourceLineNumbers, new Identifier(AccessModifier.Section, tableId, columnName)) |
4071 | { | 4071 | { |
4072 | TableRef = tableId, | 4072 | TableRef = tableId, |
4073 | Name = columnName, | 4073 | Name = columnName, |
@@ -4134,7 +4134,7 @@ namespace WixToolset.Core | |||
4134 | 4134 | ||
4135 | if (!this.Core.EncounteredError) | 4135 | if (!this.Core.EncounteredError) |
4136 | { | 4136 | { |
4137 | this.Core.AddSymbol(new WixCustomTableCellSymbol(childSourceLineNumbers, new Identifier(AccessModifier.Private, tableId, rowId, columnName)) | 4137 | this.Core.AddSymbol(new WixCustomTableCellSymbol(childSourceLineNumbers, new Identifier(AccessModifier.Section, tableId, rowId, columnName)) |
4138 | { | 4138 | { |
4139 | RowId = rowId, | 4139 | RowId = rowId, |
4140 | ColumnRef = columnName, | 4140 | ColumnRef = columnName, |
@@ -4584,7 +4584,7 @@ namespace WixToolset.Core | |||
4584 | // and the row created here is for the file search. | 4584 | // and the row created here is for the file search. |
4585 | if (assignToProperty) | 4585 | if (assignToProperty) |
4586 | { | 4586 | { |
4587 | access = AccessModifier.Private; | 4587 | access = AccessModifier.Section; |
4588 | rowId = signature; | 4588 | rowId = signature; |
4589 | 4589 | ||
4590 | // The property should be set to the directory search Id. | 4590 | // The property should be set to the directory search Id. |
@@ -5377,7 +5377,7 @@ namespace WixToolset.Core | |||
5377 | 5377 | ||
5378 | if (!this.Core.EncounteredError) | 5378 | if (!this.Core.EncounteredError) |
5379 | { | 5379 | { |
5380 | this.Core.AddSymbol(new ErrorSymbol(sourceLineNumbers, new Identifier(AccessModifier.Public, id)) | 5380 | this.Core.AddSymbol(new ErrorSymbol(sourceLineNumbers, new Identifier(AccessModifier.Global, id)) |
5381 | { | 5381 | { |
5382 | Message = message | 5382 | Message = message |
5383 | }); | 5383 | }); |
@@ -5466,7 +5466,7 @@ namespace WixToolset.Core | |||
5466 | { | 5466 | { |
5467 | if (!this.Core.EncounteredError) | 5467 | if (!this.Core.EncounteredError) |
5468 | { | 5468 | { |
5469 | this.Core.AddSymbol(new ExtensionSymbol(sourceLineNumbers, new Identifier(AccessModifier.Public, extension, componentId)) | 5469 | this.Core.AddSymbol(new ExtensionSymbol(sourceLineNumbers, new Identifier(AccessModifier.Global, extension, componentId)) |
5470 | { | 5470 | { |
5471 | Extension = extension, | 5471 | Extension = extension, |
5472 | ComponentRef = componentId, | 5472 | ComponentRef = componentId, |
@@ -6044,7 +6044,7 @@ namespace WixToolset.Core | |||
6044 | } | 6044 | } |
6045 | else // reuse parent signature in the Signature table | 6045 | else // reuse parent signature in the Signature table |
6046 | { | 6046 | { |
6047 | id = new Identifier(AccessModifier.Private, parentSignature); | 6047 | id = new Identifier(AccessModifier.Section, parentSignature); |
6048 | } | 6048 | } |
6049 | } | 6049 | } |
6050 | 6050 | ||
@@ -6108,7 +6108,7 @@ namespace WixToolset.Core | |||
6108 | { | 6108 | { |
6109 | // Creates the DrLocator row for the directory search while | 6109 | // Creates the DrLocator row for the directory search while |
6110 | // the parent DirectorySearch creates the file locator row. | 6110 | // the parent DirectorySearch creates the file locator row. |
6111 | this.Core.AddSymbol(new DrLocatorSymbol(sourceLineNumbers, new Identifier(AccessModifier.Public, parentSignature, id.Id, String.Empty)) | 6111 | this.Core.AddSymbol(new DrLocatorSymbol(sourceLineNumbers, new Identifier(AccessModifier.Global, parentSignature, id.Id, String.Empty)) |
6112 | { | 6112 | { |
6113 | SignatureRef = parentSignature, | 6113 | SignatureRef = parentSignature, |
6114 | Parent = id.Id | 6114 | Parent = id.Id |
@@ -6116,7 +6116,7 @@ namespace WixToolset.Core | |||
6116 | } | 6116 | } |
6117 | else | 6117 | else |
6118 | { | 6118 | { |
6119 | this.Core.AddSymbol(new DrLocatorSymbol(sourceLineNumbers, new Identifier(AccessModifier.Public, id.Id, parentSignature, String.Empty)) | 6119 | this.Core.AddSymbol(new DrLocatorSymbol(sourceLineNumbers, new Identifier(AccessModifier.Global, id.Id, parentSignature, String.Empty)) |
6120 | { | 6120 | { |
6121 | SignatureRef = id.Id, | 6121 | SignatureRef = id.Id, |
6122 | Parent = parentSignature | 6122 | Parent = parentSignature |
@@ -6663,7 +6663,7 @@ namespace WixToolset.Core | |||
6663 | } | 6663 | } |
6664 | oneChild = true; | 6664 | oneChild = true; |
6665 | signature = this.ParseFileSearchElement(child, id.Id, false, CompilerConstants.IntegerNotSet); | 6665 | signature = this.ParseFileSearchElement(child, id.Id, false, CompilerConstants.IntegerNotSet); |
6666 | id = new Identifier(AccessModifier.Private, signature); // FileSearch signatures override parent signatures | 6666 | id = new Identifier(AccessModifier.Section, signature); // FileSearch signatures override parent signatures |
6667 | break; | 6667 | break; |
6668 | case "FileSearchRef": | 6668 | case "FileSearchRef": |
6669 | if (oneChild) | 6669 | if (oneChild) |
@@ -6672,7 +6672,7 @@ namespace WixToolset.Core | |||
6672 | } | 6672 | } |
6673 | oneChild = true; | 6673 | oneChild = true; |
6674 | var newId = this.ParseSimpleRefElement(child, SymbolDefinitions.Signature); // FileSearch signatures override parent signatures | 6674 | var newId = this.ParseSimpleRefElement(child, SymbolDefinitions.Signature); // FileSearch signatures override parent signatures |
6675 | id = new Identifier(AccessModifier.Private, newId); | 6675 | id = new Identifier(AccessModifier.Section, newId); |
6676 | signature = null; | 6676 | signature = null; |
6677 | break; | 6677 | break; |
6678 | default: | 6678 | default: |
@@ -6945,7 +6945,7 @@ namespace WixToolset.Core | |||
6945 | 6945 | ||
6946 | if (!this.Core.EncounteredError) | 6946 | if (!this.Core.EncounteredError) |
6947 | { | 6947 | { |
6948 | this.Core.AddSymbol(new MsiDigitalSignatureSymbol(sourceLineNumbers, new Identifier(AccessModifier.Public, "Media", diskId)) | 6948 | this.Core.AddSymbol(new MsiDigitalSignatureSymbol(sourceLineNumbers, new Identifier(AccessModifier.Global, "Media", diskId)) |
6949 | { | 6949 | { |
6950 | Table = "Media", | 6950 | Table = "Media", |
6951 | SignObject = diskId, | 6951 | SignObject = diskId, |
@@ -7141,7 +7141,7 @@ namespace WixToolset.Core | |||
7141 | break; | 7141 | break; |
7142 | } | 7142 | } |
7143 | 7143 | ||
7144 | this.Core.ScheduleActionSymbol(sourceLineNumbers, AccessModifier.Public, SequenceTable.InstallExecuteSequence, "RemoveExistingProducts", afterAction: after); | 7144 | this.Core.ScheduleActionSymbol(sourceLineNumbers, AccessModifier.Global, SequenceTable.InstallExecuteSequence, "RemoveExistingProducts", afterAction: after); |
7145 | } | 7145 | } |
7146 | } | 7146 | } |
7147 | 7147 | ||
@@ -7310,7 +7310,7 @@ namespace WixToolset.Core | |||
7310 | // add the row to the section | 7310 | // add the row to the section |
7311 | if (!this.Core.EncounteredError) | 7311 | if (!this.Core.EncounteredError) |
7312 | { | 7312 | { |
7313 | this.Core.AddSymbol(new MediaSymbol(sourceLineNumbers, new Identifier(AccessModifier.Public, id)) | 7313 | this.Core.AddSymbol(new MediaSymbol(sourceLineNumbers, new Identifier(AccessModifier.Global, id)) |
7314 | { | 7314 | { |
7315 | DiskId = id, | 7315 | DiskId = id, |
7316 | DiskPrompt = diskPrompt, | 7316 | DiskPrompt = diskPrompt, |
@@ -7323,7 +7323,7 @@ namespace WixToolset.Core | |||
7323 | 7323 | ||
7324 | if (null != symbols) | 7324 | if (null != symbols) |
7325 | { | 7325 | { |
7326 | this.Core.AddSymbol(new WixDeltaPatchSymbolPathsSymbol(sourceLineNumbers, new Identifier(AccessModifier.Private, SymbolPathType.Media, id)) | 7326 | this.Core.AddSymbol(new WixDeltaPatchSymbolPathsSymbol(sourceLineNumbers, new Identifier(AccessModifier.Section, SymbolPathType.Media, id)) |
7327 | { | 7327 | { |
7328 | SymbolType = SymbolPathType.Media, | 7328 | SymbolType = SymbolPathType.Media, |
7329 | SymbolId = id.ToString(CultureInfo.InvariantCulture), | 7329 | SymbolId = id.ToString(CultureInfo.InvariantCulture), |
@@ -7419,7 +7419,7 @@ namespace WixToolset.Core | |||
7419 | 7419 | ||
7420 | if (!this.Core.EncounteredError) | 7420 | if (!this.Core.EncounteredError) |
7421 | { | 7421 | { |
7422 | this.Core.AddSymbol(new MediaSymbol(sourceLineNumbers, new Identifier(AccessModifier.Public, 1)) | 7422 | this.Core.AddSymbol(new MediaSymbol(sourceLineNumbers, new Identifier(AccessModifier.Global, 1)) |
7423 | { | 7423 | { |
7424 | DiskId = 1 | 7424 | DiskId = 1 |
7425 | }); | 7425 | }); |
@@ -7794,7 +7794,7 @@ namespace WixToolset.Core | |||
7794 | 7794 | ||
7795 | if (!this.Core.EncounteredError) | 7795 | if (!this.Core.EncounteredError) |
7796 | { | 7796 | { |
7797 | this.Core.AddSymbol(new MIMESymbol(sourceLineNumbers, new Identifier(AccessModifier.Private, contentType)) | 7797 | this.Core.AddSymbol(new MIMESymbol(sourceLineNumbers, new Identifier(AccessModifier.Section, contentType)) |
7798 | { | 7798 | { |
7799 | ContentType = contentType, | 7799 | ContentType = contentType, |
7800 | ExtensionRef = extension, | 7800 | ExtensionRef = extension, |
@@ -7873,7 +7873,7 @@ namespace WixToolset.Core | |||
7873 | if (patch) | 7873 | if (patch) |
7874 | { | 7874 | { |
7875 | // /Patch/PatchProperty goes directly into MsiPatchMetadata table | 7875 | // /Patch/PatchProperty goes directly into MsiPatchMetadata table |
7876 | this.Core.AddSymbol(new MsiPatchMetadataSymbol(sourceLineNumbers, new Identifier(AccessModifier.Public, company, name)) | 7876 | this.Core.AddSymbol(new MsiPatchMetadataSymbol(sourceLineNumbers, new Identifier(AccessModifier.Global, company, name)) |
7877 | { | 7877 | { |
7878 | Company = company, | 7878 | Company = company, |
7879 | Property = name, | 7879 | Property = name, |
@@ -7900,7 +7900,7 @@ namespace WixToolset.Core | |||
7900 | { | 7900 | { |
7901 | if (!this.Core.EncounteredError) | 7901 | if (!this.Core.EncounteredError) |
7902 | { | 7902 | { |
7903 | this.Core.AddSymbol(new PropertySymbol(sourceLineNumbers, new Identifier(AccessModifier.Private, name)) | 7903 | this.Core.AddSymbol(new PropertySymbol(sourceLineNumbers, new Identifier(AccessModifier.Section, name)) |
7904 | { | 7904 | { |
7905 | Value = value | 7905 | Value = value |
7906 | }); | 7906 | }); |