diff options
Diffstat (limited to 'src/WixToolset.Core/CompilerCore.cs')
-rw-r--r-- | src/WixToolset.Core/CompilerCore.cs | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/src/WixToolset.Core/CompilerCore.cs b/src/WixToolset.Core/CompilerCore.cs index 5d0edaf1..7ec83a7d 100644 --- a/src/WixToolset.Core/CompilerCore.cs +++ b/src/WixToolset.Core/CompilerCore.cs | |||
@@ -13,7 +13,7 @@ namespace WixToolset.Core | |||
13 | using System.Text.RegularExpressions; | 13 | using System.Text.RegularExpressions; |
14 | using System.Xml.Linq; | 14 | using System.Xml.Linq; |
15 | using WixToolset.Data; | 15 | using WixToolset.Data; |
16 | using WixToolset.Data.Tuples; | 16 | using WixToolset.Data.Symbols; |
17 | using WixToolset.Data.WindowsInstaller; | 17 | using WixToolset.Data.WindowsInstaller; |
18 | using WixToolset.Extensibility; | 18 | using WixToolset.Extensibility; |
19 | using WixToolset.Extensibility.Data; | 19 | using WixToolset.Extensibility.Data; |
@@ -164,13 +164,13 @@ namespace WixToolset.Core | |||
164 | public bool ShowPedanticMessages { get; set; } | 164 | public bool ShowPedanticMessages { get; set; } |
165 | 165 | ||
166 | /// <summary> | 166 | /// <summary> |
167 | /// Add a tuple to the active section. | 167 | /// Add a symbol to the active section. |
168 | /// </summary> | 168 | /// </summary> |
169 | /// <param name="tuple">Tuple to add.</param> | 169 | /// <param name="symbol">Symbol to add.</param> |
170 | public T AddTuple<T>(T tuple) | 170 | public T AddSymbol<T>(T symbol) |
171 | where T : IntermediateTuple | 171 | where T : IntermediateSymbol |
172 | { | 172 | { |
173 | return this.ActiveSection.AddTuple(tuple); | 173 | return this.ActiveSection.AddSymbol(symbol); |
174 | } | 174 | } |
175 | 175 | ||
176 | /// <summary> | 176 | /// <summary> |
@@ -355,39 +355,39 @@ namespace WixToolset.Core | |||
355 | /// <param name="componentId">The component which will control installation/uninstallation of the registry entry.</param> | 355 | /// <param name="componentId">The component which will control installation/uninstallation of the registry entry.</param> |
356 | public Identifier CreateRegistryRow(SourceLineNumber sourceLineNumbers, RegistryRootType root, string key, string name, string value, string componentId) | 356 | public Identifier CreateRegistryRow(SourceLineNumber sourceLineNumbers, RegistryRootType root, string key, string name, string value, string componentId) |
357 | { | 357 | { |
358 | return this.parseHelper.CreateRegistryTuple(this.ActiveSection, sourceLineNumbers, root, key, name, value, componentId, true); | 358 | return this.parseHelper.CreateRegistrySymbol(this.ActiveSection, sourceLineNumbers, root, key, name, value, componentId, true); |
359 | } | 359 | } |
360 | 360 | ||
361 | /// <summary> | 361 | /// <summary> |
362 | /// Create a WixSimpleReferenceTuple in the active section. | 362 | /// Create a WixSimpleReferenceSymbol in the active section. |
363 | /// </summary> | 363 | /// </summary> |
364 | /// <param name="sourceLineNumbers">Source line information for the row.</param> | 364 | /// <param name="sourceLineNumbers">Source line information for the row.</param> |
365 | /// <param name="tupleName">The tuple name of the simple reference.</param> | 365 | /// <param name="symbolName">The symbol name of the simple reference.</param> |
366 | /// <param name="primaryKeys">The primary keys of the simple reference.</param> | 366 | /// <param name="primaryKeys">The primary keys of the simple reference.</param> |
367 | public void CreateSimpleReference(SourceLineNumber sourceLineNumbers, string tupleName, params string[] primaryKeys) | 367 | public void CreateSimpleReference(SourceLineNumber sourceLineNumbers, string symbolName, params string[] primaryKeys) |
368 | { | 368 | { |
369 | if (!this.EncounteredError) | 369 | if (!this.EncounteredError) |
370 | { | 370 | { |
371 | var joinedKeys = String.Join("/", primaryKeys); | 371 | var joinedKeys = String.Join("/", primaryKeys); |
372 | var id = String.Concat(tupleName, ":", joinedKeys); | 372 | var id = String.Concat(symbolName, ":", joinedKeys); |
373 | 373 | ||
374 | // If this simple reference hasn't been added to the active section already, add it. | 374 | // If this simple reference hasn't been added to the active section already, add it. |
375 | if (this.activeSectionSimpleReferences.Add(id)) | 375 | if (this.activeSectionSimpleReferences.Add(id)) |
376 | { | 376 | { |
377 | this.parseHelper.CreateSimpleReference(this.ActiveSection, sourceLineNumbers, tupleName, primaryKeys); | 377 | this.parseHelper.CreateSimpleReference(this.ActiveSection, sourceLineNumbers, symbolName, primaryKeys); |
378 | } | 378 | } |
379 | } | 379 | } |
380 | } | 380 | } |
381 | 381 | ||
382 | /// <summary> | 382 | /// <summary> |
383 | /// Create a WixSimpleReferenceTuple in the active section. | 383 | /// Create a WixSimpleReferenceSymbol in the active section. |
384 | /// </summary> | 384 | /// </summary> |
385 | /// <param name="sourceLineNumbers">Source line information for the row.</param> | 385 | /// <param name="sourceLineNumbers">Source line information for the row.</param> |
386 | /// <param name="tupleDefinition">The tuple definition of the simple reference.</param> | 386 | /// <param name="symbolDefinition">The symbol definition of the simple reference.</param> |
387 | /// <param name="primaryKeys">The primary keys of the simple reference.</param> | 387 | /// <param name="primaryKeys">The primary keys of the simple reference.</param> |
388 | public void CreateSimpleReference(SourceLineNumber sourceLineNumbers, IntermediateTupleDefinition tupleDefinition, params string[] primaryKeys) | 388 | public void CreateSimpleReference(SourceLineNumber sourceLineNumbers, IntermediateSymbolDefinition symbolDefinition, params string[] primaryKeys) |
389 | { | 389 | { |
390 | this.CreateSimpleReference(sourceLineNumbers, tupleDefinition.Name, primaryKeys); | 390 | this.CreateSimpleReference(sourceLineNumbers, symbolDefinition.Name, primaryKeys); |
391 | } | 391 | } |
392 | 392 | ||
393 | /// <summary> | 393 | /// <summary> |
@@ -402,12 +402,12 @@ namespace WixToolset.Core | |||
402 | { | 402 | { |
403 | if (!this.EncounteredError) | 403 | if (!this.EncounteredError) |
404 | { | 404 | { |
405 | this.parseHelper.CreateWixGroupTuple(this.ActiveSection, sourceLineNumbers, parentType, parentId, childType, childId); | 405 | this.parseHelper.CreateWixGroupSymbol(this.ActiveSection, sourceLineNumbers, parentType, parentId, childType, childId); |
406 | } | 406 | } |
407 | } | 407 | } |
408 | 408 | ||
409 | /// <summary> | 409 | /// <summary> |
410 | /// Add the appropriate tuples to make sure that the given table shows up | 410 | /// Add the appropriate symbols to make sure that the given table shows up |
411 | /// in the resulting output. | 411 | /// in the resulting output. |
412 | /// </summary> | 412 | /// </summary> |
413 | /// <param name="sourceLineNumbers">Source line numbers.</param> | 413 | /// <param name="sourceLineNumbers">Source line numbers.</param> |
@@ -421,7 +421,7 @@ namespace WixToolset.Core | |||
421 | } | 421 | } |
422 | 422 | ||
423 | /// <summary> | 423 | /// <summary> |
424 | /// Add the appropriate tuples to make sure that the given table shows up | 424 | /// Add the appropriate symbols to make sure that the given table shows up |
425 | /// in the resulting output. | 425 | /// in the resulting output. |
426 | /// </summary> | 426 | /// </summary> |
427 | /// <param name="sourceLineNumbers">Source line numbers.</param> | 427 | /// <param name="sourceLineNumbers">Source line numbers.</param> |
@@ -1013,12 +1013,12 @@ namespace WixToolset.Core | |||
1013 | /// <returns>Identifier for the newly created row.</returns> | 1013 | /// <returns>Identifier for the newly created row.</returns> |
1014 | internal Identifier CreateDirectoryRow(SourceLineNumber sourceLineNumbers, Identifier id, string parentId, string name, string shortName = null, string sourceName = null, string shortSourceName = null) | 1014 | internal Identifier CreateDirectoryRow(SourceLineNumber sourceLineNumbers, Identifier id, string parentId, string name, string shortName = null, string sourceName = null, string shortSourceName = null) |
1015 | { | 1015 | { |
1016 | return this.parseHelper.CreateDirectoryTuple(this.ActiveSection, sourceLineNumbers, id, parentId, name, this.activeSectionInlinedDirectoryIds, shortName, sourceName, shortSourceName); | 1016 | return this.parseHelper.CreateDirectorySymbol(this.ActiveSection, sourceLineNumbers, id, parentId, name, this.activeSectionInlinedDirectoryIds, shortName, sourceName, shortSourceName); |
1017 | } | 1017 | } |
1018 | 1018 | ||
1019 | public void CreateWixSearchTuple(SourceLineNumber sourceLineNumbers, string elementName, Identifier id, string variable, string condition, string after) | 1019 | public void CreateWixSearchSymbol(SourceLineNumber sourceLineNumbers, string elementName, Identifier id, string variable, string condition, string after) |
1020 | { | 1020 | { |
1021 | this.parseHelper.CreateWixSearchTuple(this.ActiveSection, sourceLineNumbers, elementName, id, variable, condition, after, null); | 1021 | this.parseHelper.CreateWixSearchSymbol(this.ActiveSection, sourceLineNumbers, elementName, id, variable, condition, after, null); |
1022 | } | 1022 | } |
1023 | 1023 | ||
1024 | /// <summary> | 1024 | /// <summary> |
@@ -1033,9 +1033,9 @@ namespace WixToolset.Core | |||
1033 | return this.parseHelper.GetAttributeInlineDirectorySyntax(sourceLineNumbers, attribute, resultUsedToCreateReference); | 1033 | return this.parseHelper.GetAttributeInlineDirectorySyntax(sourceLineNumbers, attribute, resultUsedToCreateReference); |
1034 | } | 1034 | } |
1035 | 1035 | ||
1036 | internal WixActionTuple ScheduleActionTuple(SourceLineNumber sourceLineNumbers, AccessModifier access, SequenceTable sequence, string actionName, string condition = null, string beforeAction = null, string afterAction = null, bool overridable = false) | 1036 | internal WixActionSymbol ScheduleActionSymbol(SourceLineNumber sourceLineNumbers, AccessModifier access, SequenceTable sequence, string actionName, string condition = null, string beforeAction = null, string afterAction = null, bool overridable = false) |
1037 | { | 1037 | { |
1038 | return this.parseHelper.ScheduleActionTuple(this.ActiveSection, sourceLineNumbers, access, sequence, actionName, condition, beforeAction, afterAction, overridable); | 1038 | return this.parseHelper.ScheduleActionSymbol(this.ActiveSection, sourceLineNumbers, access, sequence, actionName, condition, beforeAction, afterAction, overridable); |
1039 | } | 1039 | } |
1040 | 1040 | ||
1041 | /// <summary> | 1041 | /// <summary> |