53 references to Errors
Microsoft.CodeAnalysis.CSharp (4)
CommandLine\CSharpCommandLineParser.cs (1)
1533diagnostics.AddRange(options.Errors);
Compilation\CSharpCompilation.cs (2)
1892Debug.Assert(!this.Options.Errors.IsDefaultOrEmpty); 2969builder.AddRange(Options.Errors);
Symbols\Source\SourceAssemblySymbol.cs (1)
496Debug.Assert(!DeclaringCompilation.Options.Errors.IsEmpty);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Compilation\CSharpCompilationOptionsTests.cs (4)
24options.Errors.Verify(expected); 53Assert.Equal(0, newOpt1.Errors.Length); 159Assert.Equal(0, new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithMainTypeName(null).Errors.Length); 309Assert.Equal(0, new CSharpCompilationOptions(OutputKind.ConsoleApplication, mainTypeName: null).Errors.Length);
Microsoft.CodeAnalysis.VisualBasic (5)
CommandLine\VisualBasicCommandLineParser.vb (1)
1466diagnostics.AddRange(options.Errors)
Compilation\MethodCompiler.vb (1)
334Debug.Assert(entryPoint IsNot Nothing OrElse entryPointAndDiagnostics.Diagnostics.HasAnyErrors() OrElse Not compilation.Options.Errors.IsDefaultOrEmpty)
Compilation\VisualBasicCompilation.vb (2)
1503Debug.Assert(Not Me.Options.Errors.IsDefaultOrEmpty) 2190builder.AddRange(Options.Errors)
Symbols\Source\SourceAssemblySymbol.vb (1)
1712Debug.Assert(Not DeclaringCompilation.Options.Errors.IsEmpty)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (2)
CommandLineTests.vb (2)
5204opt.Errors.Verify(Diagnostic(ERRID.ERR_VBCoreNetModuleConflict)) 5209opt.Errors.Verify()
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (23)
Compilation\CompilationAPITests.vb (5)
1405AssertTheseDiagnostics(TestOptions.ReleaseExe.WithRootNamespace("[[Global]]").Errors, 1410AssertTheseDiagnostics(TestOptions.ReleaseExe.WithRootNamespace("From()").Errors, 1415AssertTheseDiagnostics(TestOptions.ReleaseExe.WithRootNamespace("x$").Errors, 1420AssertTheseDiagnostics(TestOptions.ReleaseExe.WithRootNamespace("Goo.").Errors, 1425AssertTheseDiagnostics(TestOptions.ReleaseExe.WithRootNamespace("_").Errors,
Compilation\VisualBasicCompilationOptionsTests.vb (17)
132AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithScriptClassName(Nothing).Errors, 142AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithScriptClassName("").Errors, 147Assert.True(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithMainTypeName(Nothing).Errors.IsEmpty) 153AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithMainTypeName("").Errors, 158Assert.True(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithRootNamespace(Nothing).Errors.IsEmpty) 164Assert.True(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithRootNamespace("").Errors.IsEmpty) 189AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(CType(3, OptionStrict)).Errors, 246AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, scriptClassName:="").Errors, 251Assert.True(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, mainTypeName:=Nothing).Errors.IsEmpty) 258AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, mainTypeName:="").Errors, 263Assert.True(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, rootNamespace:=Nothing).Errors.IsEmpty) 270Assert.True(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, rootNamespace:="").Errors.IsEmpty) 292AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, optionStrict:=CType(3, OptionStrict)).Errors, 313Assert.True(options.Errors.IsEmpty) 320Assert.True(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithRootNamespace(rootNs).Errors.IsEmpty) 322AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithRootNamespace(rootNs).Errors, 510Assert.Equal(2042, options.Errors.Single().Code)
Diagnostics\GetDiagnosticsTests.vb (1)
390CompilationUtils.AssertTheseDiagnostics(options.Errors,
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (15)
SymbolsTests\AssemblyAndNamespaceTests.vb (1)
23AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithRootNamespace(badRootNS).Errors,
SymbolsTests\Metadata\MetadataMemberTests.vb (14)
943options.Errors.Verify() 946options.Errors.Verify() 949options.Errors.Verify() 952options.Errors.Verify() 955AssertTheseDiagnostics(options.Errors, expectedDiagnostics) 961commonOptions.Errors.Verify() 964commonOptions.Errors.Verify() 967commonOptions.Errors.Verify() 970AssertTheseDiagnostics(commonOptions.Errors, expectedDiagnostics) 1024options.Errors.Verify() 1027options.Errors.Verify() 1030options.Errors.Verify() 1033options.Errors.Verify() 1036AssertTheseDiagnostics(options.Errors, expectedDiagnostics)