49 references to Errors
Microsoft.CodeAnalysis.CSharp (3)
CommandLine\CSharpCommandLineParser.cs (1)
1534diagnostics.AddRange(parseOptions.Errors);
Compilation\CSharpCompilation.cs (2)
2955if (!syntaxTree.Options.Errors.IsDefaultOrEmpty && parseOptionsReported.Add(syntaxTree.Options)) 2958foreach (var error in syntaxTree.Options.Errors)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (17)
Parsing\CSharpParseOptionsTests.cs (17)
81options.Errors.Verify(); 87options.Errors.Verify(); 93options.Errors.Verify(); 101options.Errors.Verify( 109options.Errors.Verify( 155options.Errors.Verify( 165options.Errors.Verify( 175options.Errors.Verify( 185options.Errors.Verify( 197options.Errors.Verify( 207options.Errors.Verify( 217options.Errors.Verify( 227options.Errors.Verify( 237options.Errors.Verify( 247options.Errors.Verify( 257options.Errors.Verify( 267options.Errors.Verify(
Microsoft.CodeAnalysis.VisualBasic (3)
Compilation\VisualBasicCompilation.vb (2)
2178If Not tree.Options.Errors.IsDefaultOrEmpty AndAlso parseOptionsReported.Add(tree.Options) Then 2180For 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)
1476await AssertCSParseOptionsAsync(0, options => options.Errors.Length); 1483await AssertCSParseOptionsAsync(0, options => options.Errors.Length); 1490await AssertCSParseOptionsAsync(0, options => options.Errors.Length); 1497await AssertCSParseOptionsAsync(0, options => options.Errors.Length); 1504await AssertCSParseOptionsAsync(0, options => options.Errors.Length); 1666await AssertVBParseOptionsAsync(0, options => options.Errors.Length); 1673await AssertVBParseOptionsAsync(0, options => options.Errors.Length); 1680await AssertVBParseOptionsAsync(0, options => options.Errors.Length); 1687await AssertVBParseOptionsAsync(0, options => options.Errors.Length); 1694await AssertVBParseOptionsAsync(0, options => options.Errors.Length);