From 523c66a62a619e6aa9f30070173ea33edfb5e328 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Sun, 29 Dec 2024 18:01:20 -0800 Subject: Rename "bundle id" concept to "bundle code" The "bundle id" always had more in common with the PackageCode from the Windows Installer. With the introduction of an actual Id attribute on the Bundle element, there is potential for confusion, so there is finally real motivation to rename "bundle id" to "bundle code". --- .../ForTestingUseOnlyExtension/ForTestingUseOnlyCompiler.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/test/burn/ForTestingUseOnlyExtension/ForTestingUseOnlyCompiler.cs') diff --git a/src/test/burn/ForTestingUseOnlyExtension/ForTestingUseOnlyCompiler.cs b/src/test/burn/ForTestingUseOnlyExtension/ForTestingUseOnlyCompiler.cs index 4963c941..f6ff7f87 100644 --- a/src/test/burn/ForTestingUseOnlyExtension/ForTestingUseOnlyCompiler.cs +++ b/src/test/burn/ForTestingUseOnlyExtension/ForTestingUseOnlyCompiler.cs @@ -32,7 +32,7 @@ namespace ForTestingUseOnly private void ParseForTestingUseOnlyBundleElement(Intermediate intermediate, IntermediateSection section, XElement element) { var sourceLineNumbers = this.ParseHelper.GetSourceLineNumbers(element); - string bundleId = null; + string bundleCode = null; foreach (var attrib in element.Attributes()) { @@ -41,7 +41,7 @@ namespace ForTestingUseOnly switch (attrib.Name.LocalName) { case "Id": - bundleId = this.ParseHelper.GetAttributeValue(sourceLineNumbers, attrib); + bundleCode = this.ParseHelper.GetAttributeValue(sourceLineNumbers, attrib); break; default: this.ParseHelper.UnexpectedAttribute(element, attrib); @@ -54,13 +54,13 @@ namespace ForTestingUseOnly } } - if (null == bundleId) + if (null == bundleCode) { this.Messaging.Write(ErrorMessages.ExpectedAttribute(sourceLineNumbers, element.Name.LocalName, "Id")); } else { - bundleId = Guid.Parse(bundleId).ToString("B").ToUpperInvariant(); + bundleCode = Guid.Parse(bundleCode).ToString("B").ToUpperInvariant(); } this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); @@ -69,7 +69,7 @@ namespace ForTestingUseOnly { section.AddSymbol(new ForTestingUseOnlyBundleSymbol(sourceLineNumbers, new Identifier(AccessModifier.Global, "ForTestingUseOnlyBundle")) { - BundleId = bundleId, + BundleCode = bundleCode, }); } } -- cgit v1.2.3-55-g6feb