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/ComponentTuple.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/ComponentTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/ComponentTuple.cs | 106 |
1 files changed, 53 insertions, 53 deletions
diff --git a/src/WixToolset.Data/Tuples/ComponentTuple.cs b/src/WixToolset.Data/Tuples/ComponentTuple.cs index 51693b53..13d398b1 100644 --- a/src/WixToolset.Data/Tuples/ComponentTuple.cs +++ b/src/WixToolset.Data/Tuples/ComponentTuple.cs | |||
| @@ -2,36 +2,36 @@ | |||
| 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 Component = new IntermediateTupleDefinition( | 9 | public static readonly IntermediateSymbolDefinition Component = new IntermediateSymbolDefinition( |
| 10 | TupleDefinitionType.Component, | 10 | SymbolDefinitionType.Component, |
| 11 | new[] | 11 | new[] |
| 12 | { | 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(ComponentTupleFields.ComponentId), IntermediateFieldType.String), | 13 | new IntermediateFieldDefinition(nameof(ComponentSymbolFields.ComponentId), IntermediateFieldType.String), |
| 14 | new IntermediateFieldDefinition(nameof(ComponentTupleFields.DirectoryRef), IntermediateFieldType.String), | 14 | new IntermediateFieldDefinition(nameof(ComponentSymbolFields.DirectoryRef), IntermediateFieldType.String), |
| 15 | new IntermediateFieldDefinition(nameof(ComponentTupleFields.Location), IntermediateFieldType.Number), | 15 | new IntermediateFieldDefinition(nameof(ComponentSymbolFields.Location), IntermediateFieldType.Number), |
| 16 | new IntermediateFieldDefinition(nameof(ComponentTupleFields.DisableRegistryReflection), IntermediateFieldType.Bool), | 16 | new IntermediateFieldDefinition(nameof(ComponentSymbolFields.DisableRegistryReflection), IntermediateFieldType.Bool), |
| 17 | new IntermediateFieldDefinition(nameof(ComponentTupleFields.NeverOverwrite), IntermediateFieldType.Bool), | 17 | new IntermediateFieldDefinition(nameof(ComponentSymbolFields.NeverOverwrite), IntermediateFieldType.Bool), |
| 18 | new IntermediateFieldDefinition(nameof(ComponentTupleFields.Permanent), IntermediateFieldType.Bool), | 18 | new IntermediateFieldDefinition(nameof(ComponentSymbolFields.Permanent), IntermediateFieldType.Bool), |
| 19 | new IntermediateFieldDefinition(nameof(ComponentTupleFields.SharedDllRefCount), IntermediateFieldType.Bool), | 19 | new IntermediateFieldDefinition(nameof(ComponentSymbolFields.SharedDllRefCount), IntermediateFieldType.Bool), |
| 20 | new IntermediateFieldDefinition(nameof(ComponentTupleFields.Shared), IntermediateFieldType.Bool), | 20 | new IntermediateFieldDefinition(nameof(ComponentSymbolFields.Shared), IntermediateFieldType.Bool), |
| 21 | new IntermediateFieldDefinition(nameof(ComponentTupleFields.Transitive), IntermediateFieldType.Bool), | 21 | new IntermediateFieldDefinition(nameof(ComponentSymbolFields.Transitive), IntermediateFieldType.Bool), |
| 22 | new IntermediateFieldDefinition(nameof(ComponentTupleFields.UninstallWhenSuperseded), IntermediateFieldType.Bool), | 22 | new IntermediateFieldDefinition(nameof(ComponentSymbolFields.UninstallWhenSuperseded), IntermediateFieldType.Bool), |
| 23 | new IntermediateFieldDefinition(nameof(ComponentTupleFields.Win64), IntermediateFieldType.Bool), | 23 | new IntermediateFieldDefinition(nameof(ComponentSymbolFields.Win64), IntermediateFieldType.Bool), |
| 24 | new IntermediateFieldDefinition(nameof(ComponentTupleFields.Condition), IntermediateFieldType.String), | 24 | new IntermediateFieldDefinition(nameof(ComponentSymbolFields.Condition), IntermediateFieldType.String), |
| 25 | new IntermediateFieldDefinition(nameof(ComponentTupleFields.KeyPath), IntermediateFieldType.String), | 25 | new IntermediateFieldDefinition(nameof(ComponentSymbolFields.KeyPath), IntermediateFieldType.String), |
| 26 | new IntermediateFieldDefinition(nameof(ComponentTupleFields.KeyPathType), IntermediateFieldType.Number), | 26 | new IntermediateFieldDefinition(nameof(ComponentSymbolFields.KeyPathType), IntermediateFieldType.Number), |
| 27 | }, | 27 | }, |
| 28 | typeof(ComponentTuple)); | 28 | typeof(ComponentSymbol)); |
| 29 | } | 29 | } |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | namespace WixToolset.Data.Tuples | 32 | namespace WixToolset.Data.Symbols |
| 33 | { | 33 | { |
| 34 | public enum ComponentTupleFields | 34 | public enum ComponentSymbolFields |
| 35 | { | 35 | { |
| 36 | ComponentId, | 36 | ComponentId, |
| 37 | DirectoryRef, | 37 | DirectoryRef, |
| @@ -56,100 +56,100 @@ namespace WixToolset.Data.Tuples | |||
| 56 | Either | 56 | Either |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | public class ComponentTuple : IntermediateTuple | 59 | public class ComponentSymbol : IntermediateSymbol |
| 60 | { | 60 | { |
| 61 | public ComponentTuple() : base(TupleDefinitions.Component, null, null) | 61 | public ComponentSymbol() : base(SymbolDefinitions.Component, null, null) |
| 62 | { | 62 | { |
| 63 | } | 63 | } |
| 64 | 64 | ||
| 65 | public ComponentTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.Component, sourceLineNumber, id) | 65 | public ComponentSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Component, sourceLineNumber, id) |
| 66 | { | 66 | { |
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | public IntermediateField this[ComponentTupleFields index] => this.Fields[(int)index]; | 69 | public IntermediateField this[ComponentSymbolFields index] => this.Fields[(int)index]; |
| 70 | 70 | ||
| 71 | public string ComponentId | 71 | public string ComponentId |
| 72 | { | 72 | { |
| 73 | get => (string)this.Fields[(int)ComponentTupleFields.ComponentId]; | 73 | get => (string)this.Fields[(int)ComponentSymbolFields.ComponentId]; |
| 74 | set => this.Set((int)ComponentTupleFields.ComponentId, value); | 74 | set => this.Set((int)ComponentSymbolFields.ComponentId, value); |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | public string DirectoryRef | 77 | public string DirectoryRef |
| 78 | { | 78 | { |
| 79 | get => (string)this.Fields[(int)ComponentTupleFields.DirectoryRef]; | 79 | get => (string)this.Fields[(int)ComponentSymbolFields.DirectoryRef]; |
| 80 | set => this.Set((int)ComponentTupleFields.DirectoryRef, value); | 80 | set => this.Set((int)ComponentSymbolFields.DirectoryRef, value); |
| 81 | } | 81 | } |
| 82 | 82 | ||
| 83 | public ComponentLocation Location | 83 | public ComponentLocation Location |
| 84 | { | 84 | { |
| 85 | get => (ComponentLocation)this.Fields[(int)ComponentTupleFields.Location].AsNumber(); | 85 | get => (ComponentLocation)this.Fields[(int)ComponentSymbolFields.Location].AsNumber(); |
| 86 | set => this.Set((int)ComponentTupleFields.Location, (int)value); | 86 | set => this.Set((int)ComponentSymbolFields.Location, (int)value); |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | public bool DisableRegistryReflection | 89 | public bool DisableRegistryReflection |
| 90 | { | 90 | { |
| 91 | get => this.Fields[(int)ComponentTupleFields.DisableRegistryReflection].AsBool(); | 91 | get => this.Fields[(int)ComponentSymbolFields.DisableRegistryReflection].AsBool(); |
| 92 | set => this.Set((int)ComponentTupleFields.DisableRegistryReflection, value); | 92 | set => this.Set((int)ComponentSymbolFields.DisableRegistryReflection, value); |
| 93 | } | 93 | } |
| 94 | 94 | ||
| 95 | public bool NeverOverwrite | 95 | public bool NeverOverwrite |
| 96 | { | 96 | { |
| 97 | get => this.Fields[(int)ComponentTupleFields.NeverOverwrite].AsBool(); | 97 | get => this.Fields[(int)ComponentSymbolFields.NeverOverwrite].AsBool(); |
| 98 | set => this.Set((int)ComponentTupleFields.NeverOverwrite, value); | 98 | set => this.Set((int)ComponentSymbolFields.NeverOverwrite, value); |
| 99 | } | 99 | } |
| 100 | 100 | ||
| 101 | public bool Permanent | 101 | public bool Permanent |
| 102 | { | 102 | { |
| 103 | get => this.Fields[(int)ComponentTupleFields.Permanent].AsBool(); | 103 | get => this.Fields[(int)ComponentSymbolFields.Permanent].AsBool(); |
| 104 | set => this.Set((int)ComponentTupleFields.Permanent, value); | 104 | set => this.Set((int)ComponentSymbolFields.Permanent, value); |
| 105 | } | 105 | } |
| 106 | 106 | ||
| 107 | public bool SharedDllRefCount | 107 | public bool SharedDllRefCount |
| 108 | { | 108 | { |
| 109 | get => this.Fields[(int)ComponentTupleFields.SharedDllRefCount].AsBool(); | 109 | get => this.Fields[(int)ComponentSymbolFields.SharedDllRefCount].AsBool(); |
| 110 | set => this.Set((int)ComponentTupleFields.SharedDllRefCount, value); | 110 | set => this.Set((int)ComponentSymbolFields.SharedDllRefCount, value); |
| 111 | } | 111 | } |
| 112 | 112 | ||
| 113 | public bool Shared | 113 | public bool Shared |
| 114 | { | 114 | { |
| 115 | get => this.Fields[(int)ComponentTupleFields.Shared].AsBool(); | 115 | get => this.Fields[(int)ComponentSymbolFields.Shared].AsBool(); |
| 116 | set => this.Set((int)ComponentTupleFields.Shared, value); | 116 | set => this.Set((int)ComponentSymbolFields.Shared, value); |
| 117 | } | 117 | } |
| 118 | 118 | ||
| 119 | public bool Transitive | 119 | public bool Transitive |
| 120 | { | 120 | { |
| 121 | get => this.Fields[(int)ComponentTupleFields.Transitive].AsBool(); | 121 | get => this.Fields[(int)ComponentSymbolFields.Transitive].AsBool(); |
| 122 | set => this.Set((int)ComponentTupleFields.Transitive, value); | 122 | set => this.Set((int)ComponentSymbolFields.Transitive, value); |
| 123 | } | 123 | } |
| 124 | 124 | ||
| 125 | public bool UninstallWhenSuperseded | 125 | public bool UninstallWhenSuperseded |
| 126 | { | 126 | { |
| 127 | get => this.Fields[(int)ComponentTupleFields.UninstallWhenSuperseded].AsBool(); | 127 | get => this.Fields[(int)ComponentSymbolFields.UninstallWhenSuperseded].AsBool(); |
| 128 | set => this.Set((int)ComponentTupleFields.UninstallWhenSuperseded, value); | 128 | set => this.Set((int)ComponentSymbolFields.UninstallWhenSuperseded, value); |
| 129 | } | 129 | } |
| 130 | 130 | ||
| 131 | public bool Win64 | 131 | public bool Win64 |
| 132 | { | 132 | { |
| 133 | get => this.Fields[(int)ComponentTupleFields.Win64].AsBool(); | 133 | get => this.Fields[(int)ComponentSymbolFields.Win64].AsBool(); |
| 134 | set => this.Set((int)ComponentTupleFields.Win64, value); | 134 | set => this.Set((int)ComponentSymbolFields.Win64, value); |
| 135 | } | 135 | } |
| 136 | 136 | ||
| 137 | public string Condition | 137 | public string Condition |
| 138 | { | 138 | { |
| 139 | get => (string)this.Fields[(int)ComponentTupleFields.Condition]; | 139 | get => (string)this.Fields[(int)ComponentSymbolFields.Condition]; |
| 140 | set => this.Set((int)ComponentTupleFields.Condition, value); | 140 | set => this.Set((int)ComponentSymbolFields.Condition, value); |
| 141 | } | 141 | } |
| 142 | 142 | ||
| 143 | public string KeyPath | 143 | public string KeyPath |
| 144 | { | 144 | { |
| 145 | get => (string)this.Fields[(int)ComponentTupleFields.KeyPath]; | 145 | get => (string)this.Fields[(int)ComponentSymbolFields.KeyPath]; |
| 146 | set => this.Set((int)ComponentTupleFields.KeyPath, value); | 146 | set => this.Set((int)ComponentSymbolFields.KeyPath, value); |
| 147 | } | 147 | } |
| 148 | 148 | ||
| 149 | public ComponentKeyPathType KeyPathType | 149 | public ComponentKeyPathType KeyPathType |
| 150 | { | 150 | { |
| 151 | get => (ComponentKeyPathType)this.Fields[(int)ComponentTupleFields.KeyPathType].AsNumber(); | 151 | get => (ComponentKeyPathType)this.Fields[(int)ComponentSymbolFields.KeyPathType].AsNumber(); |
| 152 | set => this.Set((int)ComponentTupleFields.KeyPathType, (int)value); | 152 | set => this.Set((int)ComponentSymbolFields.KeyPathType, (int)value); |
| 153 | } | 153 | } |
| 154 | } | 154 | } |
| 155 | } \ No newline at end of file | 155 | } \ No newline at end of file |
