public CSharpParser CreateParser() { var settings = new Mono.CSharp.CompilerSettings(); settings.Unsafe = AllowUnsafeBlocks; foreach (string define in PreprocessorDefines) { settings.AddConditionalSymbol(define); } return(new CSharpParser(settings)); }
internal Mono.CSharp.CompilerSettings ToMono() { var s = new Mono.CSharp.CompilerSettings(); s.Unsafe = allowUnsafeBlocks; s.Checked = checkForOverflow; s.Version = (Mono.CSharp.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); }
internal Mono.CSharp.CompilerSettings ToMono() { var s = new Mono.CSharp.CompilerSettings(); s.Unsafe = allowUnsafeBlocks; s.Checked = checkForOverflow; s.Version = (Mono.CSharp.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; }
public CSharpParser CreateParser() { var settings = new Mono.CSharp.CompilerSettings(); settings.Unsafe = AllowUnsafeBlocks; foreach (string define in PreprocessorDefines) settings.AddConditionalSymbol(define); return new CSharpParser(settings); }