aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/ErrorTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Data/Tuples/ErrorTuple.cs')
-rw-r--r--src/WixToolset.Data/Tuples/ErrorTuple.cs28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/WixToolset.Data/Tuples/ErrorTuple.cs b/src/WixToolset.Data/Tuples/ErrorTuple.cs
index 89968283..d2994598 100644
--- a/src/WixToolset.Data/Tuples/ErrorTuple.cs
+++ b/src/WixToolset.Data/Tuples/ErrorTuple.cs
@@ -2,43 +2,43 @@
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 Error = new IntermediateTupleDefinition( 9 public static readonly IntermediateSymbolDefinition Error = new IntermediateSymbolDefinition(
10 TupleDefinitionType.Error, 10 SymbolDefinitionType.Error,
11 new[] 11 new[]
12 { 12 {
13 new IntermediateFieldDefinition(nameof(ErrorTupleFields.Message), IntermediateFieldType.String), 13 new IntermediateFieldDefinition(nameof(ErrorSymbolFields.Message), IntermediateFieldType.String),
14 }, 14 },
15 typeof(ErrorTuple)); 15 typeof(ErrorSymbol));
16 } 16 }
17} 17}
18 18
19namespace WixToolset.Data.Tuples 19namespace WixToolset.Data.Symbols
20{ 20{
21 public enum ErrorTupleFields 21 public enum ErrorSymbolFields
22 { 22 {
23 Message, 23 Message,
24 } 24 }
25 25
26 public class ErrorTuple : IntermediateTuple 26 public class ErrorSymbol : IntermediateSymbol
27 { 27 {
28 public ErrorTuple() : base(TupleDefinitions.Error, null, null) 28 public ErrorSymbol() : base(SymbolDefinitions.Error, null, null)
29 { 29 {
30 } 30 }
31 31
32 public ErrorTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.Error, sourceLineNumber, id) 32 public ErrorSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Error, sourceLineNumber, id)
33 { 33 {
34 } 34 }
35 35
36 public IntermediateField this[ErrorTupleFields index] => this.Fields[(int)index]; 36 public IntermediateField this[ErrorSymbolFields index] => this.Fields[(int)index];
37 37
38 public string Message 38 public string Message
39 { 39 {
40 get => (string)this.Fields[(int)ErrorTupleFields.Message]; 40 get => (string)this.Fields[(int)ErrorSymbolFields.Message];
41 set => this.Set((int)ErrorTupleFields.Message, value); 41 set => this.Set((int)ErrorSymbolFields.Message, value);
42 } 42 }
43 } 43 }
44} \ No newline at end of file 44} \ No newline at end of file