From 9787570331b511bab73ac8f4f38a3b8cfa053ca5 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Wed, 24 Jun 2020 14:05:08 -0700 Subject: The Great Tuple to Symbol Rename (tm) --- src/WixToolset.Data/Tuples/ConditionTuple.cs | 40 ++++++++++++++-------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'src/WixToolset.Data/Tuples/ConditionTuple.cs') 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 @@ namespace WixToolset.Data { - using WixToolset.Data.Tuples; + using WixToolset.Data.Symbols; - public static partial class TupleDefinitions + public static partial class SymbolDefinitions { - public static readonly IntermediateTupleDefinition Condition = new IntermediateTupleDefinition( - TupleDefinitionType.Condition, + public static readonly IntermediateSymbolDefinition Condition = new IntermediateSymbolDefinition( + SymbolDefinitionType.Condition, new[] { - new IntermediateFieldDefinition(nameof(ConditionTupleFields.FeatureRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(ConditionTupleFields.Level), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(ConditionTupleFields.Condition), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ConditionSymbolFields.FeatureRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ConditionSymbolFields.Level), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ConditionSymbolFields.Condition), IntermediateFieldType.String), }, - typeof(ConditionTuple)); + typeof(ConditionSymbol)); } } -namespace WixToolset.Data.Tuples +namespace WixToolset.Data.Symbols { - public enum ConditionTupleFields + public enum ConditionSymbolFields { FeatureRef, Level, Condition, } - public class ConditionTuple : IntermediateTuple + public class ConditionSymbol : IntermediateSymbol { - public ConditionTuple() : base(TupleDefinitions.Condition, null, null) + public ConditionSymbol() : base(SymbolDefinitions.Condition, null, null) { } - public ConditionTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.Condition, sourceLineNumber, id) + public ConditionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Condition, sourceLineNumber, id) { } - public IntermediateField this[ConditionTupleFields index] => this.Fields[(int)index]; + public IntermediateField this[ConditionSymbolFields index] => this.Fields[(int)index]; public string FeatureRef { - get => (string)this.Fields[(int)ConditionTupleFields.FeatureRef]; - set => this.Set((int)ConditionTupleFields.FeatureRef, value); + get => (string)this.Fields[(int)ConditionSymbolFields.FeatureRef]; + set => this.Set((int)ConditionSymbolFields.FeatureRef, value); } public int Level { - get => (int)this.Fields[(int)ConditionTupleFields.Level]; - set => this.Set((int)ConditionTupleFields.Level, value); + get => (int)this.Fields[(int)ConditionSymbolFields.Level]; + set => this.Set((int)ConditionSymbolFields.Level, value); } public string Condition { - get => (string)this.Fields[(int)ConditionTupleFields.Condition]; - set => this.Set((int)ConditionTupleFields.Condition, value); + get => (string)this.Fields[(int)ConditionSymbolFields.Condition]; + set => this.Set((int)ConditionSymbolFields.Condition, value); } } } \ No newline at end of file -- cgit v1.2.3-55-g6feb