aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/TupleWithSection.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/WixToolset.Data/TupleWithSection.cs54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/WixToolset.Data/TupleWithSection.cs b/src/WixToolset.Data/TupleWithSection.cs
index a8b88814..89a5fccd 100644
--- a/src/WixToolset.Data/TupleWithSection.cs
+++ b/src/WixToolset.Data/TupleWithSection.cs
@@ -7,29 +7,29 @@ namespace WixToolset.Data
7 using System.Linq; 7 using System.Linq;
8 8
9 /// <summary> 9 /// <summary>
10 /// Tuple with section representing a single unique tuple. 10 /// Symbol with section representing a single unique symbol.
11 /// </summary> 11 /// </summary>
12 public sealed class TupleWithSection 12 public sealed class SymbolWithSection
13 { 13 {
14 private HashSet<TupleWithSection> possibleConflicts; 14 private HashSet<SymbolWithSection> possibleConflicts;
15 private HashSet<TupleWithSection> redundants; 15 private HashSet<SymbolWithSection> redundants;
16 16
17 /// <summary> 17 /// <summary>
18 /// Creates a symbol for a tuple. 18 /// Creates a symbol for a symbol.
19 /// </summary> 19 /// </summary>
20 /// <param name="tuple">Tuple for the symbol</param> 20 /// <param name="symbol">Symbol for the symbol</param>
21 public TupleWithSection(IntermediateSection section, IntermediateTuple tuple) 21 public SymbolWithSection(IntermediateSection section, IntermediateSymbol symbol)
22 { 22 {
23 this.Tuple = tuple; 23 this.Symbol = symbol;
24 this.Section = section; 24 this.Section = section;
25 this.Name = String.Concat(this.Tuple.Definition.Name, ":", this.Tuple.Id.Id); 25 this.Name = String.Concat(this.Symbol.Definition.Name, ":", this.Symbol.Id.Id);
26 } 26 }
27 27
28 /// <summary> 28 /// <summary>
29 /// Gets the accessibility of the symbol which is a direct reflection of the accessibility of the row's accessibility. 29 /// Gets the accessibility of the symbol which is a direct reflection of the accessibility of the row's accessibility.
30 /// </summary> 30 /// </summary>
31 /// <value>Accessbility of the symbol.</value> 31 /// <value>Accessbility of the symbol.</value>
32 public AccessModifier Access => this.Tuple.Id.Access; 32 public AccessModifier Access => this.Symbol.Id.Access;
33 33
34 /// <summary> 34 /// <summary>
35 /// Gets the name of the symbol. 35 /// Gets the name of the symbol.
@@ -38,10 +38,10 @@ namespace WixToolset.Data
38 public string Name { get; } 38 public string Name { get; }
39 39
40 /// <summary> 40 /// <summary>
41 /// Gets the tuple for this symbol. 41 /// Gets the symbol for this symbol.
42 /// </summary> 42 /// </summary>
43 /// <value>Tuple for this symbol.</value> 43 /// <value>Symbol for this symbol.</value>
44 public IntermediateTuple Tuple { get; } 44 public IntermediateSymbol Symbol { get; }
45 45
46 /// <summary> 46 /// <summary>
47 /// Gets the section for the symbol. 47 /// Gets the section for the symbol.
@@ -50,41 +50,41 @@ namespace WixToolset.Data
50 public IntermediateSection Section { get; } 50 public IntermediateSection Section { get; }
51 51
52 /// <summary> 52 /// <summary>
53 /// Gets any duplicates of this tuple with sections that are possible conflicts. 53 /// Gets any duplicates of this symbol with sections that are possible conflicts.
54 /// </summary> 54 /// </summary>
55 public IEnumerable<TupleWithSection> PossiblyConflicts => this.possibleConflicts ?? Enumerable.Empty<TupleWithSection>(); 55 public IEnumerable<SymbolWithSection> PossiblyConflicts => this.possibleConflicts ?? Enumerable.Empty<SymbolWithSection>();
56 56
57 /// <summary> 57 /// <summary>
58 /// Gets any duplicates of this tuple with sections that are redundant. 58 /// Gets any duplicates of this symbol with sections that are redundant.
59 /// </summary> 59 /// </summary>
60 public IEnumerable<TupleWithSection> Redundants => this.redundants ?? Enumerable.Empty<TupleWithSection>(); 60 public IEnumerable<SymbolWithSection> Redundants => this.redundants ?? Enumerable.Empty<SymbolWithSection>();
61 61
62 /// <summary> 62 /// <summary>
63 /// Adds a duplicate tuple with sections that is a possible conflict. 63 /// Adds a duplicate symbol with sections that is a possible conflict.
64 /// </summary> 64 /// </summary>
65 /// <param name="tupleWithSection">Tuple with section that is a possible conflict of this symbol.</param> 65 /// <param name="symbolWithSection">Symbol with section that is a possible conflict of this symbol.</param>
66 public void AddPossibleConflict(TupleWithSection tupleWithSection) 66 public void AddPossibleConflict(SymbolWithSection symbolWithSection)
67 { 67 {
68 if (null == this.possibleConflicts) 68 if (null == this.possibleConflicts)
69 { 69 {
70 this.possibleConflicts = new HashSet<TupleWithSection>(); 70 this.possibleConflicts = new HashSet<SymbolWithSection>();
71 } 71 }
72 72
73 this.possibleConflicts.Add(tupleWithSection); 73 this.possibleConflicts.Add(symbolWithSection);
74 } 74 }
75 75
76 /// <summary> 76 /// <summary>
77 /// Adds a duplicate tuple that is redundant. 77 /// Adds a duplicate symbol that is redundant.
78 /// </summary> 78 /// </summary>
79 /// <param name="tupleWithSection">Tuple with section that is redundant of this tuple.</param> 79 /// <param name="symbolWithSection">Symbol with section that is redundant of this symbol.</param>
80 public void AddRedundant(TupleWithSection tupleWithSection) 80 public void AddRedundant(SymbolWithSection symbolWithSection)
81 { 81 {
82 if (null == this.redundants) 82 if (null == this.redundants)
83 { 83 {
84 this.redundants = new HashSet<TupleWithSection>(); 84 this.redundants = new HashSet<SymbolWithSection>();
85 } 85 }
86 86
87 this.redundants.Add(tupleWithSection); 87 this.redundants.Add(symbolWithSection);
88 } 88 }
89 } 89 }
90} 90}