diff options
| author | Rob Mensching <rob@firegiant.com> | 2019-05-22 00:58:13 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2019-05-23 16:02:37 -0700 |
| commit | d0462be8000f18aa7dc0791d02142f000bb19fbf (patch) | |
| tree | 072aabc2bd9b8f171e17654473f85c44a8a42a66 /src/WixToolset.Core/Compiler_Module.cs | |
| parent | 1ed894bc0f39397ec7f7f6344370fc2123420c43 (diff) | |
| download | wix-d0462be8000f18aa7dc0791d02142f000bb19fbf.tar.gz wix-d0462be8000f18aa7dc0791d02142f000bb19fbf.tar.bz2 wix-d0462be8000f18aa7dc0791d02142f000bb19fbf.zip | |
Integrate latest changes to tuple definitions
Diffstat (limited to 'src/WixToolset.Core/Compiler_Module.cs')
| -rw-r--r-- | src/WixToolset.Core/Compiler_Module.cs | 79 |
1 files changed, 52 insertions, 27 deletions
diff --git a/src/WixToolset.Core/Compiler_Module.cs b/src/WixToolset.Core/Compiler_Module.cs index b95b5f03..e1563808 100644 --- a/src/WixToolset.Core/Compiler_Module.cs +++ b/src/WixToolset.Core/Compiler_Module.cs | |||
| @@ -100,11 +100,19 @@ namespace WixToolset.Core | |||
| 100 | switch (child.Name.LocalName) | 100 | switch (child.Name.LocalName) |
| 101 | { | 101 | { |
| 102 | case "AdminExecuteSequence": | 102 | case "AdminExecuteSequence": |
| 103 | this.ParseSequenceElement(child, SequenceTable.AdminExecuteSequence); | ||
| 104 | break; | ||
| 103 | case "AdminUISequence": | 105 | case "AdminUISequence": |
| 106 | this.ParseSequenceElement(child, SequenceTable.AdminUISequence); | ||
| 107 | break; | ||
| 104 | case "AdvertiseExecuteSequence": | 108 | case "AdvertiseExecuteSequence": |
| 109 | this.ParseSequenceElement(child, SequenceTable.AdvertiseExecuteSequence); | ||
| 110 | break; | ||
| 105 | case "InstallExecuteSequence": | 111 | case "InstallExecuteSequence": |
| 112 | this.ParseSequenceElement(child, SequenceTable.InstallExecuteSequence); | ||
| 113 | break; | ||
| 106 | case "InstallUISequence": | 114 | case "InstallUISequence": |
| 107 | this.ParseSequenceElement(child, child.Name.LocalName); | 115 | this.ParseSequenceElement(child, SequenceTable.InstallUISequence); |
| 108 | break; | 116 | break; |
| 109 | case "AppId": | 117 | case "AppId": |
| 110 | this.ParseAppIdElement(child, null, YesNoType.Yes, null, null, null); | 118 | this.ParseAppIdElement(child, null, YesNoType.Yes, null, null, null); |
| @@ -208,10 +216,15 @@ namespace WixToolset.Core | |||
| 208 | 216 | ||
| 209 | if (!this.Core.EncounteredError) | 217 | if (!this.Core.EncounteredError) |
| 210 | { | 218 | { |
| 211 | var row = this.Core.CreateRow(sourceLineNumbers, TupleDefinitionType.ModuleSignature); | 219 | var tuple = new ModuleSignatureTuple(sourceLineNumbers, new Identifier(AccessModifier.Public, this.activeName, this.activeLanguage)) |
| 212 | row.Set(0, this.activeName); | 220 | { |
| 213 | row.Set(1, this.activeLanguage); | 221 | ModuleID = this.activeName, |
| 214 | row.Set(2, version); | 222 | Version = version |
| 223 | }; | ||
| 224 | |||
| 225 | tuple.Set((int)ModuleSignatureTupleFields.Language, this.activeLanguage); | ||
| 226 | |||
| 227 | this.Core.AddTuple(tuple); | ||
| 215 | } | 228 | } |
| 216 | } | 229 | } |
| 217 | finally | 230 | finally |
| @@ -273,12 +286,17 @@ namespace WixToolset.Core | |||
| 273 | 286 | ||
| 274 | if (!this.Core.EncounteredError) | 287 | if (!this.Core.EncounteredError) |
| 275 | { | 288 | { |
| 276 | var row = this.Core.CreateRow(sourceLineNumbers, TupleDefinitionType.ModuleDependency); | 289 | var tuple = new ModuleDependencyTuple(sourceLineNumbers) |
| 277 | row.Set(0, this.activeName); | 290 | { |
| 278 | row.Set(1, this.activeLanguage); | 291 | ModuleID = this.activeName, |
| 279 | row.Set(2, requiredId); | 292 | RequiredID = requiredId, |
| 280 | row.Set(3, requiredLanguage.ToString(CultureInfo.InvariantCulture)); | 293 | RequiredLanguage = requiredLanguage, |
| 281 | row.Set(4, requiredVersion); | 294 | RequiredVersion = requiredVersion |
| 295 | }; | ||
| 296 | |||
| 297 | tuple.Set((int)ModuleDependencyTupleFields.ModuleLanguage, this.activeLanguage); | ||
| 298 | |||
| 299 | this.Core.AddTuple(tuple); | ||
| 282 | } | 300 | } |
| 283 | } | 301 | } |
| 284 | 302 | ||
| @@ -351,13 +369,18 @@ namespace WixToolset.Core | |||
| 351 | 369 | ||
| 352 | if (!this.Core.EncounteredError) | 370 | if (!this.Core.EncounteredError) |
| 353 | { | 371 | { |
| 354 | var row = this.Core.CreateRow(sourceLineNumbers, TupleDefinitionType.ModuleExclusion); | 372 | var tuple = new ModuleExclusionTuple(sourceLineNumbers) |
| 355 | row.Set(0, this.activeName); | 373 | { |
| 356 | row.Set(1, this.activeLanguage); | 374 | ModuleID = this.activeName, |
| 357 | row.Set(2, excludedId); | 375 | ExcludedID = excludedId, |
| 358 | row.Set(3, excludedLanguageField); | 376 | ExcludedMinVersion = excludedMinVersion, |
| 359 | row.Set(4, excludedMinVersion); | 377 | ExcludedMaxVersion = excludedMaxVersion |
| 360 | row.Set(5, excludedMaxVersion); | 378 | }; |
| 379 | |||
| 380 | tuple.Set((int)ModuleExclusionTupleFields.ModuleLanguage, this.activeLanguage); | ||
| 381 | tuple.Set((int)ModuleExclusionTupleFields.ExcludedLanguage, excludedLanguageField); | ||
| 382 | |||
| 383 | this.Core.AddTuple(tuple); | ||
| 361 | } | 384 | } |
| 362 | } | 385 | } |
| 363 | 386 | ||
| @@ -548,11 +571,15 @@ namespace WixToolset.Core | |||
| 548 | 571 | ||
| 549 | if (!this.Core.EncounteredError) | 572 | if (!this.Core.EncounteredError) |
| 550 | { | 573 | { |
| 551 | var row = this.Core.CreateRow(sourceLineNumbers, TupleDefinitionType.ModuleSubstitution); | 574 | var tuple = new ModuleSubstitutionTuple(sourceLineNumbers) |
| 552 | row.Set(0, table); | 575 | { |
| 553 | row.Set(1, rowKeys); | 576 | Table = table, |
| 554 | row.Set(2, column); | 577 | Row = rowKeys, |
| 555 | row.Set(3, value); | 578 | Column = column, |
| 579 | Value = value | ||
| 580 | }; | ||
| 581 | |||
| 582 | this.Core.AddTuple(tuple); | ||
| 556 | } | 583 | } |
| 557 | } | 584 | } |
| 558 | 585 | ||
| @@ -599,8 +626,7 @@ namespace WixToolset.Core | |||
| 599 | 626 | ||
| 600 | if (!this.Core.EncounteredError) | 627 | if (!this.Core.EncounteredError) |
| 601 | { | 628 | { |
| 602 | var row = this.Core.CreateRow(sourceLineNumbers, TupleDefinitionType.WixSuppressModularization); | 629 | this.Core.AddTuple(new WixSuppressModularizationTuple(sourceLineNumbers, new Identifier(AccessModifier.Private, name))); |
| 603 | row.Set(0, name); | ||
| 604 | } | 630 | } |
| 605 | } | 631 | } |
| 606 | 632 | ||
| @@ -642,8 +668,7 @@ namespace WixToolset.Core | |||
| 642 | 668 | ||
| 643 | if (!this.Core.EncounteredError) | 669 | if (!this.Core.EncounteredError) |
| 644 | { | 670 | { |
| 645 | var row = this.Core.CreateRow(sourceLineNumbers, TupleDefinitionType.ModuleIgnoreTable); | 671 | this.Core.AddTuple(new ModuleIgnoreTableTuple(sourceLineNumbers, new Identifier(AccessModifier.Private, id))); |
| 646 | row.Set(0, id); | ||
| 647 | } | 672 | } |
| 648 | } | 673 | } |
| 649 | } | 674 | } |
