diff options
| author | Rob Mensching <rob@firegiant.com> | 2020-06-24 14:05:08 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2020-06-25 12:48:19 -0700 |
| commit | 9787570331b511bab73ac8f4f38a3b8cfa053ca5 (patch) | |
| tree | 508155e2cf4f6bafeef2be1059da547291025352 /src/WixToolset.Data/SimpleTupleDefinitionCreator.cs | |
| parent | 2bcc21d5c2d27e578f59f905f6acd0979b78aa9d (diff) | |
| download | wix-9787570331b511bab73ac8f4f38a3b8cfa053ca5.tar.gz wix-9787570331b511bab73ac8f4f38a3b8cfa053ca5.tar.bz2 wix-9787570331b511bab73ac8f4f38a3b8cfa053ca5.zip | |
The Great Tuple to Symbol Rename (tm)
Diffstat (limited to 'src/WixToolset.Data/SimpleTupleDefinitionCreator.cs')
| -rw-r--r-- | src/WixToolset.Data/SimpleTupleDefinitionCreator.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/WixToolset.Data/SimpleTupleDefinitionCreator.cs b/src/WixToolset.Data/SimpleTupleDefinitionCreator.cs index 257f028c..e22d53e7 100644 --- a/src/WixToolset.Data/SimpleTupleDefinitionCreator.cs +++ b/src/WixToolset.Data/SimpleTupleDefinitionCreator.cs | |||
| @@ -4,11 +4,11 @@ namespace WixToolset.Data | |||
| 4 | { | 4 | { |
| 5 | using System.Collections.Generic; | 5 | using System.Collections.Generic; |
| 6 | 6 | ||
| 7 | internal class SimpleTupleDefinitionCreator : ITupleDefinitionCreator | 7 | internal class SimpleSymbolDefinitionCreator : ISymbolDefinitionCreator |
| 8 | { | 8 | { |
| 9 | private Dictionary<string, IntermediateTupleDefinition> CustomDefinitionByName { get; } = new Dictionary<string, IntermediateTupleDefinition>(); | 9 | private Dictionary<string, IntermediateSymbolDefinition> CustomDefinitionByName { get; } = new Dictionary<string, IntermediateSymbolDefinition>(); |
| 10 | 10 | ||
| 11 | public void AddCustomTupleDefinition(IntermediateTupleDefinition definition) | 11 | public void AddCustomSymbolDefinition(IntermediateSymbolDefinition definition) |
| 12 | { | 12 | { |
| 13 | if (!this.CustomDefinitionByName.TryGetValue(definition.Name, out var existing) || definition.Revision > existing.Revision) | 13 | if (!this.CustomDefinitionByName.TryGetValue(definition.Name, out var existing) || definition.Revision > existing.Revision) |
| 14 | { | 14 | { |
| @@ -16,16 +16,16 @@ namespace WixToolset.Data | |||
| 16 | } | 16 | } |
| 17 | } | 17 | } |
| 18 | 18 | ||
| 19 | public bool TryGetTupleDefinitionByName(string name, out IntermediateTupleDefinition tupleDefinition) | 19 | public bool TryGetSymbolDefinitionByName(string name, out IntermediateSymbolDefinition symbolDefinition) |
| 20 | { | 20 | { |
| 21 | tupleDefinition = TupleDefinitions.ByName(name); | 21 | symbolDefinition = SymbolDefinitions.ByName(name); |
| 22 | 22 | ||
| 23 | if (tupleDefinition == null) | 23 | if (symbolDefinition == null) |
| 24 | { | 24 | { |
| 25 | tupleDefinition = this.CustomDefinitionByName.GetValueOrDefault(name); | 25 | symbolDefinition = this.CustomDefinitionByName.GetValueOrDefault(name); |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | return tupleDefinition != null; | 28 | return symbolDefinition != null; |
| 29 | } | 29 | } |
| 30 | } | 30 | } |
| 31 | } | 31 | } |
