49 references to Errors
Microsoft.CodeAnalysis.CSharp (3)
CommandLine\CSharpCommandLineParser.cs (1)
1532diagnostics.AddRange(parseOptions.Errors);
Compilation\CSharpCompilation.cs (2)
2999if (!syntaxTree.Options.Errors.IsDefaultOrEmpty && parseOptionsReported.Add(syntaxTree.Options)) 3002foreach (var error in syntaxTree.Options.Errors)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (17)
Parsing\CSharpParseOptionsTests.cs (17)
82options.Errors.Verify(); 88options.Errors.Verify(); 94options.Errors.Verify(); 102options.Errors.Verify( 110options.Errors.Verify( 156options.Errors.Verify( 166options.Errors.Verify( 176options.Errors.Verify( 186options.Errors.Verify( 198options.Errors.Verify( 208options.Errors.Verify( 218options.Errors.Verify( 228options.Errors.Verify( 238options.Errors.Verify( 248options.Errors.Verify( 258options.Errors.Verify( 268options.Errors.Verify(
Microsoft.CodeAnalysis.VisualBasic (3)
Compilation\VisualBasicCompilation.vb (2)
2179If Not tree.Options.Errors.IsDefaultOrEmpty AndAlso parseOptionsReported.Add(tree.Options) Then 2181For Each err In tree.Options.Errors
VisualBasicCompilationOptions.vb (1)
1027builder.AddRange(ParseOptions.Errors)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (16)
Parser\VisualBasicParseOptionsTests.vb (16)
248options.Errors.Verify() 254options.Errors.Verify() 260options.Errors.Verify() 268options.Errors.Verify(Diagnostic(ERRID.ERR_BadSourceCodeKind).WithArguments("Interactive").WithLocation(1, 1)) 274options.Errors.Verify(Diagnostic(ERRID.ERR_BadSourceCodeKind).WithArguments("-2147483648").WithLocation(1, 1)) 315options.Errors.Verify(Diagnostic(ERRID.ERR_BadSourceCodeKind).WithArguments("Interactive").WithLocation(1, 1)) 322options.Errors.Verify(Diagnostic(ERRID.ERR_BadDocumentationMode).WithArguments("100").WithLocation(1, 1)) 329options.Errors.Verify(Diagnostic(ERRID.ERR_BadLanguageVersion).WithArguments("10000").WithLocation(1, 1)) 339options.Errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", "1").WithLocation(1, 1)) 348options.Errors.Verify(Diagnostic(ERRID.ERR_BadSourceCodeKind).WithArguments("Interactive").WithLocation(1, 1)) 355options.Errors.Verify(Diagnostic(ERRID.ERR_BadDocumentationMode).WithArguments("100").WithLocation(1, 1)) 362options.Errors.Verify(Diagnostic(ERRID.ERR_BadLanguageVersion).WithArguments("10000").WithLocation(1, 1)) 371options.Errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", "").WithLocation(1, 1)) 380options.Errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", " ").WithLocation(1, 1)) 390options.Errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", "Bad.Symbol").WithLocation(1, 1)) 400options.Errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", "Bad\\Symbol").WithLocation(1, 1))
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (10)
VisualStudioMSBuildWorkspaceTests.cs (10)
1459await AssertCSParseOptionsAsync(0, options => options.Errors.Length); 1466await AssertCSParseOptionsAsync(0, options => options.Errors.Length); 1473await AssertCSParseOptionsAsync(0, options => options.Errors.Length); 1480await AssertCSParseOptionsAsync(0, options => options.Errors.Length); 1487await AssertCSParseOptionsAsync(0, options => options.Errors.Length); 1649await AssertVBParseOptionsAsync(0, options => options.Errors.Length); 1656await AssertVBParseOptionsAsync(0, options => options.Errors.Length); 1663await AssertVBParseOptionsAsync(0, options => options.Errors.Length); 1670await AssertVBParseOptionsAsync(0, options => options.Errors.Length); 1677await AssertVBParseOptionsAsync(0, options => options.Errors.Length);