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/Tuples/EnvironmentTuple.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/Tuples/EnvironmentTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/EnvironmentTuple.cs | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/src/WixToolset.Data/Tuples/EnvironmentTuple.cs b/src/WixToolset.Data/Tuples/EnvironmentTuple.cs index 98c51f4d..3fe12d4b 100644 --- a/src/WixToolset.Data/Tuples/EnvironmentTuple.cs +++ b/src/WixToolset.Data/Tuples/EnvironmentTuple.cs | |||
| @@ -2,30 +2,30 @@ | |||
| 2 | 2 | ||
| 3 | namespace WixToolset.Data | 3 | namespace 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 Environment = new IntermediateTupleDefinition( | 9 | public static readonly IntermediateSymbolDefinition Environment = new IntermediateSymbolDefinition( |
| 10 | TupleDefinitionType.Environment, | 10 | SymbolDefinitionType.Environment, |
| 11 | new[] | 11 | new[] |
| 12 | { | 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(EnvironmentTupleFields.Name), IntermediateFieldType.String), | 13 | new IntermediateFieldDefinition(nameof(EnvironmentSymbolFields.Name), IntermediateFieldType.String), |
| 14 | new IntermediateFieldDefinition(nameof(EnvironmentTupleFields.Value), IntermediateFieldType.String), | 14 | new IntermediateFieldDefinition(nameof(EnvironmentSymbolFields.Value), IntermediateFieldType.String), |
| 15 | new IntermediateFieldDefinition(nameof(EnvironmentTupleFields.Separator), IntermediateFieldType.String), | 15 | new IntermediateFieldDefinition(nameof(EnvironmentSymbolFields.Separator), IntermediateFieldType.String), |
| 16 | new IntermediateFieldDefinition(nameof(EnvironmentTupleFields.Action), IntermediateFieldType.Number), | 16 | new IntermediateFieldDefinition(nameof(EnvironmentSymbolFields.Action), IntermediateFieldType.Number), |
| 17 | new IntermediateFieldDefinition(nameof(EnvironmentTupleFields.Part), IntermediateFieldType.Number), | 17 | new IntermediateFieldDefinition(nameof(EnvironmentSymbolFields.Part), IntermediateFieldType.Number), |
| 18 | new IntermediateFieldDefinition(nameof(EnvironmentTupleFields.Permanent), IntermediateFieldType.Bool), | 18 | new IntermediateFieldDefinition(nameof(EnvironmentSymbolFields.Permanent), IntermediateFieldType.Bool), |
| 19 | new IntermediateFieldDefinition(nameof(EnvironmentTupleFields.System), IntermediateFieldType.Bool), | 19 | new IntermediateFieldDefinition(nameof(EnvironmentSymbolFields.System), IntermediateFieldType.Bool), |
| 20 | new IntermediateFieldDefinition(nameof(EnvironmentTupleFields.ComponentRef), IntermediateFieldType.String), | 20 | new IntermediateFieldDefinition(nameof(EnvironmentSymbolFields.ComponentRef), IntermediateFieldType.String), |
| 21 | }, | 21 | }, |
| 22 | typeof(EnvironmentTuple)); | 22 | typeof(EnvironmentSymbol)); |
| 23 | } | 23 | } |
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | namespace WixToolset.Data.Tuples | 26 | namespace WixToolset.Data.Symbols |
| 27 | { | 27 | { |
| 28 | public enum EnvironmentTupleFields | 28 | public enum EnvironmentSymbolFields |
| 29 | { | 29 | { |
| 30 | Name, | 30 | Name, |
| 31 | Value, | 31 | Value, |
| @@ -51,64 +51,64 @@ namespace WixToolset.Data.Tuples | |||
| 51 | Last | 51 | Last |
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | public class EnvironmentTuple : IntermediateTuple | 54 | public class EnvironmentSymbol : IntermediateSymbol |
| 55 | { | 55 | { |
| 56 | public EnvironmentTuple() : base(TupleDefinitions.Environment, null, null) | 56 | public EnvironmentSymbol() : base(SymbolDefinitions.Environment, null, null) |
| 57 | { | 57 | { |
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | public EnvironmentTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.Environment, sourceLineNumber, id) | 60 | public EnvironmentSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Environment, sourceLineNumber, id) |
| 61 | { | 61 | { |
| 62 | } | 62 | } |
| 63 | 63 | ||
| 64 | public IntermediateField this[EnvironmentTupleFields index] => this.Fields[(int)index]; | 64 | public IntermediateField this[EnvironmentSymbolFields index] => this.Fields[(int)index]; |
| 65 | 65 | ||
| 66 | public string Name | 66 | public string Name |
| 67 | { | 67 | { |
| 68 | get => (string)this.Fields[(int)EnvironmentTupleFields.Name]; | 68 | get => (string)this.Fields[(int)EnvironmentSymbolFields.Name]; |
| 69 | set => this.Set((int)EnvironmentTupleFields.Name, value); | 69 | set => this.Set((int)EnvironmentSymbolFields.Name, value); |
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | public string Value | 72 | public string Value |
| 73 | { | 73 | { |
| 74 | get => (string)this.Fields[(int)EnvironmentTupleFields.Value]; | 74 | get => (string)this.Fields[(int)EnvironmentSymbolFields.Value]; |
| 75 | set => this.Set((int)EnvironmentTupleFields.Value, value); | 75 | set => this.Set((int)EnvironmentSymbolFields.Value, value); |
| 76 | } | 76 | } |
| 77 | 77 | ||
| 78 | public string Separator | 78 | public string Separator |
| 79 | { | 79 | { |
| 80 | get => (string)this.Fields[(int)EnvironmentTupleFields.Separator]; | 80 | get => (string)this.Fields[(int)EnvironmentSymbolFields.Separator]; |
| 81 | set => this.Set((int)EnvironmentTupleFields.Separator, value); | 81 | set => this.Set((int)EnvironmentSymbolFields.Separator, value); |
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | public EnvironmentActionType? Action | 84 | public EnvironmentActionType? Action |
| 85 | { | 85 | { |
| 86 | get => (EnvironmentActionType?)this.Fields[(int)EnvironmentTupleFields.Action].AsNullableNumber(); | 86 | get => (EnvironmentActionType?)this.Fields[(int)EnvironmentSymbolFields.Action].AsNullableNumber(); |
| 87 | set => this.Set((int)EnvironmentTupleFields.Action, (int?)value); | 87 | set => this.Set((int)EnvironmentSymbolFields.Action, (int?)value); |
| 88 | } | 88 | } |
| 89 | 89 | ||
| 90 | public EnvironmentPartType? Part | 90 | public EnvironmentPartType? Part |
| 91 | { | 91 | { |
| 92 | get => (EnvironmentPartType?)this.Fields[(int)EnvironmentTupleFields.Part].AsNullableNumber(); | 92 | get => (EnvironmentPartType?)this.Fields[(int)EnvironmentSymbolFields.Part].AsNullableNumber(); |
| 93 | set => this.Set((int)EnvironmentTupleFields.Part, (int?)value); | 93 | set => this.Set((int)EnvironmentSymbolFields.Part, (int?)value); |
| 94 | } | 94 | } |
| 95 | 95 | ||
| 96 | public bool Permanent | 96 | public bool Permanent |
| 97 | { | 97 | { |
| 98 | get => this.Fields[(int)EnvironmentTupleFields.Permanent].AsBool(); | 98 | get => this.Fields[(int)EnvironmentSymbolFields.Permanent].AsBool(); |
| 99 | set => this.Set((int)EnvironmentTupleFields.Permanent, value); | 99 | set => this.Set((int)EnvironmentSymbolFields.Permanent, value); |
| 100 | } | 100 | } |
| 101 | 101 | ||
| 102 | public bool System | 102 | public bool System |
| 103 | { | 103 | { |
| 104 | get => this.Fields[(int)EnvironmentTupleFields.System].AsBool(); | 104 | get => this.Fields[(int)EnvironmentSymbolFields.System].AsBool(); |
| 105 | set => this.Set((int)EnvironmentTupleFields.System, value); | 105 | set => this.Set((int)EnvironmentSymbolFields.System, value); |
| 106 | } | 106 | } |
| 107 | 107 | ||
| 108 | public string ComponentRef | 108 | public string ComponentRef |
| 109 | { | 109 | { |
| 110 | get => (string)this.Fields[(int)EnvironmentTupleFields.ComponentRef]; | 110 | get => (string)this.Fields[(int)EnvironmentSymbolFields.ComponentRef]; |
| 111 | set => this.Set((int)EnvironmentTupleFields.ComponentRef, value); | 111 | set => this.Set((int)EnvironmentSymbolFields.ComponentRef, value); |
| 112 | } | 112 | } |
| 113 | } | 113 | } |
| 114 | } \ No newline at end of file | 114 | } \ No newline at end of file |
