49 references to Errors
Microsoft.CodeAnalysis.CSharp (3)
CommandLine\CSharpCommandLineParser.cs (1)
1549diagnostics.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)
95options.Errors.Verify(); 101options.Errors.Verify(); 107options.Errors.Verify(); 115options.Errors.Verify( 123options.Errors.Verify( 169options.Errors.Verify( 179options.Errors.Verify( 189options.Errors.Verify( 199options.Errors.Verify( 211options.Errors.Verify( 221options.Errors.Verify( 231options.Errors.Verify( 241options.Errors.Verify( 251options.Errors.Verify( 261options.Errors.Verify( 271options.Errors.Verify( 281options.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)
1461await AssertCSParseOptionsAsync(0, options => options.Errors.Length); 1468await AssertCSParseOptionsAsync(0, options => options.Errors.Length); 1475await AssertCSParseOptionsAsync(0, options => options.Errors.Length); 1482await AssertCSParseOptionsAsync(0, options => options.Errors.Length); 1489await AssertCSParseOptionsAsync(0, options => options.Errors.Length); 1651await AssertVBParseOptionsAsync(0, options => options.Errors.Length); 1658await AssertVBParseOptionsAsync(0, options => options.Errors.Length); 1665await AssertVBParseOptionsAsync(0, options => options.Errors.Length); 1672await AssertVBParseOptionsAsync(0, options => options.Errors.Length); 1679await AssertVBParseOptionsAsync(0, options => options.Errors.Length);