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