aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/ConditionTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/WixToolset.Data/Tuples/ConditionTuple.cs40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/WixToolset.Data/Tuples/ConditionTuple.cs b/src/WixToolset.Data/Tuples/ConditionTuple.cs
index 9b2284a4..3a94ebb1 100644
--- a/src/WixToolset.Data/Tuples/ConditionTuple.cs
+++ b/src/WixToolset.Data/Tuples/ConditionTuple.cs
@@ -2,59 +2,59 @@
2 2
3namespace WixToolset.Data 3namespace WixToolset.Data
4{ 4{
5 using WixToolset.Data.Tuples; 5 using WixToolset.Data.Symbols;
6 6
7 public static partial class TupleDefinitions 7 public static partial class SymbolDefinitions
8 { 8 {
9 public static readonly IntermediateTupleDefinition Condition = new IntermediateTupleDefinition( 9 public static readonly IntermediateSymbolDefinition Condition = new IntermediateSymbolDefinition(
10 TupleDefinitionType.Condition, 10 SymbolDefinitionType.Condition,
11 new[] 11 new[]
12 { 12 {
13 new IntermediateFieldDefinition(nameof(ConditionTupleFields.FeatureRef), IntermediateFieldType.String), 13 new IntermediateFieldDefinition(nameof(ConditionSymbolFields.FeatureRef), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(ConditionTupleFields.Level), IntermediateFieldType.Number), 14 new IntermediateFieldDefinition(nameof(ConditionSymbolFields.Level), IntermediateFieldType.Number),
15 new IntermediateFieldDefinition(nameof(ConditionTupleFields.Condition), IntermediateFieldType.String), 15 new IntermediateFieldDefinition(nameof(ConditionSymbolFields.Condition), IntermediateFieldType.String),
16 }, 16 },
17 typeof(ConditionTuple)); 17 typeof(ConditionSymbol));
18 } 18 }
19} 19}
20 20
21namespace WixToolset.Data.Tuples 21namespace WixToolset.Data.Symbols
22{ 22{
23 public enum ConditionTupleFields 23 public enum ConditionSymbolFields
24 { 24 {
25 FeatureRef, 25 FeatureRef,
26 Level, 26 Level,
27 Condition, 27 Condition,
28 } 28 }
29 29
30 public class ConditionTuple : IntermediateTuple 30 public class ConditionSymbol : IntermediateSymbol
31 { 31 {
32 public ConditionTuple() : base(TupleDefinitions.Condition, null, null) 32 public ConditionSymbol() : base(SymbolDefinitions.Condition, null, null)
33 { 33 {
34 } 34 }
35 35
36 public ConditionTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.Condition, sourceLineNumber, id) 36 public ConditionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Condition, sourceLineNumber, id)
37 { 37 {
38 } 38 }
39 39
40 public IntermediateField this[ConditionTupleFields index] => this.Fields[(int)index]; 40 public IntermediateField this[ConditionSymbolFields index] => this.Fields[(int)index];
41 41
42 public string FeatureRef 42 public string FeatureRef
43 { 43 {
44 get => (string)this.Fields[(int)ConditionTupleFields.FeatureRef]; 44 get => (string)this.Fields[(int)ConditionSymbolFields.FeatureRef];
45 set => this.Set((int)ConditionTupleFields.FeatureRef, value); 45 set => this.Set((int)ConditionSymbolFields.FeatureRef, value);
46 } 46 }
47 47
48 public int Level 48 public int Level
49 { 49 {
50 get => (int)this.Fields[(int)ConditionTupleFields.Level]; 50 get => (int)this.Fields[(int)ConditionSymbolFields.Level];
51 set => this.Set((int)ConditionTupleFields.Level, value); 51 set => this.Set((int)ConditionSymbolFields.Level, value);
52 } 52 }
53 53
54 public string Condition 54 public string Condition
55 { 55 {
56 get => (string)this.Fields[(int)ConditionTupleFields.Condition]; 56 get => (string)this.Fields[(int)ConditionSymbolFields.Condition];
57 set => this.Set((int)ConditionTupleFields.Condition, value); 57 set => this.Set((int)ConditionSymbolFields.Condition, value);
58 } 58 }
59 } 59 }
60} \ No newline at end of file 60} \ No newline at end of file