49 references to Errors
Microsoft.CodeAnalysis.CSharp (3)
CommandLine\CSharpCommandLineParser.cs (1)
1534diagnostics.AddRange(parseOptions.Errors);
Compilation\CSharpCompilation.cs (2)
2975if (!syntaxTree.Options.Errors.IsDefaultOrEmpty && parseOptionsReported.Add(syntaxTree.Options)) 2978foreach (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)
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)
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);