summaryrefslogtreecommitdiff
path: root/src/ext/Bal/wixext/Symbols/WixStdbaCommandLineSymbol.cs
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2022-09-09 16:03:29 -0500
committerSean Hall <r.sean.hall@gmail.com>2022-09-09 21:14:27 -0500
commita1307cd4e76a89598c53cb68309358a7012db553 (patch)
treef79cf181b49f0b754afcd4ec25487bf2b284d45e /src/ext/Bal/wixext/Symbols/WixStdbaCommandLineSymbol.cs
parentf61479585d865372645cb18c982aa708dd975da3 (diff)
downloadwix-a1307cd4e76a89598c53cb68309358a7012db553.tar.gz
wix-a1307cd4e76a89598c53cb68309358a7012db553.tar.bz2
wix-a1307cd4e76a89598c53cb68309358a7012db553.zip
Move `Bundle/@CommandLineVariables` into Bal.wixext.
Implements 6858
Diffstat (limited to 'src/ext/Bal/wixext/Symbols/WixStdbaCommandLineSymbol.cs')
-rw-r--r--src/ext/Bal/wixext/Symbols/WixStdbaCommandLineSymbol.cs54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/ext/Bal/wixext/Symbols/WixStdbaCommandLineSymbol.cs b/src/ext/Bal/wixext/Symbols/WixStdbaCommandLineSymbol.cs
new file mode 100644
index 00000000..3b3823f3
--- /dev/null
+++ b/src/ext/Bal/wixext/Symbols/WixStdbaCommandLineSymbol.cs
@@ -0,0 +1,54 @@
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
3namespace 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 WixStdbaCommandLine = new IntermediateSymbolDefinition(
11 BalSymbolDefinitionType.WixStdbaCommandLine.ToString(),
12 new[]
13 {
14 new IntermediateFieldDefinition(nameof(WixStdbaCommandLineSymbolFields.VariableType), IntermediateFieldType.Number),
15 },
16 typeof(WixStdbaCommandLineSymbol));
17 }
18}
19
20namespace WixToolset.Bal.Symbols
21{
22 using System;
23 using WixToolset.Data;
24
25 public enum WixStdbaCommandLineSymbolFields
26 {
27 VariableType,
28 }
29
30 public enum WixStdbaCommandLineVariableType
31 {
32 CaseSensitive,
33 CaseInsensitive,
34 }
35
36 public class WixStdbaCommandLineSymbol : IntermediateSymbol
37 {
38 public WixStdbaCommandLineSymbol() : base(BalSymbolDefinitions.WixStdbaCommandLine, null, null)
39 {
40 }
41
42 public WixStdbaCommandLineSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixStdbaCommandLine, sourceLineNumber, id)
43 {
44 }
45
46 public IntermediateField this[WixStdbaCommandLineSymbolFields index] => this.Fields[(int)index];
47
48 public WixStdbaCommandLineVariableType VariableType
49 {
50 get => (WixStdbaCommandLineVariableType)this.Fields[(int)WixStdbaCommandLineSymbolFields.VariableType].AsNumber();
51 set => this.Set((int)WixStdbaCommandLineSymbolFields.VariableType, (int)value);
52 }
53 }
54}