Exemplo n.º 1
0
        internal ICSharpCode.NRefactory.MonoCSharp.CompilerSettings ToMono()
        {
            var s = new ICSharpCode.NRefactory.MonoCSharp.CompilerSettings();

            s.Unsafe            = allowUnsafeBlocks;
            s.Checked           = checkForOverflow;
            s.Version           = (ICSharpCode.NRefactory.MonoCSharp.LanguageVersion)languageVersion.Major;
            s.WarningsAreErrors = treatWarningsAsErrors;
            s.WarningLevel      = warningLevel;
            foreach (int code in disabledWarnings)
            {
                s.SetIgnoreWarning(code);
            }
            foreach (int code in specificWarningsAsErrors)
            {
                s.AddWarningAsError(code);
            }
            foreach (string sym in conditionalSymbols)
            {
                s.AddConditionalSymbol(sym);
            }
            return(s);
        }
Exemplo n.º 2
0
		internal ICSharpCode.NRefactory.MonoCSharp.CompilerSettings ToMono()
		{
			var s = new ICSharpCode.NRefactory.MonoCSharp.CompilerSettings();
			s.Unsafe = allowUnsafeBlocks;
			s.Checked = checkForOverflow;
			s.Version = (ICSharpCode.NRefactory.MonoCSharp.LanguageVersion)languageVersion.Major;
			s.WarningsAreErrors = treatWarningsAsErrors;
			s.WarningLevel = warningLevel;
			foreach (int code in disabledWarnings)
				s.SetIgnoreWarning(code);
			foreach (int code in specificWarningsAsErrors)
				s.AddWarningAsError(code);
			foreach (string sym in conditionalSymbols)
				s.AddConditionalSymbol(sym);
			return s;
		}