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