49 references to Errors
Microsoft.CodeAnalysis.CSharp (3)
CommandLine\CSharpCommandLineParser.cs (1)
1519diagnostics.AddRange(parseOptions.Errors);
Compilation\CSharpCompilation.cs (2)
2706if (!syntaxTree.Options.Errors.IsDefaultOrEmpty && parseOptionsReported.Add(syntaxTree.Options)) 2709foreach (var error in syntaxTree.Options.Errors)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (17)
Parsing\CSharpParseOptionsTests.cs (17)
80options.Errors.Verify(); 86options.Errors.Verify(); 92options.Errors.Verify(); 100options.Errors.Verify( 108options.Errors.Verify( 154options.Errors.Verify( 164options.Errors.Verify( 174options.Errors.Verify( 184options.Errors.Verify( 196options.Errors.Verify( 206options.Errors.Verify( 216options.Errors.Verify( 226options.Errors.Verify( 236options.Errors.Verify( 246options.Errors.Verify( 256options.Errors.Verify( 266options.Errors.Verify(
Microsoft.CodeAnalysis.VisualBasic (3)
Compilation\VisualBasicCompilation.vb (2)
2167If Not tree.Options.Errors.IsDefaultOrEmpty AndAlso parseOptionsReported.Add(tree.Options) Then 2169For Each err In tree.Options.Errors
VisualBasicCompilationOptions.vb (1)
1027builder.AddRange(ParseOptions.Errors)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (16)
Parser\VisualBasicParseOptionsTests.vb (16)
249options.Errors.Verify() 255options.Errors.Verify() 261options.Errors.Verify() 269options.Errors.Verify(Diagnostic(ERRID.ERR_BadSourceCodeKind).WithArguments("Interactive").WithLocation(1, 1)) 275options.Errors.Verify(Diagnostic(ERRID.ERR_BadSourceCodeKind).WithArguments("-2147483648").WithLocation(1, 1)) 316options.Errors.Verify(Diagnostic(ERRID.ERR_BadSourceCodeKind).WithArguments("Interactive").WithLocation(1, 1)) 323options.Errors.Verify(Diagnostic(ERRID.ERR_BadDocumentationMode).WithArguments("100").WithLocation(1, 1)) 330options.Errors.Verify(Diagnostic(ERRID.ERR_BadLanguageVersion).WithArguments("10000").WithLocation(1, 1)) 340options.Errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", "1").WithLocation(1, 1)) 349options.Errors.Verify(Diagnostic(ERRID.ERR_BadSourceCodeKind).WithArguments("Interactive").WithLocation(1, 1)) 356options.Errors.Verify(Diagnostic(ERRID.ERR_BadDocumentationMode).WithArguments("100").WithLocation(1, 1)) 363options.Errors.Verify(Diagnostic(ERRID.ERR_BadLanguageVersion).WithArguments("10000").WithLocation(1, 1)) 372options.Errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", "").WithLocation(1, 1)) 381options.Errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", " ").WithLocation(1, 1)) 391options.Errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", "Bad.Symbol").WithLocation(1, 1)) 401options.Errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", "Bad\\Symbol").WithLocation(1, 1))
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (10)
VisualStudioMSBuildWorkspaceTests.cs (10)
1464await AssertCSParseOptionsAsync(0, options => options.Errors.Length); 1471await AssertCSParseOptionsAsync(0, options => options.Errors.Length); 1478await AssertCSParseOptionsAsync(0, options => options.Errors.Length); 1485await AssertCSParseOptionsAsync(0, options => options.Errors.Length); 1492await AssertCSParseOptionsAsync(0, options => options.Errors.Length); 1654await AssertVBParseOptionsAsync(0, options => options.Errors.Length); 1661await AssertVBParseOptionsAsync(0, options => options.Errors.Length); 1668await AssertVBParseOptionsAsync(0, options => options.Errors.Length); 1675await AssertVBParseOptionsAsync(0, options => options.Errors.Length); 1682await AssertVBParseOptionsAsync(0, options => options.Errors.Length);