diff options
Diffstat (limited to 'src/ext/Bal/wixext/Symbols/WixStdbaOverridableVariableSymbol.cs')
-rw-r--r-- | src/ext/Bal/wixext/Symbols/WixStdbaOverridableVariableSymbol.cs | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/ext/Bal/wixext/Symbols/WixStdbaOverridableVariableSymbol.cs b/src/ext/Bal/wixext/Symbols/WixStdbaOverridableVariableSymbol.cs new file mode 100644 index 00000000..1d84d1aa --- /dev/null +++ b/src/ext/Bal/wixext/Symbols/WixStdbaOverridableVariableSymbol.cs | |||
@@ -0,0 +1,47 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
2 | |||
3 | namespace WixToolset.Bal | ||
4 | { | ||
5 | using WixToolset.Data; | ||
6 | using WixToolset.Bal.Symbols; | ||
7 | |||
8 | public static partial class BalSymbolDefinitions | ||
9 | { | ||
10 | public static readonly IntermediateSymbolDefinition WixStdbaOverridableVariable = new IntermediateSymbolDefinition( | ||
11 | BalSymbolDefinitionType.WixStdbaOverridableVariable.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(WixStdbaOverridableVariableSymbolFields.Name), IntermediateFieldType.String), | ||
15 | }, | ||
16 | typeof(WixStdbaOverridableVariableSymbol)); | ||
17 | } | ||
18 | } | ||
19 | |||
20 | namespace WixToolset.Bal.Symbols | ||
21 | { | ||
22 | using WixToolset.Data; | ||
23 | |||
24 | public enum WixStdbaOverridableVariableSymbolFields | ||
25 | { | ||
26 | Name, | ||
27 | } | ||
28 | |||
29 | public class WixStdbaOverridableVariableSymbol : IntermediateSymbol | ||
30 | { | ||
31 | public WixStdbaOverridableVariableSymbol() : base(BalSymbolDefinitions.WixStdbaOverridableVariable, null, null) | ||
32 | { | ||
33 | } | ||
34 | |||
35 | public WixStdbaOverridableVariableSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixStdbaOverridableVariable, sourceLineNumber, id) | ||
36 | { | ||
37 | } | ||
38 | |||
39 | public IntermediateField this[WixStdbaOverridableVariableSymbolFields index] => this.Fields[(int)index]; | ||
40 | |||
41 | public string Name | ||
42 | { | ||
43 | get => this.Fields[(int)WixStdbaOverridableVariableSymbolFields.Name].AsString(); | ||
44 | set => this.Set((int)WixStdbaOverridableVariableSymbolFields.Name, value); | ||
45 | } | ||
46 | } | ||
47 | } \ No newline at end of file | ||