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/PatchTuple.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/PatchTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/PatchTuple.cs | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/src/WixToolset.Data/Tuples/PatchTuple.cs b/src/WixToolset.Data/Tuples/PatchTuple.cs index 5548a215..31e68d76 100644 --- a/src/WixToolset.Data/Tuples/PatchTuple.cs +++ b/src/WixToolset.Data/Tuples/PatchTuple.cs | |||
| @@ -2,28 +2,28 @@ | |||
| 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 Patch = new IntermediateTupleDefinition( | 9 | public static readonly IntermediateSymbolDefinition Patch = new IntermediateSymbolDefinition( |
| 10 | TupleDefinitionType.Patch, | 10 | SymbolDefinitionType.Patch, |
| 11 | new[] | 11 | new[] |
| 12 | { | 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(PatchTupleFields.FileRef), IntermediateFieldType.String), | 13 | new IntermediateFieldDefinition(nameof(PatchSymbolFields.FileRef), IntermediateFieldType.String), |
| 14 | new IntermediateFieldDefinition(nameof(PatchTupleFields.Sequence), IntermediateFieldType.Number), | 14 | new IntermediateFieldDefinition(nameof(PatchSymbolFields.Sequence), IntermediateFieldType.Number), |
| 15 | new IntermediateFieldDefinition(nameof(PatchTupleFields.PatchSize), IntermediateFieldType.Number), | 15 | new IntermediateFieldDefinition(nameof(PatchSymbolFields.PatchSize), IntermediateFieldType.Number), |
| 16 | new IntermediateFieldDefinition(nameof(PatchTupleFields.Attributes), IntermediateFieldType.Number), | 16 | new IntermediateFieldDefinition(nameof(PatchSymbolFields.Attributes), IntermediateFieldType.Number), |
| 17 | new IntermediateFieldDefinition(nameof(PatchTupleFields.Header), IntermediateFieldType.Path), | 17 | new IntermediateFieldDefinition(nameof(PatchSymbolFields.Header), IntermediateFieldType.Path), |
| 18 | new IntermediateFieldDefinition(nameof(PatchTupleFields.StreamRef), IntermediateFieldType.String), | 18 | new IntermediateFieldDefinition(nameof(PatchSymbolFields.StreamRef), IntermediateFieldType.String), |
| 19 | }, | 19 | }, |
| 20 | typeof(PatchTuple)); | 20 | typeof(PatchSymbol)); |
| 21 | } | 21 | } |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | namespace WixToolset.Data.Tuples | 24 | namespace WixToolset.Data.Symbols |
| 25 | { | 25 | { |
| 26 | public enum PatchTupleFields | 26 | public enum PatchSymbolFields |
| 27 | { | 27 | { |
| 28 | FileRef, | 28 | FileRef, |
| 29 | Sequence, | 29 | Sequence, |
| @@ -33,52 +33,52 @@ namespace WixToolset.Data.Tuples | |||
| 33 | StreamRef, | 33 | StreamRef, |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | public class PatchTuple : IntermediateTuple | 36 | public class PatchSymbol : IntermediateSymbol |
| 37 | { | 37 | { |
| 38 | public PatchTuple() : base(TupleDefinitions.Patch, null, null) | 38 | public PatchSymbol() : base(SymbolDefinitions.Patch, null, null) |
| 39 | { | 39 | { |
| 40 | } | 40 | } |
| 41 | 41 | ||
| 42 | public PatchTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.Patch, sourceLineNumber, id) | 42 | public PatchSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Patch, sourceLineNumber, id) |
| 43 | { | 43 | { |
| 44 | } | 44 | } |
| 45 | 45 | ||
| 46 | public IntermediateField this[PatchTupleFields index] => this.Fields[(int)index]; | 46 | public IntermediateField this[PatchSymbolFields index] => this.Fields[(int)index]; |
| 47 | 47 | ||
| 48 | public string FileRef | 48 | public string FileRef |
| 49 | { | 49 | { |
| 50 | get => (string)this.Fields[(int)PatchTupleFields.FileRef]; | 50 | get => (string)this.Fields[(int)PatchSymbolFields.FileRef]; |
| 51 | set => this.Set((int)PatchTupleFields.FileRef, value); | 51 | set => this.Set((int)PatchSymbolFields.FileRef, value); |
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | public int Sequence | 54 | public int Sequence |
| 55 | { | 55 | { |
| 56 | get => (int)this.Fields[(int)PatchTupleFields.Sequence]; | 56 | get => (int)this.Fields[(int)PatchSymbolFields.Sequence]; |
| 57 | set => this.Set((int)PatchTupleFields.Sequence, value); | 57 | set => this.Set((int)PatchSymbolFields.Sequence, value); |
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | public int PatchSize | 60 | public int PatchSize |
| 61 | { | 61 | { |
| 62 | get => (int)this.Fields[(int)PatchTupleFields.PatchSize]; | 62 | get => (int)this.Fields[(int)PatchSymbolFields.PatchSize]; |
| 63 | set => this.Set((int)PatchTupleFields.PatchSize, value); | 63 | set => this.Set((int)PatchSymbolFields.PatchSize, value); |
| 64 | } | 64 | } |
| 65 | 65 | ||
| 66 | public int Attributes | 66 | public int Attributes |
| 67 | { | 67 | { |
| 68 | get => (int)this.Fields[(int)PatchTupleFields.Attributes]; | 68 | get => (int)this.Fields[(int)PatchSymbolFields.Attributes]; |
| 69 | set => this.Set((int)PatchTupleFields.Attributes, value); | 69 | set => this.Set((int)PatchSymbolFields.Attributes, value); |
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | public string Header | 72 | public string Header |
| 73 | { | 73 | { |
| 74 | get => (string)this.Fields[(int)PatchTupleFields.Header]; | 74 | get => (string)this.Fields[(int)PatchSymbolFields.Header]; |
| 75 | set => this.Set((int)PatchTupleFields.Header, value); | 75 | set => this.Set((int)PatchSymbolFields.Header, value); |
| 76 | } | 76 | } |
| 77 | 77 | ||
| 78 | public string StreamRef | 78 | public string StreamRef |
| 79 | { | 79 | { |
| 80 | get => (string)this.Fields[(int)PatchTupleFields.StreamRef]; | 80 | get => (string)this.Fields[(int)PatchSymbolFields.StreamRef]; |
| 81 | set => this.Set((int)PatchTupleFields.StreamRef, value); | 81 | set => this.Set((int)PatchSymbolFields.StreamRef, value); |
| 82 | } | 82 | } |
| 83 | } | 83 | } |
| 84 | } \ No newline at end of file | 84 | } \ No newline at end of file |
