diff options
author | Melanie Thielker | 2017-01-05 19:07:37 +0000 |
---|---|---|
committer | Melanie Thielker | 2017-01-05 19:07:37 +0000 |
commit | b16abc8166c29585cb76cc55c3bdd76e5833cb4f (patch) | |
tree | 6a34f465a74b7a3a6dc00a3d7aa8dcc25ac3e3a5 /Prebuild/src/Core/Parse/IfContext.cs | |
parent | Make it possible to disable the bakes module in the way it is described in co... (diff) | |
download | opensim-SC-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.zip opensim-SC-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.tar.gz opensim-SC-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.tar.bz2 opensim-SC-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.tar.xz |
Massive tab and trailing space cleanup
Diffstat (limited to 'Prebuild/src/Core/Parse/IfContext.cs')
-rw-r--r-- | Prebuild/src/Core/Parse/IfContext.cs | 268 |
1 files changed, 134 insertions, 134 deletions
diff --git a/Prebuild/src/Core/Parse/IfContext.cs b/Prebuild/src/Core/Parse/IfContext.cs index 3c79d38..7729d3b 100644 --- a/Prebuild/src/Core/Parse/IfContext.cs +++ b/Prebuild/src/Core/Parse/IfContext.cs | |||
@@ -5,16 +5,16 @@ Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehea | |||
5 | Redistribution and use in source and binary forms, with or without modification, are permitted | 5 | Redistribution and use in source and binary forms, with or without modification, are permitted |
6 | provided that the following conditions are met: | 6 | provided that the following conditions are met: |
7 | 7 | ||
8 | * Redistributions of source code must retain the above copyright notice, this list of conditions | 8 | * Redistributions of source code must retain the above copyright notice, this list of conditions |
9 | and the following disclaimer. | 9 | and the following disclaimer. |
10 | * Redistributions in binary form must reproduce the above copyright notice, this list of conditions | 10 | * Redistributions in binary form must reproduce the above copyright notice, this list of conditions |
11 | and the following disclaimer in the documentation and/or other materials provided with the | 11 | and the following disclaimer in the documentation and/or other materials provided with the |
12 | distribution. | 12 | distribution. |
13 | * The name of the author may not be used to endorse or promote products derived from this software | 13 | * The name of the author may not be used to endorse or promote products derived from this software |
14 | without specific prior written permission. | 14 | without specific prior written permission. |
15 | 15 | ||
16 | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, | 16 | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, |
17 | BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 17 | BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
18 | ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | 18 | ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
19 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | 19 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
20 | OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 20 | OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
@@ -27,128 +27,128 @@ using System; | |||
27 | 27 | ||
28 | namespace Prebuild.Core.Parse | 28 | namespace Prebuild.Core.Parse |
29 | { | 29 | { |
30 | /// <summary> | 30 | /// <summary> |
31 | /// | 31 | /// |
32 | /// </summary> | 32 | /// </summary> |
33 | public enum IfState | 33 | public enum IfState |
34 | { | 34 | { |
35 | /// <summary> | 35 | /// <summary> |
36 | /// | 36 | /// |
37 | /// </summary> | 37 | /// </summary> |
38 | None, | 38 | None, |
39 | /// <summary> | 39 | /// <summary> |
40 | /// | 40 | /// |
41 | /// </summary> | 41 | /// </summary> |
42 | If, | 42 | If, |
43 | /// <summary> | 43 | /// <summary> |
44 | /// | 44 | /// |
45 | /// </summary> | 45 | /// </summary> |
46 | ElseIf, | 46 | ElseIf, |
47 | /// <summary> | 47 | /// <summary> |
48 | /// | 48 | /// |
49 | /// </summary> | 49 | /// </summary> |
50 | Else | 50 | Else |
51 | } | 51 | } |
52 | 52 | ||
53 | /// <summary> | 53 | /// <summary> |
54 | /// Summary description for IfContext. | 54 | /// Summary description for IfContext. |
55 | /// </summary> | 55 | /// </summary> |
56 | // Inspired by the equivalent WiX class (see www.sourceforge.net/projects/wix/) | 56 | // Inspired by the equivalent WiX class (see www.sourceforge.net/projects/wix/) |
57 | public class IfContext | 57 | public class IfContext |
58 | { | 58 | { |
59 | #region Properties | 59 | #region Properties |
60 | 60 | ||
61 | bool m_Active; | 61 | bool m_Active; |
62 | bool m_Keep; | 62 | bool m_Keep; |
63 | bool m_EverKept; | 63 | bool m_EverKept; |
64 | IfState m_State = IfState.None; | 64 | IfState m_State = IfState.None; |
65 | 65 | ||
66 | #endregion | 66 | #endregion |
67 | 67 | ||
68 | #region Constructors | 68 | #region Constructors |
69 | 69 | ||
70 | /// <summary> | 70 | /// <summary> |
71 | /// Initializes a new instance of the <see cref="IfContext"/> class. | 71 | /// Initializes a new instance of the <see cref="IfContext"/> class. |
72 | /// </summary> | 72 | /// </summary> |
73 | /// <param name="active">if set to <c>true</c> [active].</param> | 73 | /// <param name="active">if set to <c>true</c> [active].</param> |
74 | /// <param name="keep">if set to <c>true</c> [keep].</param> | 74 | /// <param name="keep">if set to <c>true</c> [keep].</param> |
75 | /// <param name="state">The state.</param> | 75 | /// <param name="state">The state.</param> |
76 | public IfContext(bool active, bool keep, IfState state) | 76 | public IfContext(bool active, bool keep, IfState state) |
77 | { | 77 | { |
78 | m_Active = active; | 78 | m_Active = active; |
79 | m_Keep = keep; | 79 | m_Keep = keep; |
80 | m_EverKept = keep; | 80 | m_EverKept = keep; |
81 | m_State = state; | 81 | m_State = state; |
82 | } | 82 | } |
83 | 83 | ||
84 | #endregion | 84 | #endregion |
85 | 85 | ||
86 | #region Properties | 86 | #region Properties |
87 | 87 | ||
88 | /// <summary> | 88 | /// <summary> |
89 | /// Gets or sets a value indicating whether this <see cref="IfContext"/> is active. | 89 | /// Gets or sets a value indicating whether this <see cref="IfContext"/> is active. |
90 | /// </summary> | 90 | /// </summary> |
91 | /// <value><c>true</c> if active; otherwise, <c>false</c>.</value> | 91 | /// <value><c>true</c> if active; otherwise, <c>false</c>.</value> |
92 | public bool Active | 92 | public bool Active |
93 | { | 93 | { |
94 | get | 94 | get |
95 | { | 95 | { |
96 | return m_Active; | 96 | return m_Active; |
97 | } | 97 | } |
98 | set | 98 | set |
99 | { | 99 | { |
100 | m_Active = value; | 100 | m_Active = value; |
101 | } | 101 | } |
102 | } | 102 | } |
103 | 103 | ||
104 | /// <summary> | 104 | /// <summary> |
105 | /// Gets or sets a value indicating whether this <see cref="IfContext"/> is keep. | 105 | /// Gets or sets a value indicating whether this <see cref="IfContext"/> is keep. |
106 | /// </summary> | 106 | /// </summary> |
107 | /// <value><c>true</c> if keep; otherwise, <c>false</c>.</value> | 107 | /// <value><c>true</c> if keep; otherwise, <c>false</c>.</value> |
108 | public bool Keep | 108 | public bool Keep |
109 | { | 109 | { |
110 | get | 110 | get |
111 | { | 111 | { |
112 | return m_Keep; | 112 | return m_Keep; |
113 | } | 113 | } |
114 | set | 114 | set |
115 | { | 115 | { |
116 | m_Keep = value; | 116 | m_Keep = value; |
117 | if(m_Keep) | 117 | if(m_Keep) |
118 | { | 118 | { |
119 | m_EverKept = true; | 119 | m_EverKept = true; |
120 | } | 120 | } |
121 | } | 121 | } |
122 | } | 122 | } |
123 | 123 | ||
124 | /// <summary> | 124 | /// <summary> |
125 | /// Gets a value indicating whether [ever kept]. | 125 | /// Gets a value indicating whether [ever kept]. |
126 | /// </summary> | 126 | /// </summary> |
127 | /// <value><c>true</c> if [ever kept]; otherwise, <c>false</c>.</value> | 127 | /// <value><c>true</c> if [ever kept]; otherwise, <c>false</c>.</value> |
128 | public bool EverKept | 128 | public bool EverKept |
129 | { | 129 | { |
130 | get | 130 | get |
131 | { | 131 | { |
132 | return m_EverKept; | 132 | return m_EverKept; |
133 | } | 133 | } |
134 | } | 134 | } |
135 | 135 | ||
136 | /// <summary> | 136 | /// <summary> |
137 | /// Gets or sets the state. | 137 | /// Gets or sets the state. |
138 | /// </summary> | 138 | /// </summary> |
139 | /// <value>The state.</value> | 139 | /// <value>The state.</value> |
140 | public IfState State | 140 | public IfState State |
141 | { | 141 | { |
142 | get | 142 | get |
143 | { | 143 | { |
144 | return m_State; | 144 | return m_State; |
145 | } | 145 | } |
146 | set | 146 | set |
147 | { | 147 | { |
148 | m_State = value; | 148 | m_State = value; |
149 | } | 149 | } |
150 | } | 150 | } |
151 | 151 | ||
152 | #endregion | 152 | #endregion |
153 | } | 153 | } |
154 | } | 154 | } |