aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/CompilerCore.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Core/CompilerCore.cs')
-rw-r--r--src/WixToolset.Core/CompilerCore.cs16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/WixToolset.Core/CompilerCore.cs b/src/WixToolset.Core/CompilerCore.cs
index 4df94713..d21e490f 100644
--- a/src/WixToolset.Core/CompilerCore.cs
+++ b/src/WixToolset.Core/CompilerCore.cs
@@ -13,6 +13,7 @@ namespace WixToolset.Core
13 using System.Text.RegularExpressions; 13 using System.Text.RegularExpressions;
14 using System.Xml.Linq; 14 using System.Xml.Linq;
15 using WixToolset.Data; 15 using WixToolset.Data;
16 using WixToolset.Data.Tuples;
16 using WixToolset.Extensibility; 17 using WixToolset.Extensibility;
17 using WixToolset.Extensibility.Data; 18 using WixToolset.Extensibility.Data;
18 using WixToolset.Extensibility.Services; 19 using WixToolset.Extensibility.Services;
@@ -165,6 +166,15 @@ namespace WixToolset.Core
165 public bool ShowPedanticMessages { get; set; } 166 public bool ShowPedanticMessages { get; set; }
166 167
167 /// <summary> 168 /// <summary>
169 /// Add a tuple to the active section.
170 /// </summary>
171 /// <param name="tuple">Tuple to add.</param>
172 public void AddTuple(IntermediateTuple tuple)
173 {
174 this.ActiveSection.Tuples.Add(tuple);
175 }
176
177 /// <summary>
168 /// Convert a bit array into an int value. 178 /// Convert a bit array into an int value.
169 /// </summary> 179 /// </summary>
170 /// <param name="bits">The bit array to convert.</param> 180 /// <param name="bits">The bit array to convert.</param>
@@ -418,7 +428,7 @@ namespace WixToolset.Core
418 /// <param name="name">The registry entry name.</param> 428 /// <param name="name">The registry entry name.</param>
419 /// <param name="value">The registry entry value.</param> 429 /// <param name="value">The registry entry value.</param>
420 /// <param name="componentId">The component which will control installation/uninstallation of the registry entry.</param> 430 /// <param name="componentId">The component which will control installation/uninstallation of the registry entry.</param>
421 public Identifier CreateRegistryRow(SourceLineNumber sourceLineNumbers, int root, string key, string name, string value, string componentId) 431 public Identifier CreateRegistryRow(SourceLineNumber sourceLineNumbers, RegistryRootType root, string key, string name, string value, string componentId)
422 { 432 {
423 return this.parseHelper.CreateRegistryRow(this.ActiveSection, sourceLineNumbers, root, key, name, value, componentId, true); 433 return this.parseHelper.CreateRegistryRow(this.ActiveSection, sourceLineNumbers, root, key, name, value, componentId, true);
424 } 434 }
@@ -839,9 +849,9 @@ namespace WixToolset.Core
839 /// <param name="allowHkmu">Whether HKMU is returned as -1 (true), or treated as an error (false).</param> 849 /// <param name="allowHkmu">Whether HKMU is returned as -1 (true), or treated as an error (false).</param>
840 /// <returns>The attribute's RegisitryRootType value.</returns> 850 /// <returns>The attribute's RegisitryRootType value.</returns>
841 [SuppressMessage("Microsoft.Design", "CA1059:MembersShouldNotExposeCertainConcreteTypes")] 851 [SuppressMessage("Microsoft.Design", "CA1059:MembersShouldNotExposeCertainConcreteTypes")]
842 public int GetAttributeMsidbRegistryRootValue(SourceLineNumber sourceLineNumbers, XAttribute attribute, bool allowHkmu) 852 public RegistryRootType? GetAttributeRegistryRootValue(SourceLineNumber sourceLineNumbers, XAttribute attribute, bool allowHkmu)
843 { 853 {
844 return this.parseHelper.GetAttributeMsidbRegistryRootValue(sourceLineNumbers, attribute, allowHkmu); 854 return this.parseHelper.GetAttributeRegistryRootValue(sourceLineNumbers, attribute, allowHkmu);
845 } 855 }
846 856
847 /// <summary> 857 /// <summary>