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.cs59
1 files changed, 7 insertions, 52 deletions
diff --git a/src/WixToolset.Core/CompilerCore.cs b/src/WixToolset.Core/CompilerCore.cs
index d21e490f..ea235a97 100644
--- a/src/WixToolset.Core/CompilerCore.cs
+++ b/src/WixToolset.Core/CompilerCore.cs
@@ -402,7 +402,7 @@ namespace WixToolset.Core
402 /// <returns>Identifier of the leaf directory created.</returns> 402 /// <returns>Identifier of the leaf directory created.</returns>
403 public string CreateDirectoryReferenceFromInlineSyntax(SourceLineNumber sourceLineNumbers, XAttribute attribute, string parentId) 403 public string CreateDirectoryReferenceFromInlineSyntax(SourceLineNumber sourceLineNumbers, XAttribute attribute, string parentId)
404 { 404 {
405 return this.parseHelper.CreateDirectoryReferenceFromInlineSyntax(this.ActiveSection, sourceLineNumbers, attribute, parentId); 405 return this.parseHelper.CreateDirectoryReferenceFromInlineSyntax(this.ActiveSection, sourceLineNumbers, parentId, attribute, this.activeSectionInlinedDirectoryIds);
406 } 406 }
407 407
408 /// <summary> 408 /// <summary>
@@ -1147,57 +1147,7 @@ namespace WixToolset.Core
1147 /// <returns>Identifier for the newly created row.</returns> 1147 /// <returns>Identifier for the newly created row.</returns>
1148 internal Identifier CreateDirectoryRow(SourceLineNumber sourceLineNumbers, Identifier id, string parentId, string name, string shortName = null, string sourceName = null, string shortSourceName = null) 1148 internal Identifier CreateDirectoryRow(SourceLineNumber sourceLineNumbers, Identifier id, string parentId, string name, string shortName = null, string sourceName = null, string shortSourceName = null)
1149 { 1149 {
1150 //string defaultDir = null; 1150 return this.parseHelper.CreateDirectoryRow(this.ActiveSection, sourceLineNumbers, id, parentId, name, this.activeSectionInlinedDirectoryIds, shortName, sourceName, shortSourceName);
1151
1152 //if (name.Equals("SourceDir") || this.IsValidShortFilename(name, false))
1153 //{
1154 // defaultDir = name;
1155 //}
1156 //else
1157 //{
1158 // if (String.IsNullOrEmpty(shortName))
1159 // {
1160 // shortName = this.CreateShortName(name, false, false, "Directory", parentId);
1161 // }
1162
1163 // defaultDir = String.Concat(shortName, "|", name);
1164 //}
1165
1166 //if (!String.IsNullOrEmpty(sourceName))
1167 //{
1168 // if (this.IsValidShortFilename(sourceName, false))
1169 // {
1170 // defaultDir = String.Concat(defaultDir, ":", sourceName);
1171 // }
1172 // else
1173 // {
1174 // if (String.IsNullOrEmpty(shortSourceName))
1175 // {
1176 // shortSourceName = this.CreateShortName(sourceName, false, false, "Directory", parentId);
1177 // }
1178
1179 // defaultDir = String.Concat(defaultDir, ":", shortSourceName, "|", sourceName);
1180 // }
1181 //}
1182
1183 //// For anonymous directories, create the identifier. If this identifier already exists in the
1184 //// active section, bail so we don't add duplicate anonymous directory rows (which are legal
1185 //// but bloat the intermediate and ultimately make the linker do "busy work").
1186 //if (null == id)
1187 //{
1188 // id = this.CreateIdentifier("dir", parentId, name, shortName, sourceName, shortSourceName);
1189
1190 // if (!this.activeSectionInlinedDirectoryIds.Add(id.Id))
1191 // {
1192 // return id;
1193 // }
1194 //}
1195
1196 //var row = this.CreateRow(sourceLineNumbers, TupleDefinitionType.Directory, id);
1197 //row.Set(1, parentId);
1198 //row.Set(2, defaultDir);
1199 //return id;
1200 return this.parseHelper.CreateDirectoryRow(this.ActiveSection, sourceLineNumbers, id, parentId, name, shortName, sourceName, shortSourceName, this.activeSectionInlinedDirectoryIds);
1201 } 1151 }
1202 1152
1203 /// <summary> 1153 /// <summary>
@@ -1212,6 +1162,11 @@ namespace WixToolset.Core
1212 return this.parseHelper.GetAttributeInlineDirectorySyntax(sourceLineNumbers, attribute, resultUsedToCreateReference); 1162 return this.parseHelper.GetAttributeInlineDirectorySyntax(sourceLineNumbers, attribute, resultUsedToCreateReference);
1213 } 1163 }
1214 1164
1165 internal WixActionTuple ScheduleActionTuple(SourceLineNumber sourceLineNumbers, AccessModifier access, SequenceTable sequence, string actionName, string condition = null, string beforeAction = null, string afterAction = null, bool overridable = false)
1166 {
1167 return this.parseHelper.ScheduleActionTuple(this.ActiveSection, sourceLineNumbers, access, sequence, actionName, condition, beforeAction, afterAction, overridable);
1168 }
1169
1215 /// <summary> 1170 /// <summary>
1216 /// Finds a compiler extension by namespace URI. 1171 /// Finds a compiler extension by namespace URI.
1217 /// </summary> 1172 /// </summary>