diff options
Diffstat (limited to 'src/WixToolset.Core/Compiler.cs')
| -rw-r--r-- | src/WixToolset.Core/Compiler.cs | 43 |
1 files changed, 2 insertions, 41 deletions
diff --git a/src/WixToolset.Core/Compiler.cs b/src/WixToolset.Core/Compiler.cs index c4bbf86d..7f078dbc 100644 --- a/src/WixToolset.Core/Compiler.cs +++ b/src/WixToolset.Core/Compiler.cs | |||
| @@ -4855,6 +4855,7 @@ namespace WixToolset.Core | |||
| 4855 | { | 4855 | { |
| 4856 | var tuple = new FeatureTuple(sourceLineNumbers, id) | 4856 | var tuple = new FeatureTuple(sourceLineNumbers, id) |
| 4857 | { | 4857 | { |
| 4858 | ParentFeatureRef = null, // this field is set in the linker | ||
| 4858 | Title = title, | 4859 | Title = title, |
| 4859 | Description = description, | 4860 | Description = description, |
| 4860 | Display = display, | 4861 | Display = display, |
| @@ -4867,46 +4868,6 @@ namespace WixToolset.Core | |||
| 4867 | }; | 4868 | }; |
| 4868 | 4869 | ||
| 4869 | this.Core.AddTuple(tuple); | 4870 | this.Core.AddTuple(tuple); |
| 4870 | //var row = this.Core.CreateRow(sourceLineNumbers, TupleDefinitionType.Feature, id); | ||
| 4871 | //// row.Set(1, null); - this column is set in the linker | ||
| 4872 | //row.Set(2, title); | ||
| 4873 | //row.Set(3, description); | ||
| 4874 | //if (0 < display.Length) | ||
| 4875 | //{ | ||
| 4876 | // switch (display) | ||
| 4877 | // { | ||
| 4878 | // case "collapse": | ||
| 4879 | // lastDisplay = (lastDisplay | 1) + 1; | ||
| 4880 | // row.Set(4, lastDisplay); | ||
| 4881 | // break; | ||
| 4882 | // case "expand": | ||
| 4883 | // lastDisplay = (lastDisplay + 1) | 1; | ||
| 4884 | // row.Set(4, lastDisplay); | ||
| 4885 | // break; | ||
| 4886 | // case "hidden": | ||
| 4887 | // row.Set(4, 0); | ||
| 4888 | // break; | ||
| 4889 | // default: | ||
| 4890 | // int value; | ||
| 4891 | // if (!Int32.TryParse(display, NumberStyles.Integer, CultureInfo.InvariantCulture, out value)) | ||
| 4892 | // { | ||
| 4893 | // this.Core.Write(ErrorMessages.IllegalAttributeValue(sourceLineNumbers, node.Name.LocalName, "Display", display, "collapse", "expand", "hidden")); | ||
| 4894 | // } | ||
| 4895 | // else | ||
| 4896 | // { | ||
| 4897 | // row.Set(4, value); | ||
| 4898 | // // save the display value of this row (if its not hidden) for subsequent rows | ||
| 4899 | // if (0 != (int)row[4]) | ||
| 4900 | // { | ||
| 4901 | // lastDisplay = (int)row[4]; | ||
| 4902 | // } | ||
| 4903 | // } | ||
| 4904 | // break; | ||
| 4905 | // } | ||
| 4906 | //} | ||
| 4907 | //row.Set(5, level); | ||
| 4908 | //row.Set(6, configurableDirectory); | ||
| 4909 | //row.Set(7, bits); | ||
| 4910 | 4871 | ||
| 4911 | if (ComplexReferenceParentType.Unknown != parentType) | 4872 | if (ComplexReferenceParentType.Unknown != parentType) |
| 4912 | { | 4873 | { |
| @@ -6228,7 +6189,7 @@ namespace WixToolset.Core | |||
| 6228 | this.ParseFeatureElement(child, ComplexReferenceParentType.Unknown, null, ref featureDisplay); | 6189 | this.ParseFeatureElement(child, ComplexReferenceParentType.Unknown, null, ref featureDisplay); |
| 6229 | break; | 6190 | break; |
| 6230 | case "FeatureGroup": | 6191 | case "FeatureGroup": |
| 6231 | this.ParseFeatureGroupElement(child, ComplexReferenceParentType.Unknown, id.Id); | 6192 | this.ParseFeatureGroupElement(child, ComplexReferenceParentType.Unknown, id?.Id); |
| 6232 | break; | 6193 | break; |
| 6233 | case "FeatureRef": | 6194 | case "FeatureRef": |
| 6234 | this.ParseFeatureRefElement(child, ComplexReferenceParentType.Unknown, null); | 6195 | this.ParseFeatureRefElement(child, ComplexReferenceParentType.Unknown, null); |
