~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to src/addins/VBNetBinding/Project/VBCompilerParameters.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
29
29
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30
30
 
31
 
using System;
32
 
using System.ComponentModel;
 
31
using System;
 
32
using System.Collections.Generic;
33
33
 
34
34
using MonoDevelop.Projects;
35
35
using MonoDevelop.Core.Serialization;
106
106
                
107
107
                public override void AddDefineSymbol (string symbol)
108
108
                {
109
 
                        DefineConstants += symbol + ";";
 
109
                        var symbols = new List<string> (definesymbols.Split (new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
 
110
                        
 
111
                        symbols.Add (symbol);
 
112
                        
 
113
                        definesymbols = string.Join (";", symbols) + ";";
 
114
                }
 
115
                
 
116
                public override bool HasDefineSymbol (string symbol)
 
117
                {
 
118
                        var symbols = definesymbols.Split (new char[] { ';' });
 
119
                        
 
120
                        foreach (var sym in symbols) {
 
121
                                if (sym == symbol)
 
122
                                        return true;
 
123
                        }
 
124
                        
 
125
                        return false;
110
126
                }
111
127
                
112
128
                public override void RemoveDefineSymbol (string symbol)
113
129
                {
114
 
                        DefineConstants = DefineConstants.Replace (symbol + ";", "");
 
130
                        var symbols = new List<string> (definesymbols.Split (new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
 
131
                        
 
132
                        symbols.Remove (symbol);
 
133
                        
 
134
                        if (symbols.Count > 0)
 
135
                                definesymbols = string.Join (";", symbols) + ";";
 
136
                        else
 
137
                                definesymbols = string.Empty;
115
138
                }
116
139
                
117
140
                public bool DefineDebug {