diff options
Diffstat (limited to '')
-rw-r--r-- | src/WixToolset.Core/CompilerCore.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/WixToolset.Core/CompilerCore.cs b/src/WixToolset.Core/CompilerCore.cs index 2f65db7a..d88858ae 100644 --- a/src/WixToolset.Core/CompilerCore.cs +++ b/src/WixToolset.Core/CompilerCore.cs | |||
@@ -381,6 +381,26 @@ namespace WixToolset.Core | |||
381 | /// </summary> | 381 | /// </summary> |
382 | /// <param name="sourceLineNumbers">Source line information for the row.</param> | 382 | /// <param name="sourceLineNumbers">Source line information for the row.</param> |
383 | /// <param name="symbolName">The symbol name of the simple reference.</param> | 383 | /// <param name="symbolName">The symbol name of the simple reference.</param> |
384 | /// <param name="primaryKey">The primary key of the simple reference.</param> | ||
385 | public void CreateSimpleReference(SourceLineNumber sourceLineNumbers, string symbolName, string primaryKey) | ||
386 | { | ||
387 | if (!this.EncounteredError) | ||
388 | { | ||
389 | var id = String.Concat(symbolName, ":", primaryKey); | ||
390 | |||
391 | // If this simple reference hasn't been added to the active section already, add it. | ||
392 | if (this.activeSectionSimpleReferences.Add(id)) | ||
393 | { | ||
394 | this.parseHelper.CreateSimpleReference(this.ActiveSection, sourceLineNumbers, symbolName, primaryKey); | ||
395 | } | ||
396 | } | ||
397 | } | ||
398 | |||
399 | /// <summary> | ||
400 | /// Create a WixSimpleReferenceSymbol in the active section. | ||
401 | /// </summary> | ||
402 | /// <param name="sourceLineNumbers">Source line information for the row.</param> | ||
403 | /// <param name="symbolName">The symbol name of the simple reference.</param> | ||
384 | /// <param name="primaryKeys">The primary keys of the simple reference.</param> | 404 | /// <param name="primaryKeys">The primary keys of the simple reference.</param> |
385 | public void CreateSimpleReference(SourceLineNumber sourceLineNumbers, string symbolName, params string[] primaryKeys) | 405 | public void CreateSimpleReference(SourceLineNumber sourceLineNumbers, string symbolName, params string[] primaryKeys) |
386 | { | 406 | { |
@@ -402,6 +422,17 @@ namespace WixToolset.Core | |||
402 | /// </summary> | 422 | /// </summary> |
403 | /// <param name="sourceLineNumbers">Source line information for the row.</param> | 423 | /// <param name="sourceLineNumbers">Source line information for the row.</param> |
404 | /// <param name="symbolDefinition">The symbol definition of the simple reference.</param> | 424 | /// <param name="symbolDefinition">The symbol definition of the simple reference.</param> |
425 | /// <param name="primaryKey">The primary key of the simple reference.</param> | ||
426 | public void CreateSimpleReference(SourceLineNumber sourceLineNumbers, IntermediateSymbolDefinition symbolDefinition, string primaryKey) | ||
427 | { | ||
428 | this.CreateSimpleReference(sourceLineNumbers, symbolDefinition.Name, primaryKey); | ||
429 | } | ||
430 | |||
431 | /// <summary> | ||
432 | /// Create a WixSimpleReferenceSymbol in the active section. | ||
433 | /// </summary> | ||
434 | /// <param name="sourceLineNumbers">Source line information for the row.</param> | ||
435 | /// <param name="symbolDefinition">The symbol definition of the simple reference.</param> | ||
405 | /// <param name="primaryKeys">The primary keys of the simple reference.</param> | 436 | /// <param name="primaryKeys">The primary keys of the simple reference.</param> |
406 | public void CreateSimpleReference(SourceLineNumber sourceLineNumbers, IntermediateSymbolDefinition symbolDefinition, params string[] primaryKeys) | 437 | public void CreateSimpleReference(SourceLineNumber sourceLineNumbers, IntermediateSymbolDefinition symbolDefinition, params string[] primaryKeys) |
407 | { | 438 | { |