95 references to Errors
System (5)
compmod\microsoft\csharp\csharpcodeprovider.cs (2)
555results.Errors.Add(ce); 3452if (results.Errors.HasErrors || !options.GenerateInMemory) {
compmod\microsoft\visualbasic\VBCodeProvider.cs (2)
530results.Errors.Add(ce); 2908if (!results.Errors.HasErrors && options.GenerateInMemory) {
compmod\system\codedom\compiler\CodeCompiler.cs (1)
401if (!results.Errors.HasErrors && options.GenerateInMemory) {
System.Activities (6)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (6)
2367if (compilerResults.Errors == null || !compilerResults.Errors.HasErrors) 2375if (compilerResults.Errors != null && (compilerResults.Errors.HasWarnings || compilerResults.Errors.HasErrors)) 2378foreach (CompilerError ce in compilerResults.Errors)
System.Data.Entity.Design (2)
System\Data\Entity\Design\EntityCodeGenerator.cs (2)
580if (results.Errors.HasErrors) 582string message = results.Errors.OfType<CompilerError>().Aggregate(string.Empty, (accumulated, input) => accumulated == string.Empty ? input.ToString() : accumulated + Environment.NewLine + input.ToString());
System.Data.SqlXml (13)
System\Xml\Xsl\Xslt\Compiler.cs (6)
251return CompilerResults.Errors.Count; 256CompilerResults.Errors.RemoveAt(idx); 290CompilerResults.Errors.Add(error); 302CompilerResults.Errors.Add(error); 305CompilerResults.Errors.Add(error); 310CompilerErrorCollection errorColl = this.CompilerResults.Errors;
System\Xml\Xsl\Xslt\Scripts.cs (5)
197CompilerErrorCollection allErrors = compiler.CompilerResults.Errors; 318results.Errors.Add(compiler.CreateError(lastScript.EndLineInfo, /*[XT_041]*/Res.Xslt_ScriptCompileException, e.Message)); 327foreach (CompilerError error in results.Errors) { 332allErrors.AddRange(results.Errors); 333return results.Errors.HasErrors ? null : results.CompiledAssembly;
System\Xml\Xsl\XsltOld\Compiler.cs (2)
811if (results.Errors.HasErrors) { 813foreach (CompilerError e in results.Errors) {
System.Management (2)
Instrumentation\Instrumentation.cs (2)
337foreach(CompilerError err in results.Errors) 341if (results.Errors.HasErrors)
System.Runtime.Remoting (2)
metadata\metadata.cs (2)
230if (results.Errors.HasErrors) 232CompilerErrorCollection errors = results.Errors;
System.Web (24)
Compilation\AssemblyBuilder.cs (13)
1000if (results != null && (results.NativeCompilerReturnValue != 0 || results.Errors.HasErrors)) 1030if (results.Errors.HasErrors) { 1039foreach (CompilerError error in results.Errors) { 1045if (results.NativeCompilerReturnValue != 0 || results.Errors.HasErrors) { 1064if (results == null || !results.Errors.HasErrors) 1067foreach (CompilerError error in results.Errors) { 1094for (int i=results.Errors.Count-1; i>=0; i--) { 1095CompilerError error = results.Errors[i]; 1113results.Errors.RemoveAt(i); 1119results.Errors.RemoveAt(i); 1154results.Errors.Insert(0, badBaseClassError); 1167if (!results.Errors.HasErrors) 1173string linePragma = results.Errors[0].FileName;
Compilation\BuildManager.cs (1)
203foreach (CompilerError error in results.Errors) {
Compilation\BuildProvidersCompiler.cs (2)
430foreach (CompilerError error in results.Errors) { 465newResults.Errors.Add(error);
Configuration\BrowserCapabilitiesCodeGenerator.cs (2)
826if (results.NativeCompilerReturnValue != 0 || results.Errors.HasErrors) { 827foreach (CompilerError error in results.Errors) {
ErrorFormatter.cs (4)
1638if (results.Errors.Count == 0 && results.NativeCompilerReturnValue != 0) { 1647if (results.Errors.HasErrors) { 1702if (results.Errors.HasWarnings) { 1707foreach (CompilerError e in results.Errors) {
HttpException.cs (2)
422if (_results == null || !_results.Errors.HasErrors) 427foreach (CompilerError error in _results.Errors) {
System.Web.Mobile (1)
Mobile\MobileErrorInfo.cs (1)
66CompilerErrorCollection errors = compileException.Results.Errors;
System.Workflow.ComponentModel (36)
AuthoringOM\Compiler\CompileXomlTask.cs (2)
593foreach (WorkflowCompilerError error in compilerResults.Errors) 621if (!compilerResults.Errors.HasErrors)
AuthoringOM\Compiler\XomlCompiler.cs (16)
540if (generateInMemory && !results.Errors.HasErrors) 632Results.Errors.Add(new WorkflowCompilerError(this.Filename, -1, -1, ErrorNumbers.Error_TypeNotAuthorized.ToString(CultureInfo.InvariantCulture), SR.GetString(SR.Error_TypeNotAuthorized, SR.GetString(SR.NullConditionExpression)))); 652Results.Errors.Add(new WorkflowCompilerError(this.Filename, -1, -1, ErrorNumbers.Error_TypeNotAuthorized.ToString(CultureInfo.InvariantCulture), SR.GetString(SR.Error_TypeNotAuthorized, typeToAuthorize))); 765results.Errors.Clear(); 772results.Errors.Add(new WorkflowCompilerError(String.Empty, -1, -1, ErrorNumbers.Error_UnknownCompilerException.ToString(CultureInfo.InvariantCulture), SR.GetString(SR.Error_CompilationFailed, e.Message))); 866if (results.Errors.HasErrors) 1005if (results2.Errors.HasErrors) 1058results.Errors.Add(new WorkflowCompilerError(fileName, (WorkflowMarkupSerializationException)error)); 1062results.Errors.Add(new WorkflowCompilerError(fileName, -1, -1, ErrorNumbers.Error_SerializationError.ToString(CultureInfo.InvariantCulture), error.ToString())); 1071results.Errors.Add(new WorkflowCompilerError(fileName, xomlSerializationException)); 1076results.Errors.Add(new WorkflowCompilerError(fileName, -1, -1, ErrorNumbers.Error_SerializationError.ToString(CultureInfo.InvariantCulture), SR.GetString(SR.Error_CompilationFailed, e.Message))); 1082results.Errors.Add(new WorkflowCompilerError(fileName, 1, 1, ErrorNumbers.Error_SerializationError.ToString(CultureInfo.InvariantCulture), SR.GetString(SR.Error_RootActivityTypeInvalid))); 1089results.Errors.Add(new WorkflowCompilerError(fileName, 1, 1, ErrorNumbers.Error_SerializationError.ToString(CultureInfo.InvariantCulture), SR.GetString(SR.Error_CannotCompile_No_XClass))); 1099results.Errors.Add(XomlCompilerHelper.CreateXomlCompilerError(error, parameters)); 1106results.Errors.Add(XomlCompilerHelper.CreateXomlCompilerError(error, parameters)); 1108if (results.Errors.HasErrors)
AuthoringOM\Compiler\XomlCompilerHelpers.cs (16)
54results.Errors.Add(libPathError); 66results.Errors.Add(CreateXomlCompilerError(error, parameters)); 151results.Errors.Add(CreateXomlCompilerError(new ValidationError(SR.GetString(SR.Error_Missing_CanModifyProperties_False, activity.GetType().FullName), ErrorNumbers.Error_CustomActivityCantCreate), parameters)); 172results.Errors.Add(CreateXomlCompilerError(new ValidationError(SR.GetString(SR.Error_CustomActivityCantCreate, type.FullName, tie.InnerException.InnerException.ToString()), ErrorNumbers.Error_CustomActivityCantCreate), parameters)); 174results.Errors.Add(CreateXomlCompilerError(new ValidationError(tie.InnerException.InnerException.ToString(), ErrorNumbers.Error_CustomActivityCantCreate), parameters)); 176results.Errors.Add(CreateXomlCompilerError(new ValidationError(SR.GetString(SR.Error_CustomActivityCantCreate, type.FullName, tie.InnerException.ToString()), ErrorNumbers.Error_CustomActivityCantCreate), parameters)); 181results.Errors.Add(CreateXomlCompilerError(new ValidationError(SR.GetString(SR.Error_CustomActivityCantCreate, type.FullName, e.ToString()), ErrorNumbers.Error_CustomActivityCantCreate), parameters)); 200results.Errors.Add(compilerError); 212if (!results.Errors.HasErrors) 246if (!results.Errors.HasErrors && parameters.CheckTypes) 263results.Errors.Add(CreateXomlCompilerError(error, parameters)); 268if (!results.Errors.HasErrors && !parameters.GenerateCodeCompileUnitOnly && parameters.GenerateInMemory && 484results.Errors.Add(compilerError); 678results.Errors.Add(CreateXomlCompilerError(error, parameters)); 685results.Errors.Add(CreateXomlCompilerError(error, parameters)); 690results.Errors.Add(CreateXomlCompilerError(error, parameters));
AuthoringOM\Compiler\XomlCompilerResults.cs (2)
33foreach (CompilerError error in results.Errors) 34base.Errors.Add(new WorkflowCompilerError(error));
System.Xml (4)
System\Xml\Serialization\Compiler.cs (2)
200if (results.Errors.Count > 0) { 204foreach (CompilerError e in results.Errors) {
System\Xml\Xslt\XslCompiledTransform.cs (2)
90get { return this.compilerResults != null ? this.compilerResults.Errors : null; } 197foreach (CompilerError error in compilerResults.Errors) {