From 860f77f7c9d522074dc7e44cfe11281efd20687f Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Mon, 5 Apr 2021 12:55:26 -0700 Subject: Introduce "Subdirectory" which simplifies inline directory syntax Completes wixtoolset/issues#4727 --- src/WixToolset.Core/CompilerCore.cs | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'src/WixToolset.Core/CompilerCore.cs') diff --git a/src/WixToolset.Core/CompilerCore.cs b/src/WixToolset.Core/CompilerCore.cs index df532d74..8705cacd 100644 --- a/src/WixToolset.Core/CompilerCore.cs +++ b/src/WixToolset.Core/CompilerCore.cs @@ -386,13 +386,12 @@ namespace WixToolset.Core /// Creates directories using the inline directory syntax. /// /// Source line information. - /// Attribute containing the inline syntax. /// Optional identifier of parent directory. /// Optional inline syntax to override attribute's value. /// Identifier of the leaf directory created. - public string CreateDirectoryReferenceFromInlineSyntax(SourceLineNumber sourceLineNumbers, XAttribute attribute, string parentId, string inlineSyntax = null) + public string CreateDirectoryReferenceFromInlineSyntax(SourceLineNumber sourceLineNumbers, string parentId, string inlineSyntax = null) { - return this.parseHelper.CreateDirectoryReferenceFromInlineSyntax(this.ActiveSection, sourceLineNumbers, attribute, parentId, inlineSyntax, this.activeSectionCachedInlinedDirectoryIds); + return this.parseHelper.CreateDirectoryReferenceFromInlineSyntax(this.ActiveSection, sourceLineNumbers, attribute: null, parentId, inlineSyntax, this.activeSectionCachedInlinedDirectoryIds); } /// @@ -784,7 +783,7 @@ namespace WixToolset.Core /// The attribute containing the value to get. /// true if wildcards are allowed in the filename. /// The attribute's short filename value. - public string GetAttributeShortFilename(SourceLineNumber sourceLineNumbers, XAttribute attribute, bool allowWildcards) + public string GetAttributeShortFilename(SourceLineNumber sourceLineNumbers, XAttribute attribute, bool allowWildcards = false) { if (null == attribute) { @@ -1021,16 +1020,6 @@ namespace WixToolset.Core } } - /// - /// Adds inline directory syntax generated identifier. - /// - /// Inline directory syntax the identifier was generated. - /// Generated identifier for inline syntax. - internal void AddInlineDirectoryId(string inlineSyntax, string id) - { - this.activeSectionCachedInlinedDirectoryIds.Add(inlineSyntax, id); - } - /// /// Creates a new section and makes it the active section in the core. /// -- cgit v1.2.3-55-g6feb