49 references to Errors
Microsoft.CodeAnalysis.CSharp (3)
CommandLine\CSharpCommandLineParser.cs (1)
1534
diagnostics.AddRange(parseOptions.
Errors
);
Compilation\CSharpCompilation.cs (2)
2955
if (!syntaxTree.Options.
Errors
.IsDefaultOrEmpty && parseOptionsReported.Add(syntaxTree.Options))
2958
foreach (var error in syntaxTree.Options.
Errors
)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (17)
Parsing\CSharpParseOptionsTests.cs (17)
81
options.
Errors
.Verify();
87
options.
Errors
.Verify();
93
options.
Errors
.Verify();
101
options.
Errors
.Verify(
109
options.
Errors
.Verify(
155
options.
Errors
.Verify(
165
options.
Errors
.Verify(
175
options.
Errors
.Verify(
185
options.
Errors
.Verify(
197
options.
Errors
.Verify(
207
options.
Errors
.Verify(
217
options.
Errors
.Verify(
227
options.
Errors
.Verify(
237
options.
Errors
.Verify(
247
options.
Errors
.Verify(
257
options.
Errors
.Verify(
267
options.
Errors
.Verify(
Microsoft.CodeAnalysis.VisualBasic (3)
Compilation\VisualBasicCompilation.vb (2)
2178
If Not tree.Options.
Errors
.IsDefaultOrEmpty AndAlso parseOptionsReported.Add(tree.Options) Then
2180
For Each err In tree.Options.
Errors
VisualBasicCompilationOptions.vb (1)
1027
builder.AddRange(ParseOptions.
Errors
)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (16)
Parser\VisualBasicParseOptionsTests.vb (16)
249
options.
Errors
.Verify()
255
options.
Errors
.Verify()
261
options.
Errors
.Verify()
269
options.
Errors
.Verify(Diagnostic(ERRID.ERR_BadSourceCodeKind).WithArguments("Interactive").WithLocation(1, 1))
275
options.
Errors
.Verify(Diagnostic(ERRID.ERR_BadSourceCodeKind).WithArguments("-2147483648").WithLocation(1, 1))
316
options.
Errors
.Verify(Diagnostic(ERRID.ERR_BadSourceCodeKind).WithArguments("Interactive").WithLocation(1, 1))
323
options.
Errors
.Verify(Diagnostic(ERRID.ERR_BadDocumentationMode).WithArguments("100").WithLocation(1, 1))
330
options.
Errors
.Verify(Diagnostic(ERRID.ERR_BadLanguageVersion).WithArguments("10000").WithLocation(1, 1))
340
options.
Errors
.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", "1").WithLocation(1, 1))
349
options.
Errors
.Verify(Diagnostic(ERRID.ERR_BadSourceCodeKind).WithArguments("Interactive").WithLocation(1, 1))
356
options.
Errors
.Verify(Diagnostic(ERRID.ERR_BadDocumentationMode).WithArguments("100").WithLocation(1, 1))
363
options.
Errors
.Verify(Diagnostic(ERRID.ERR_BadLanguageVersion).WithArguments("10000").WithLocation(1, 1))
372
options.
Errors
.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", "").WithLocation(1, 1))
381
options.
Errors
.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", " ").WithLocation(1, 1))
391
options.
Errors
.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", "Bad.Symbol").WithLocation(1, 1))
401
options.
Errors
.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", "Bad\\Symbol").WithLocation(1, 1))
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (10)
VisualStudioMSBuildWorkspaceTests.cs (10)
1476
await AssertCSParseOptionsAsync(0, options => options.
Errors
.Length);
1483
await AssertCSParseOptionsAsync(0, options => options.
Errors
.Length);
1490
await AssertCSParseOptionsAsync(0, options => options.
Errors
.Length);
1497
await AssertCSParseOptionsAsync(0, options => options.
Errors
.Length);
1504
await AssertCSParseOptionsAsync(0, options => options.
Errors
.Length);
1666
await AssertVBParseOptionsAsync(0, options => options.
Errors
.Length);
1673
await AssertVBParseOptionsAsync(0, options => options.
Errors
.Length);
1680
await AssertVBParseOptionsAsync(0, options => options.
Errors
.Length);
1687
await AssertVBParseOptionsAsync(0, options => options.
Errors
.Length);
1694
await AssertVBParseOptionsAsync(0, options => options.
Errors
.Length);