15 instantiations of DiagnosticDescription
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
1377Select(d => new DiagnosticDescription(d, errorCodeOnly: false, includeDefaultSeverity: false, includeEffectiveSeverity: false)).ToArray());
Microsoft.CodeAnalysis.Test.Utilities (13)
Diagnostics\DiagnosticDescription.cs (10)
192return new DiagnosticDescription(_code, _isWarningAsError, squiggledText, _arguments, _startPosition, _syntaxPredicate, false, _errorCodeType, _defaultSeverityOpt, _effectiveSeverityOpt, _isSuppressed); 197return new DiagnosticDescription(_code, _isWarningAsError, _squiggledText, arguments, _startPosition, _syntaxPredicate, false, _errorCodeType, _defaultSeverityOpt, _effectiveSeverityOpt, _isSuppressed); 202return new DiagnosticDescription(_code, _isWarningAsError, _squiggledText, arguments, _startPosition, _syntaxPredicate, true, _errorCodeType, _defaultSeverityOpt, _effectiveSeverityOpt, _isSuppressed); 207return new DiagnosticDescription(_code, isWarningAsError, _squiggledText, _arguments, _startPosition, _syntaxPredicate, true, _errorCodeType, _defaultSeverityOpt, _effectiveSeverityOpt, _isSuppressed); 212return new DiagnosticDescription(_code, _isWarningAsError, _squiggledText, _arguments, _startPosition, _syntaxPredicate, true, _errorCodeType, defaultSeverity, _effectiveSeverityOpt, _isSuppressed); 217return new DiagnosticDescription(_code, _isWarningAsError, _squiggledText, _arguments, _startPosition, _syntaxPredicate, true, _errorCodeType, _defaultSeverityOpt, effectiveSeverity, _isSuppressed); 225return new DiagnosticDescription(_code, _isWarningAsError, _squiggledText, _arguments, new LinePosition(line - 1, column - 1), _syntaxPredicate, _argumentOrderDoesNotMatter, _errorCodeType, _defaultSeverityOpt, _effectiveSeverityOpt, _isSuppressed); 234return new DiagnosticDescription(_code, _isWarningAsError, _squiggledText, _arguments, _startPosition, syntaxPredicate, _argumentOrderDoesNotMatter, _errorCodeType, _defaultSeverityOpt, _effectiveSeverityOpt, _isSuppressed); 547var description = new DiagnosticDescription(d, errorCodeOnly: false, includeDefaultSeverity, includeEffectiveSeverity); 568var diffDescription = new DiagnosticDescription(d, errorCodeOnly: false, includeDefaultSeverity, includeEffectiveSeverity);
Diagnostics\DiagnosticExtensions.cs (1)
75var unmatchedActualDescription = actual.Select(d => new DiagnosticDescription(d, errorCodeOnly, includeDefaultSeverity, includeEffectiveSeverity))
Diagnostics\SuppressMessageAttributeTests.cs (1)
1408return new DiagnosticDescription(id, false, squiggledText, arguments, null, null, false);
TestHelpers.cs (1)
110return new DiagnosticDescription(
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
CompilationTestUtils.vb (1)
104emitDiagnostics.Select(Function(d) New DiagnosticDescription(d, errorCodeOnly:=False, includeDefaultSeverity:=False, includeEffectiveSeverity:=False)).ToArray())
2650 references to DiagnosticDescription
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (12)
src\Analyzers\CSharp\Tests\RemoveUnnecessaryParentheses\RemoveUnnecessaryExpressionParenthesesTests.cs (9)
50private static DiagnosticDescription GetRemoveUnnecessaryParenthesesDiagnostic(string text, int line, int column) 2801var parentheticalExpressionDiagnostic = GetRemoveUnnecessaryParenthesesDiagnostic("(1 + 2)", 4, 16); 2817var firstLineParentheticalExpressionDiagnostic = GetRemoveUnnecessaryParenthesesDiagnostic("(1 +", 4, 16); 2834var outerParentheticalExpressionDiagnostic = GetRemoveUnnecessaryParenthesesDiagnostic("(1 + (2 + 3) + 4)", 4, 16); 2835var innerParentheticalExpressionDiagnostic = GetRemoveUnnecessaryParenthesesDiagnostic("(2 + 3)", 4, 21); 2836var expectedDiagnostics = new DiagnosticDescription[] { outerParentheticalExpressionDiagnostic, innerParentheticalExpressionDiagnostic }; 2852var outerFirstLineParentheticalExpressionDiagnostic = GetRemoveUnnecessaryParenthesesDiagnostic("(1 + 2 +", 4, 16); 2853var innerParentheticalExpressionDiagnostic = GetRemoveUnnecessaryParenthesesDiagnostic("(3 + 4)", 5, 12); 2854var expectedDiagnostics = new DiagnosticDescription[] { outerFirstLineParentheticalExpressionDiagnostic, innerParentheticalExpressionDiagnostic };
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedParametersTests.cs (3)
42private Task TestDiagnosticsAsync(string initialMarkup, params DiagnosticDescription[] expectedDiagnostics) 46private Task TestDiagnosticsAsync(string initialMarkup, OptionsCollection options, params DiagnosticDescription[] expectedDiagnostics) 48private Task TestDiagnosticsAsync(string initialMarkup, OptionsCollection? options, ParseOptions? parseOptions, params DiagnosticDescription[] expectedDiagnostics)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
9339private void TestCS2002(string[] commandLineArgs, string baseDirectory, int expectedExitCode, string compileDiagnostic, params DiagnosticDescription[] parseDiagnostics) 9344private void TestCS2002(string[] commandLineArgs, string baseDirectory, int expectedExitCode, string[] compileDiagnostics, params DiagnosticDescription[] parseDiagnostics)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (2)
733params (DiagnosticDescription diagnostic, string message)[] expectedDiagnostics) 754params (DiagnosticDescription diagnostic, string message)[] expectedDiagnostics)
Diagnostics\MockDiagnosticAnalyzerTests.cs (1)
54params DiagnosticDescription[] expectedDiagnostics)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (70)
CodeGen\CodeGenAsyncIteratorTests.cs (5)
105private static void VerifyMissingMember(WellKnownMember member, params DiagnosticDescription[] expected) 113private static void VerifyMissingMember(string source, WellKnownMember member, params DiagnosticDescription[] expected) 122private static void VerifyMissingType(WellKnownType type, params DiagnosticDescription[] expected) 130private static void VerifyMissingType(string source, WellKnownType type, params DiagnosticDescription[] expected) 2204var expected = new DiagnosticDescription[] {
CodeGen\CodeGenFunctionPointersTests.cs (2)
5275var expectedDiagnostics = ArrayBuilder<DiagnosticDescription>.GetInstance(); 10595List<DiagnosticDescription> diagnostics = new()
CodeGen\CodeGenInParametersTests.cs (13)
2962DiagnosticDescription.None); 3005DiagnosticDescription.None); 3056DiagnosticDescription.None); 3107DiagnosticDescription.None); 3158DiagnosticDescription.None); 3209DiagnosticDescription.None); 3260DiagnosticDescription.None); 3340DiagnosticDescription.None); 3420DiagnosticDescription.None); 3500DiagnosticDescription.None); 3580DiagnosticDescription.None); 3633DiagnosticDescription.None); 3697DiagnosticDescription.None);
CodeGen\CodeGenTupleEqualityTests.cs (2)
4739void validate(string expression, params DiagnosticDescription[] expected) 4931void validate(string expression, params DiagnosticDescription[] diagnostics)
Emit\EmitErrorTests.cs (1)
235private static void VerifyEmitDiagnostics(string source2, CSharpCompilation compilation1, params DiagnosticDescription[] expectedDiagnostics)
Emit\NoPiaEmbedTypes.cs (47)
61DiagnosticDescription[] expected = { 109DiagnosticDescription[] expected = { 130DiagnosticDescription[] expectedFullBuildDiagnostics, 131DiagnosticDescription[] expectedMetadataOnlyDiagnostics = null) 186DiagnosticDescription[] expected = { 252DiagnosticDescription[] expected = { 315DiagnosticDescription[] expected = { 366DiagnosticDescription[] expected = { 416DiagnosticDescription[] expected = { 465DiagnosticDescription[] expected = { 515DiagnosticDescription[] expected = { 565DiagnosticDescription[] expected = { 615DiagnosticDescription[] expected = { 665DiagnosticDescription[] expected = { 715DiagnosticDescription[] expected = { 762DiagnosticDescription[] expected = 771DiagnosticDescription[] expectedMetadataOnly = 815DiagnosticDescription[] expected = { 865DiagnosticDescription[] expected = { 1819DiagnosticDescription[] expected = { 2057DiagnosticDescription[] expected = { 2124DiagnosticDescription[] expected = { 2383DiagnosticDescription[] expected = { 2461DiagnosticDescription[] expected = { 2522DiagnosticDescription[] expected = { 2528DiagnosticDescription[] expectedMetadataOnly = { 2637DiagnosticDescription[] expected = { 2643DiagnosticDescription[] expectedMetadataOnly = { 3719DiagnosticDescription[] expected = { 3766DiagnosticDescription[] expected = { 3849DiagnosticDescription[] expected = { 3912DiagnosticDescription[] expected = { 3966DiagnosticDescription[] expected = { 4059DiagnosticDescription[] expected = { 4711DiagnosticDescription[] expected = { 4779DiagnosticDescription[] expected = { 4882DiagnosticDescription[] expected = { 4961DiagnosticDescription[] expected = { 5032DiagnosticDescription[] expected = { 5133DiagnosticDescription[] expected = 5199DiagnosticDescription[] expected = { 5277DiagnosticDescription[] expected = { 5359DiagnosticDescription[] expected = { 5643DiagnosticDescription[] expected = { 5652DiagnosticDescription[] expectedMEtadataOnly = { 5764DiagnosticDescription[] expected = { 5824DiagnosticDescription[] expected = {
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (52)
Emit\NumericIntPtrTests.cs (52)
2376static DiagnosticDescription errorOutOfRangeChecked(string destinationType, string value) => Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, $"({destinationType})x").WithArguments(value, AsNative(destinationType)); 2377static DiagnosticDescription errorOutOfRange(string destinationType, string value) => Diagnostic(ErrorCode.ERR_ConstOutOfRange, $"({destinationType})x").WithArguments(value, AsNative(destinationType)); 2378static DiagnosticDescription warningOutOfRangeChecked(string destinationType, string value) => Diagnostic(ErrorCode.WRN_ConstOutOfRangeChecked, $"({destinationType})x").WithArguments(value, AsNative(destinationType)); 2380void constantConversions(string sourceType, string destinationType, string sourceValue, DiagnosticDescription checkedError, string checked32, string checked64, DiagnosticDescription uncheckedError, string unchecked32, string unchecked64) 2386void constantConversion(string sourceType, string destinationType, string sourceValue, bool useChecked, DiagnosticDescription expectedError, string expectedOutput) 2409comp.VerifyDiagnostics(expectedError is null ? Array.Empty<DiagnosticDescription>() : new[] { expectedError }); 5987Array.Empty<DiagnosticDescription>() : 6041void unifiedUnaryOp(string op, string opType, string expectedSymbol = null, string operand = null, string expectedResult = null, string expectedIL = "", DiagnosticDescription diagnostic = null) 6048void unaryOp(string op, string opType, string expectedSymbol, string operand, string expectedResult, string expectedIL, DiagnosticDescription diagnostic) 6056unaryOperator(op, opType, opType, expectedSymbol, operand, expectedResult, expectedIL, diagnostic != null ? new[] { diagnostic } : Array.Empty<DiagnosticDescription>()); 6226void unaryOperator(string op, string opType, string resultType, string expectedSymbol, string operand, string expectedResult, string expectedIL, DiagnosticDescription[] expectedDiagnostics) 6260void unifiedIncrementOps(string op, string opType, string expectedSymbol = null, bool useChecked = false, string values = null, string expectedResult = null, string expectedIL = "", string expectedLiftedIL = "", DiagnosticDescription diagnostic = null) 6267void incrementOps(string op, string opType, string expectedSymbol, bool useChecked, string values, string expectedResult, string expectedIL, string expectedLiftedIL, DiagnosticDescription diagnostic) 6275DiagnosticDescription[] getDiagnostics(string opType, bool isPrefix, DiagnosticDescription diagnostic) 6281return diagnostic != null ? new[] { diagnostic } : Array.Empty<DiagnosticDescription>(); 6575void incrementOperator(string op, string opType, bool isPrefix, string expectedSymbol, bool useChecked, string values, string expectedResult, string expectedIL, DiagnosticDescription[] expectedDiagnostics) 6636void unifiedIncrementOps(string op, string opType, string expectedSymbol = null, string values = null, string expectedResult = null, string expectedIL = "", string expectedLiftedIL = "", DiagnosticDescription diagnostic = null) 6643void incrementOps(string op, string opType, string expectedSymbol = null, string values = null, string expectedResult = null, string expectedIL = "", string expectedLiftedIL = "", DiagnosticDescription diagnostic = null) 6649DiagnosticDescription[] getDiagnostics(string opType, DiagnosticDescription diagnostic) 6655return diagnostic != null ? new[] { diagnostic } : Array.Empty<DiagnosticDescription>(); 6812void incrementOperator(string op, string opType, string expectedSymbol, string values, string expectedResult, string expectedIL, DiagnosticDescription[] expectedDiagnostics) 6987void verifyBoth(string type, params DiagnosticDescription[] expected) 6993void verify(string type, params DiagnosticDescription[] expected) 7028void unifiedBinaryOps(string op, string leftType, string rightType, string expectedSymbol1 = null, string expectedSymbol2 = "", DiagnosticDescription[] diagnostics1 = null, DiagnosticDescription[] diagnostics2 = null) 7043void binaryOps(string op, string leftType, string rightType, string expectedSymbol1 = null, string expectedSymbol2 = "", DiagnosticDescription[] diagnostics1 = null, DiagnosticDescription[] diagnostics2 = null) 7049void binaryOp(string op, string leftType, string rightType, string expectedSymbol, DiagnosticDescription[] diagnostics) 7055binaryOperator(op, leftType, rightType, expectedSymbol, diagnostics ?? Array.Empty<DiagnosticDescription>()); 7058static DiagnosticDescription[] getBadBinaryOpsDiagnostics(string op, string leftType, string rightType, bool includeBadBinaryOps = true, bool includeVoidError = false) 7060var builder = ArrayBuilder<DiagnosticDescription>.GetInstance(); 7066static DiagnosticDescription[] getAmbiguousBinaryOpsDiagnostics(string op, string leftType, string rightType) 8110void binaryOperator(string op, string leftType, string rightType, string expectedSymbol, DiagnosticDescription[] expectedDiagnostics) 8892static DiagnosticDescription[] getNoDiagnostics(string opType, string op, string operand) => Array.Empty<DiagnosticDescription>(); 8893static DiagnosticDescription[] getBadUnaryOpDiagnostics(string opType, string op, string operand) => new[] { Diagnostic(ErrorCode.ERR_BadUnaryOp, operand).WithArguments(op, AsNative(opType)) }; 8895static DiagnosticDescription[] getIntDivByZeroDiagnostics(string opType, string op, string operand) => new[] { Diagnostic(ErrorCode.ERR_IntDivByZero, operand) }; 8897void unaryOperator(string opType, string op, string operand, string expectedResult, Func<string, string, string, DiagnosticDescription[]> getDiagnostics = null) 8934constantExpression(opType, $"unchecked({expr})", expectedResultUnchecked, Array.Empty<DiagnosticDescription>()); 8946constantExpression(opType, expr, expectedResult, Array.Empty<DiagnosticDescription>()); 8947constantExpression(opType, $"checked({expr})", expectedResult, Array.Empty<DiagnosticDescription>()); 8948constantExpression(opType, $"unchecked({expr})", expectedResult, Array.Empty<DiagnosticDescription>()); 8951void binaryOperator(string opType, string op, string leftType, string leftOperand, string rightType, string rightOperand, string expectedResult, Func<string, string, string, DiagnosticDescription[]> getDiagnostics = null) 8988constantExpression(opType, $"unchecked({expr})", expectedResultUnchecked, Array.Empty<DiagnosticDescription>()); 9000constantExpression(opType, expr, expectedResult, Array.Empty<DiagnosticDescription>()); 9001constantExpression(opType, $"checked({expr})", expectedResult, Array.Empty<DiagnosticDescription>()); 9002constantExpression(opType, $"unchecked({expr})", expectedResult, Array.Empty<DiagnosticDescription>()); 9005void constantDeclaration(string opType, string declarations, string expr, string expectedResult, DiagnosticDescription[] expectedDiagnostics) 9039void constantExpression(string opType, string expr, string expectedResult, DiagnosticDescription[] expectedDiagnostics)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (33)
Attributes\AttributeTests_Security.cs (1)
641comp.EmitToArray(options: new EmitOptions(runtimeMetadataVersion: "v4.0.31019"), expectedWarnings: new DiagnosticDescription[0]);
Attributes\AttributeTests_WellKnownAttributes.cs (2)
8840void verify(CSharpCompilationOptions options, params DiagnosticDescription[] expectedDiagnostics) 8846void verifyReference(MetadataReference reference, CSharpCompilationOptions options, DiagnosticDescription[] expectedDiagnostics)
Diagnostics\DiagnosticAnalyzerTests.cs (10)
1428var expected = new DiagnosticDescription[typeCount]; 1574var builder = ArrayBuilder<DiagnosticDescription>.GetInstance(); 1699private static void VerifyGeneratedCodeAnalyzerDiagnostics(Compilation compilation, DiagnosticDescription[] expected, GeneratedCodeAnalysisFlags? generatedCodeAnalysisFlagsOpt, AnalyzerOptions analyzerOptions = null, bool testIsGeneratedCodeInCallbacks = false) 1705private static DiagnosticDescription[] GetExpectedGeneratedCodeAnalyzerDiagnostics(Compilation compilation, Func<string, bool> isGeneratedFileName, GeneratedCodeAnalysisFlags? generatedCodeAnalysisFlagsOpt) 1722var builder = ArrayBuilder<DiagnosticDescription>.GetInstance(); 1845ArrayBuilder<DiagnosticDescription> builder, 1868private static void AddExpectedNonLocalDiagnostic(ArrayBuilder<DiagnosticDescription> builder, DiagnosticDescriptor descriptor, params string[] arguments) 1873private static void AddExpectedDiagnostic(ArrayBuilder<DiagnosticDescription> builder, string diagnosticId, string squiggledText, int line, int column, params string[] arguments) 2775private static void TestSymbolStartAnalyzerCore(SymbolStartAnalyzer analyzer, params DiagnosticDescription[] diagnostics) 2780private static void TestSymbolStartAnalyzerCore(DiagnosticAnalyzer[] analyzers, params DiagnosticDescription[] diagnostics)
Diagnostics\DiagnosticSuppressorTests.cs (6)
30params DiagnosticDescription[] expected) 36params DiagnosticDescription[] expected) 234var expectedDiagnostics = new DiagnosticDescription[] { 241expectedDiagnostics = new DiagnosticDescription[] { 694var expectedDiagnostics = new DiagnosticDescription[] 705expectedDiagnostics = new DiagnosticDescription[] {
FirstClassSpanTests.cs (2)
6194void verifyWithMissing(string source2, CSharpParseOptions parseOptions, params DiagnosticDescription[] expected) 6267void verifyWithMissing(string source2, CSharpParseOptions parseOptions, params DiagnosticDescription[] expected)
RefReadonlyParameterTests.cs (5)
4840verifier.VerifyDiagnostics(fromMetadata ? Array.Empty<DiagnosticDescription>() : new[] { warning1 }); 4913: DiagnosticDescription.None); 7257: Array.Empty<DiagnosticDescription>(); 7708DiagnosticDescription[] expectedDiagnostics; 8216DiagnosticDescription[] expectedDiagnostics;
Semantics\ExperimentalAttributeTests.cs (1)
2347static DiagnosticDescription getExpectedDiagnostic(ObsoleteKind kind)
Semantics\ParamsCollectionTests.cs (2)
12751private void VerifyAttributeEmbedding(string src, string memberName, string memberDisplay, params DiagnosticDescription[] moduleDiagnostic) 12756private void VerifyAttributeEmbedding(string src1, string src2, string memberName, string memberDisplay, params DiagnosticDescription[] moduleDiagnostic)
Semantics\PatternMatchingTests3.cs (1)
1395var expectedDiagnostics = new DiagnosticDescription[] {
Semantics\PatternMatchingTests5.cs (1)
526VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(src, expectedFlowGraph, DiagnosticDescription.None, parseOptions: TestOptions.Regular10);
Semantics\PrimaryConstructorTests.cs (1)
7851var builder = ArrayBuilder<DiagnosticDescription>.GetInstance();
Semantics\RecordTests.cs (1)
13858} : new DiagnosticDescription[] { };
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
EndToEndTests.cs (1)
566var diagnosticsBuilder = ArrayBuilder<DiagnosticDescription>.GetInstance();
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (12)
src\Analyzers\CSharp\Tests\RemoveUnnecessaryParentheses\RemoveUnnecessaryExpressionParenthesesTests.cs (9)
50private static DiagnosticDescription GetRemoveUnnecessaryParenthesesDiagnostic(string text, int line, int column) 2801var parentheticalExpressionDiagnostic = GetRemoveUnnecessaryParenthesesDiagnostic("(1 + 2)", 4, 16); 2817var firstLineParentheticalExpressionDiagnostic = GetRemoveUnnecessaryParenthesesDiagnostic("(1 +", 4, 16); 2834var outerParentheticalExpressionDiagnostic = GetRemoveUnnecessaryParenthesesDiagnostic("(1 + (2 + 3) + 4)", 4, 16); 2835var innerParentheticalExpressionDiagnostic = GetRemoveUnnecessaryParenthesesDiagnostic("(2 + 3)", 4, 21); 2836var expectedDiagnostics = new DiagnosticDescription[] { outerParentheticalExpressionDiagnostic, innerParentheticalExpressionDiagnostic }; 2852var outerFirstLineParentheticalExpressionDiagnostic = GetRemoveUnnecessaryParenthesesDiagnostic("(1 + 2 +", 4, 16); 2853var innerParentheticalExpressionDiagnostic = GetRemoveUnnecessaryParenthesesDiagnostic("(3 + 4)", 5, 12); 2854var expectedDiagnostics = new DiagnosticDescription[] { outerFirstLineParentheticalExpressionDiagnostic, innerParentheticalExpressionDiagnostic };
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedParametersTests.cs (3)
42private Task TestDiagnosticsAsync(string initialMarkup, params DiagnosticDescription[] expectedDiagnostics) 46private Task TestDiagnosticsAsync(string initialMarkup, OptionsCollection options, params DiagnosticDescription[] expectedDiagnostics) 48private Task TestDiagnosticsAsync(string initialMarkup, OptionsCollection? options, ParseOptions? parseOptions, params DiagnosticDescription[] expectedDiagnostics)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1743)
IOperation\FunctionPointerOperations.cs (15)
43VerifyOperationTreeAndDiagnosticsForTest<PrefixUnaryExpressionSyntax>(comp, expectedOperationTree, expectedDiagnostics: new DiagnosticDescription[0]); 67var expectedDiagnostics = new DiagnosticDescription[] { 97var expectedDiagnostics = new DiagnosticDescription[] { 127var expectedDiagnostics = new DiagnosticDescription[] { 130VerifyOperationTreeAndDiagnosticsForTest<PrefixUnaryExpressionSyntax>(comp, expectedOperationTree, expectedDiagnostics: new DiagnosticDescription[0]); 152var expectedDiagnostics = new DiagnosticDescription[] { 182var expectedDiagnostics = new DiagnosticDescription[] { 249VerifyOperationTreeAndDiagnosticsForTest<InvocationExpressionSyntax>(comp, expectedOperationTree, expectedDiagnostics: new DiagnosticDescription[0]); 278VerifyOperationTreeAndDiagnosticsForTest<InvocationExpressionSyntax>(comp, expectedOperationTree, expectedDiagnostics: new DiagnosticDescription[0]); 303var expectedDiagnostics = new DiagnosticDescription[] { 334var expectedDiagnostics = new DiagnosticDescription[] { 365var expectedDiagnostics = new DiagnosticDescription[] { 433var expectedDiagnostics = new DiagnosticDescription[] { 517VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(comp, expectedFlowGraph, new DiagnosticDescription[0]); 594VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(comp, expectedFlowGraph, new DiagnosticDescription[0]);
IOperation\IOperationTests.cs (1)
42var diagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_ArrayCreationAndInitializer.cs (44)
35var expectedDiagnostics = DiagnosticDescription.None; 61var expectedDiagnostics = DiagnosticDescription.None; 88var expectedDiagnostics = DiagnosticDescription.None; 114var expectedDiagnostics = DiagnosticDescription.None; 143var expectedDiagnostics = DiagnosticDescription.None; 172var expectedDiagnostics = DiagnosticDescription.None; 200var expectedDiagnostics = DiagnosticDescription.None; 228var expectedDiagnostics = DiagnosticDescription.None; 256var expectedDiagnostics = new DiagnosticDescription[] { 288var expectedDiagnostics = new DiagnosticDescription[] { 327var expectedDiagnostics = DiagnosticDescription.None; 358var expectedDiagnostics = DiagnosticDescription.None; 389var expectedDiagnostics = DiagnosticDescription.None; 414var expectedDiagnostics = new DiagnosticDescription[] { 449var expectedDiagnostics = new DiagnosticDescription[] { 494var expectedDiagnostics = DiagnosticDescription.None; 521var expectedDiagnostics = DiagnosticDescription.None; 580var expectedDiagnostics = DiagnosticDescription.None; 619var expectedDiagnostics = DiagnosticDescription.None; 643var expectedDiagnostics = DiagnosticDescription.None; 696var expectedDiagnostics = DiagnosticDescription.None; 719var expectedDiagnostics = new DiagnosticDescription[] { 752var expectedDiagnostics = new DiagnosticDescription[] { 783var expectedDiagnostics = new DiagnosticDescription[] { 816var expectedDiagnostics = DiagnosticDescription.None; 848var expectedDiagnostics = DiagnosticDescription.None; 880var expectedDiagnostics = new DiagnosticDescription[] { 916var expectedDiagnostics = new DiagnosticDescription[] { 947var expectedDiagnostics = new DiagnosticDescription[] { 1109var expectedDiagnostics = DiagnosticDescription.None; 1210var expectedDiagnostics = DiagnosticDescription.None; 1318var expectedDiagnostics = new DiagnosticDescription[] { 1427var expectedDiagnostics = DiagnosticDescription.None; 1539var expectedDiagnostics = new DiagnosticDescription[] { 1690var expectedDiagnostics = new DiagnosticDescription[] { 1807var expectedDiagnostics = DiagnosticDescription.None; 1928var expectedDiagnostics = DiagnosticDescription.None; 2042var expectedDiagnostics = DiagnosticDescription.None; 2167var expectedDiagnostics = DiagnosticDescription.None; 2294var expectedDiagnostics = new DiagnosticDescription[] { 2450var expectedDiagnostics = DiagnosticDescription.None; 2613var expectedDiagnostics = DiagnosticDescription.None; 2800var expectedDiagnostics = new DiagnosticDescription[] { 3038var expectedDiagnostics = new DiagnosticDescription[] {
IOperation\IOperationTests_IAddressOfOperation.cs (2)
30var expectedDiagnostics = DiagnosticDescription.None; 77var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IAnonymousFunctionExpression.cs (13)
62var expectedDiagnostics = DiagnosticDescription.None; 99var expectedDiagnostics = DiagnosticDescription.None; 146var expectedDiagnostics = DiagnosticDescription.None; 183var expectedDiagnostics = DiagnosticDescription.None; 230var expectedDiagnostics = DiagnosticDescription.None; 274var expectedDiagnostics = new DiagnosticDescription[] { 328var expectedDiagnostics = new DiagnosticDescription[] { 376var expectedDiagnostics = new DiagnosticDescription[] { 472var expectedDiagnostics = new DiagnosticDescription[] { 515var expectedDiagnostics = DiagnosticDescription.None; 594var expectedDiagnostics = DiagnosticDescription.None; 688var expectedDiagnostics = DiagnosticDescription.None; 816var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IAnonymousObjectCreationOperation.cs (16)
89var expectedDiagnostics = DiagnosticDescription.None; 179var expectedDiagnostics = DiagnosticDescription.None; 259var expectedDiagnostics = DiagnosticDescription.None; 454var expectedDiagnostics = DiagnosticDescription.None; 625var expectedDiagnostics = DiagnosticDescription.None; 750var expectedDiagnostics = DiagnosticDescription.None; 869var expectedDiagnostics = DiagnosticDescription.None; 915var expectedDiagnostics = DiagnosticDescription.None; 995var expectedDiagnostics = new DiagnosticDescription[] { 1069var expectedDiagnostics = new DiagnosticDescription[] { 1153var expectedDiagnostics = new DiagnosticDescription[] { 1237var expectedDiagnostics = new DiagnosticDescription[] { 1364var expectedDiagnostics = DiagnosticDescription.None; 1484var expectedDiagnostics = DiagnosticDescription.None; 1642var expectedDiagnostics = DiagnosticDescription.None; 1685VerifyOperationTreeAndDiagnosticsForTest<AnonymousObjectCreationExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics: DiagnosticDescription.None);
IOperation\IOperationTests_IArgument.cs (99)
41var expectedDiagnostics = DiagnosticDescription.None; 75var expectedDiagnostics = DiagnosticDescription.None; 109var expectedDiagnostics = DiagnosticDescription.None; 143var expectedDiagnostics = DiagnosticDescription.None; 177var expectedDiagnostics = DiagnosticDescription.None; 215var expectedDiagnostics = DiagnosticDescription.None; 253var expectedDiagnostics = DiagnosticDescription.None; 293var expectedDiagnostics = DiagnosticDescription.None; 329var expectedDiagnostics = DiagnosticDescription.None; 365var expectedDiagnostics = DiagnosticDescription.None; 401var expectedDiagnostics = DiagnosticDescription.None; 433var expectedDiagnostics = DiagnosticDescription.None; 465var expectedDiagnostics = DiagnosticDescription.None; 496var expectedDiagnostics = DiagnosticDescription.None; 538var expectedDiagnostics = DiagnosticDescription.None; 582var expectedDiagnostics = DiagnosticDescription.None; 624var expectedDiagnostics = DiagnosticDescription.None; 659var expectedDiagnostics = DiagnosticDescription.None; 700var expectedDiagnostics = DiagnosticDescription.None; 739var expectedDiagnostics = DiagnosticDescription.None; 779var expectedDiagnostics = DiagnosticDescription.None; 814var expectedDiagnostics = DiagnosticDescription.None; 857var expectedDiagnostics = DiagnosticDescription.None; 892var expectedDiagnostics = DiagnosticDescription.None; 935var expectedDiagnostics = DiagnosticDescription.None; 972var expectedDiagnostics = DiagnosticDescription.None; 1015var expectedDiagnostics = DiagnosticDescription.None; 1059var expectedDiagnostics = DiagnosticDescription.None; 1102var expectedDiagnostics = DiagnosticDescription.None; 1145var expectedDiagnostics = DiagnosticDescription.None; 1200var expectedDiagnostics = DiagnosticDescription.None; 1285var expectedDiagnostics = new DiagnosticDescription[] { 1317var expectedDiagnostics = new DiagnosticDescription[] { 1347var expectedDiagnostics = new DiagnosticDescription[] 1416var expectedDiagnostics = DiagnosticDescription.None; 1459var expectedDiagnostics0 = new DiagnosticDescription[] 1474VerifyOperationTreeAndDiagnosticsForTest<InvocationExpressionSyntax>(comp1, expectedOperationTree0And1, DiagnosticDescription.None); 1475comp1.VerifyEmitDiagnostics(DiagnosticDescription.None); 1513VerifyOperationTreeAndDiagnosticsForTest<InvocationExpressionSyntax>(comp, expectedOperationTree0And1, DiagnosticDescription.None); 1520VerifyOperationTreeAndDiagnosticsForTest<InvocationExpressionSyntax>(comp1, expectedOperationTree0And1, DiagnosticDescription.None); 1521comp1.VerifyEmitDiagnostics(DiagnosticDescription.None); 1559VerifyOperationTreeAndDiagnosticsForTest<InvocationExpressionSyntax>(comp, expectedOperationTree0And1, DiagnosticDescription.None); 1566VerifyOperationTreeAndDiagnosticsForTest<InvocationExpressionSyntax>(comp1, expectedOperationTree0And1, DiagnosticDescription.None); 1567comp1.VerifyEmitDiagnostics(DiagnosticDescription.None); 1604VerifyOperationTreeAndDiagnosticsForTest<InvocationExpressionSyntax>(comp, expectedOperationTree0And1, DiagnosticDescription.None); 1611VerifyOperationTreeAndDiagnosticsForTest<InvocationExpressionSyntax>(comp1, expectedOperationTree0And1, DiagnosticDescription.None); 1612comp1.VerifyEmitDiagnostics(DiagnosticDescription.None); 1650VerifyOperationTreeAndDiagnosticsForTest<InvocationExpressionSyntax>(comp, expectedOperationTree0And1, DiagnosticDescription.None); 1657VerifyOperationTreeAndDiagnosticsForTest<InvocationExpressionSyntax>(comp1, expectedOperationTree0And1, DiagnosticDescription.None); 1658comp1.VerifyEmitDiagnostics(DiagnosticDescription.None); 1691var expectedDiagnostics = DiagnosticDescription.None; 1726var expectedDiagnostics = DiagnosticDescription.None; 1766var expectedDiagnostics = DiagnosticDescription.None; 1800var expectedDiagnostics = new DiagnosticDescription[] { 1839var expectedDiagnostics = new DiagnosticDescription[] { 1893var expectedDiagnostics = DiagnosticDescription.None; 1940var expectedDiagnostics = DiagnosticDescription.None; 1973var expectedDiagnostics = DiagnosticDescription.None; 2087var expectedDiagnostics = DiagnosticDescription.None; 2205var expectedDiagnostics = DiagnosticDescription.None; 2324var expectedDiagnostics = DiagnosticDescription.None; 2429var expectedDiagnostics = new DiagnosticDescription[] { 2491var expectedDiagnostics = new DiagnosticDescription[] { 2563var expectedDiagnostics = new DiagnosticDescription[] { 2640var expectedDiagnostics = new DiagnosticDescription[] { 2696var expectedDiagnostics = new DiagnosticDescription[] { 2762var expectedDiagnostics = new DiagnosticDescription[] { 2843var expectedDiagnostics = new DiagnosticDescription[] { 2889var expectedDiagnostics = new DiagnosticDescription[] { 2938var expectedDiagnostics = new DiagnosticDescription[] { 2991var expectedDiagnostics = new DiagnosticDescription[] { 3039var expectedDiagnostics = new DiagnosticDescription[] { 3095var expectedDiagnostics = DiagnosticDescription.None; 3120var expectedDiagnostics = DiagnosticDescription.None; 3146var expectedDiagnostics = DiagnosticDescription.None; 3171var expectedDiagnostics = new DiagnosticDescription[] { 3211var expectedDiagnostics = DiagnosticDescription.None; 3248var expectedDiagnostics = DiagnosticDescription.None; 3272var expectedDiagnostics = DiagnosticDescription.None; 3296var expectedDiagnostics = DiagnosticDescription.None; 3320var expectedDiagnostics = DiagnosticDescription.None; 3345var expectedDiagnostics = DiagnosticDescription.None; 3370var expectedDiagnostics = new DiagnosticDescription[] { 3410var expectedDiagnostics = DiagnosticDescription.None; 3447var expectedDiagnostics = DiagnosticDescription.None; 3471var expectedDiagnostics = DiagnosticDescription.None; 3505var expectedDiagnostics = DiagnosticDescription.None; 3540var expectedDiagnostics = DiagnosticDescription.None; 3562var expectedDiagnostics = DiagnosticDescription.None; 3587var expectedDiagnostics = DiagnosticDescription.None; 3610var expectedDiagnostics = DiagnosticDescription.None; 3642var expectedDiagnostics = DiagnosticDescription.None; 3673var expectedDiagnostics = DiagnosticDescription.None; 3711var expectedDiagnostics = new DiagnosticDescription[] { 3755var expectedDiagnostics = new DiagnosticDescription[] { 3810var expectedDiagnostics = new DiagnosticDescription[] { 3908var expectedDiagnostics = new DiagnosticDescription[] { 4004var expectedDiagnostics = new DiagnosticDescription[] { 4125var expectedDiagnostics = new DiagnosticDescription[] {
IOperation\IOperationTests_IArrayElementReferenceExpression.cs (47)
37var expectedDiagnostics = DiagnosticDescription.None; 62var expectedDiagnostics = DiagnosticDescription.None; 92var expectedDiagnostics = DiagnosticDescription.None; 118var expectedDiagnostics = DiagnosticDescription.None; 144var expectedDiagnostics = DiagnosticDescription.None; 176var expectedDiagnostics = DiagnosticDescription.None; 205var expectedDiagnostics = DiagnosticDescription.None; 240var expectedDiagnostics = DiagnosticDescription.None; 276var expectedDiagnostics = DiagnosticDescription.None; 304var expectedDiagnostics = DiagnosticDescription.None; 332var expectedDiagnostics = DiagnosticDescription.None; 365var expectedDiagnostics = DiagnosticDescription.None; 398var expectedDiagnostics = DiagnosticDescription.None; 431var expectedDiagnostics = DiagnosticDescription.None; 459var expectedDiagnostics = new DiagnosticDescription[] { 496var expectedDiagnostics = new DiagnosticDescription[] { 526var expectedDiagnostics = new DiagnosticDescription[] 556var expectedDiagnostics = new DiagnosticDescription[] { 589var expectedDiagnostics = new DiagnosticDescription[] { 619var expectedDiagnostics = new DiagnosticDescription[] { 649var expectedDiagnostics = new DiagnosticDescription[] { 682var expectedDiagnostics = new DiagnosticDescription[] { 711var expectedDiagnostics = new DiagnosticDescription[] { 744var expectedDiagnostics = new DiagnosticDescription[] { 775var expectedDiagnostics = new DiagnosticDescription[] { 803var expectedDiagnostics = new DiagnosticDescription[] { 835var expectedDiagnostics = new DiagnosticDescription[] { 879var expectedDiagnostics = new DiagnosticDescription[] { 914var expectedDiagnostics = new DiagnosticDescription[] { 944var expectedDiagnostics = new DiagnosticDescription[] { 981var expectedDiagnostics = new DiagnosticDescription[] { 1041var expectedDiagnostics = DiagnosticDescription.None; 1137var expectedDiagnostics = DiagnosticDescription.None; 1245var expectedDiagnostics = DiagnosticDescription.None; 1353var expectedDiagnostics = DiagnosticDescription.None; 1499var expectedDiagnostics = DiagnosticDescription.None; 1680var expectedDiagnostics = DiagnosticDescription.None; 1706var expectedDiagnostics = DiagnosticDescription.None; 1748var expectedDiagnostics = DiagnosticDescription.None; 1835var expectedDiagnostics = DiagnosticDescription.None; 1928var expectedDiagnostics = DiagnosticDescription.None; 2051var expectedDiagnostics = DiagnosticDescription.None; 2078var expectedDiagnostics = DiagnosticDescription.None; 2120var expectedDiagnostics = DiagnosticDescription.None; 2207var expectedDiagnostics = DiagnosticDescription.None; 2300var expectedDiagnostics = DiagnosticDescription.None; 2423var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IAttributeOperation.cs (31)
65var expectedDiagnostics = DiagnosticDescription.None; 102var expectedDiagnostics = DiagnosticDescription.None; 139var expectedDiagnostics = DiagnosticDescription.None; 174var expectedDiagnostics = DiagnosticDescription.None; 228var expectedDiagnostics = DiagnosticDescription.None; 260var expectedDiagnostics = DiagnosticDescription.None; 324var expectedDiagnostics = DiagnosticDescription.None; 360var expectedDiagnostics = DiagnosticDescription.None; 396var expectedDiagnostics = DiagnosticDescription.None; 440var expectedDiagnostics = DiagnosticDescription.None; 472var expectedDiagnostics = DiagnosticDescription.None; 499var expectedDiagnostics = new DiagnosticDescription[] 548var expectedDiagnostics = new DiagnosticDescription[] 585var expectedDiagnostics = new DiagnosticDescription[] 622var expectedDiagnostics = DiagnosticDescription.None; 654var expectedDiagnostics = DiagnosticDescription.None; 683var expectedDiagnostics = DiagnosticDescription.None; 714var expectedDiagnostics = new DiagnosticDescription[] 752var expectedDiagnostics = new DiagnosticDescription[] 801"assembly" => DiagnosticDescription.None, 802"module" => new DiagnosticDescription[] 845var expectedDiagnostics = DiagnosticDescription.None; 864var expectedDiagnostics = DiagnosticDescription.None; 917var expectedDiagnostics = DiagnosticDescription.None; 1044var expectedDiagnostics = DiagnosticDescription.None; 1075var expectedDiagnostics = DiagnosticDescription.None; 1105var expectedDiagnostics = DiagnosticDescription.None; 1184var expectedDiagnostics = DiagnosticDescription.None; 1217var expectedDiagnostics = DiagnosticDescription.None; 1252var expectedDiagnostics = DiagnosticDescription.None; 1286var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IAwaitExpression.cs (11)
42var expectedDiagnostics = DiagnosticDescription.None; 67var expectedDiagnostics = DiagnosticDescription.None; 94var expectedDiagnostics = DiagnosticDescription.None; 121var expectedDiagnostics = new DiagnosticDescription[] { 151var expectedDiagnostics = new DiagnosticDescription[] { 182var expectedDiagnostics = new DiagnosticDescription[] { 217var expectedDiagnostics = new DiagnosticDescription[] { 305var expectedDiagnostics = DiagnosticDescription.None; 349var expectedDiagnostics = DiagnosticDescription.None; 445var expectedDiagnostics = DiagnosticDescription.None; 539var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IBinaryOperatorExpression.cs (62)
201var expectedDiagnostics = DiagnosticDescription.None; 229var expectedDiagnostics = DiagnosticDescription.None; 412var expectedDiagnostics = DiagnosticDescription.None; 438var expectedDiagnostics = DiagnosticDescription.None; 473var expectedDiagnostics = DiagnosticDescription.None; 607var expectedDiagnostics = DiagnosticDescription.None; 636var expectedDiagnostics = DiagnosticDescription.None; 674var expectedDiagnostics = DiagnosticDescription.None; 756var expectedDiagnostics = DiagnosticDescription.None; 853var expectedDiagnostics = DiagnosticDescription.None; 942var expectedDiagnostics = DiagnosticDescription.None; 1031var expectedDiagnostics = DiagnosticDescription.None; 1142var expectedDiagnostics = DiagnosticDescription.None; 1224var expectedDiagnostics = DiagnosticDescription.None; 1314var expectedDiagnostics = DiagnosticDescription.None; 1404var expectedDiagnostics = DiagnosticDescription.None; 1425var expectedDiagnostics = DiagnosticDescription.None; 1534var expectedDiagnostics = DiagnosticDescription.None; 1646var expectedDiagnostics = DiagnosticDescription.None; 1799var expectedDiagnostics = DiagnosticDescription.None; 1944var expectedDiagnostics = DiagnosticDescription.None; 2057var expectedDiagnostics = DiagnosticDescription.None; 2170var expectedDiagnostics = DiagnosticDescription.None; 2283var expectedDiagnostics = DiagnosticDescription.None; 2396var expectedDiagnostics = DiagnosticDescription.None; 2507var expectedDiagnostics = DiagnosticDescription.None; 2611var expectedDiagnostics = DiagnosticDescription.None; 2715var expectedDiagnostics = DiagnosticDescription.None; 2819var expectedDiagnostics = DiagnosticDescription.None; 2923var expectedDiagnostics = DiagnosticDescription.None; 3027var expectedDiagnostics = DiagnosticDescription.None; 3131var expectedDiagnostics = DiagnosticDescription.None; 3235var expectedDiagnostics = DiagnosticDescription.None; 3339var expectedDiagnostics = DiagnosticDescription.None; 3845var expectedDiagnostics = DiagnosticDescription.None; 3946var expectedDiagnostics = DiagnosticDescription.None; 4079var expectedDiagnostics = DiagnosticDescription.None; 4222var expectedDiagnostics = DiagnosticDescription.None; 4598var expectedDiagnostics = DiagnosticDescription.None; 4760var expectedDiagnostics = DiagnosticDescription.None; 4921var expectedDiagnostics = DiagnosticDescription.None; 5245var expectedDiagnostics = DiagnosticDescription.None; 5404var expectedDiagnostics = DiagnosticDescription.None; 5500var expectedDiagnostics = DiagnosticDescription.None; 5596var expectedDiagnostics = DiagnosticDescription.None; 5724var expectedDiagnostics = DiagnosticDescription.None; 5862var expectedDiagnostics = DiagnosticDescription.None; 5958var expectedDiagnostics = DiagnosticDescription.None; 6056var expectedDiagnostics = DiagnosticDescription.None; 6154var expectedDiagnostics = DiagnosticDescription.None; 6250var expectedDiagnostics = DiagnosticDescription.None; 6454var expectedDiagnostics = DiagnosticDescription.None; 6558var expectedDiagnostics = DiagnosticDescription.None; 6662var expectedDiagnostics = DiagnosticDescription.None; 6760var expectedDiagnostics = DiagnosticDescription.None; 6972var expectedDiagnostics = DiagnosticDescription.None; 7076var expectedDiagnostics = DiagnosticDescription.None; 7175var expectedDiagnostics = DiagnosticDescription.None; 7278var expectedDiagnostics = DiagnosticDescription.None; 7381var expectedDiagnostics = DiagnosticDescription.None; 7480var expectedDiagnostics = DiagnosticDescription.None; 7804var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IBoundDiscardOperation.cs (2)
33var expectedDiagnostics = DiagnosticDescription.None; 63var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IBranchOperation.cs (2)
821var expectedDiagnostics = DiagnosticDescription.None; 900var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_ICoalesceAssignmentOperation.cs (15)
37var expectedDiagnostics = DiagnosticDescription.None; 64var expectedDiagnostics = DiagnosticDescription.None; 88var expectedDiagnostics = new DiagnosticDescription[] { 116var expectedDiagnostics = new DiagnosticDescription[] { 147var expectedDiagnostics = new DiagnosticDescription[] { 187var expectedDiagnostics = DiagnosticDescription.None; 215var expectedDiagnostics = DiagnosticDescription.None; 241var expectedDiagnostics = new DiagnosticDescription[] { 328", expectedDiagnostics: DiagnosticDescription.None); 448var expectedDiagnostics = DiagnosticDescription.None; 565var expectedDiagnostics = DiagnosticDescription.None; 720var expectedDiagnostics = new DiagnosticDescription[] { 857var expectedDiagnostics = DiagnosticDescription.None; 930var expectedDiagnostics = DiagnosticDescription.None; 1038var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_ICoalesceOperation.cs (1)
1606var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_ICompoundAssignmentOperation.cs (20)
129var expectedDiagnostics = DiagnosticDescription.None; 158var expectedDiagnostics = DiagnosticDescription.None; 192var expectedDiagnostics = new DiagnosticDescription[] { 230var expectedDiagnostics = new DiagnosticDescription[] { 281var expectedDiagnostics = DiagnosticDescription.None; 315var expectedDiagnostics = DiagnosticDescription.None; 362var expectedDiagnostics = DiagnosticDescription.None; 409var expectedDiagnostics = DiagnosticDescription.None; 448var expectedDiagnostics = new DiagnosticDescription[] { 491var expectedDiagnostics = new DiagnosticDescription[] { 514var expectedDiagnostics = DiagnosticDescription.None; 616var expectedDiagnostics = DiagnosticDescription.None; 718var expectedDiagnostics = DiagnosticDescription.None; 820var expectedDiagnostics = DiagnosticDescription.None; 922var expectedDiagnostics = DiagnosticDescription.None; 1024var expectedDiagnostics = DiagnosticDescription.None; 1126var expectedDiagnostics = DiagnosticDescription.None; 1228var expectedDiagnostics = DiagnosticDescription.None; 1330var expectedDiagnostics = DiagnosticDescription.None; 1432var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IConditionalAccessExpression.cs (11)
41var expectedDiagnostics = DiagnosticDescription.None; 72var expectedDiagnostics = DiagnosticDescription.None; 129var expectedDiagnostics = DiagnosticDescription.None; 373var expectedDiagnostics = DiagnosticDescription.None; 469var expectedDiagnostics = DiagnosticDescription.None; 566var expectedDiagnostics = DiagnosticDescription.None; 759var expectedDiagnostics = DiagnosticDescription.None; 969var expectedDiagnostics = DiagnosticDescription.None; 1276var expectedDiagnostics = DiagnosticDescription.None; 1435var expectedDiagnostics = DiagnosticDescription.None; 1564", DiagnosticDescription.None);
IOperation\IOperationTests_IConditionalOperation.cs (7)
41var expectedDiagnostics = DiagnosticDescription.None; 70var expectedDiagnostics = DiagnosticDescription.None; 116var expectedDiagnostics = DiagnosticDescription.None; 162var expectedDiagnostics = DiagnosticDescription.None; 251var expectedDiagnostics = DiagnosticDescription.None; 363var expectedDiagnostics = DiagnosticDescription.None; 475var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IConversionExpression.cs (147)
46var expectedDiagnostics = DiagnosticDescription.None; 75var expectedDiagnostics = DiagnosticDescription.None; 103var expectedDiagnostics = DiagnosticDescription.None; 132var expectedDiagnostics = new DiagnosticDescription[] { 163var expectedDiagnostics = new DiagnosticDescription[] { 213var expectedDiagnostics = new DiagnosticDescription[] { 250var expectedDiagnostics = new DiagnosticDescription[] { 285var expectedDiagnostics = new DiagnosticDescription[] { 321var expectedDiagnostics = new DiagnosticDescription[] { 368var expectedDiagnostics = DiagnosticDescription.None; 409var expectedDiagnostics = new DiagnosticDescription[] { 441var expectedDiagnostics = new DiagnosticDescription[] { 477var expectedDiagnostics = new DiagnosticDescription[] { 509var expectedDiagnostics = new DiagnosticDescription[] { 543var expectedDiagnostics = new DiagnosticDescription[] { 578var expectedDiagnostics = new DiagnosticDescription[] { 612var expectedDiagnostics = new DiagnosticDescription[] { 643var expectedDiagnostics = new DiagnosticDescription[] { 676var expectedDiagnostics = DiagnosticDescription.None; 705var expectedDiagnostics = DiagnosticDescription.None; 734var expectedDiagnostics = new DiagnosticDescription[] { 777var expectedDiagnostics = DiagnosticDescription.None; 810var expectedDiagnostics = DiagnosticDescription.None; 843var expectedDiagnostics = DiagnosticDescription.None; 880var expectedDiagnostics = DiagnosticDescription.None; 917var expectedDiagnostics = new DiagnosticDescription[] { 952var expectedDiagnostics = new DiagnosticDescription[] { 993var expectedDiagnostics = DiagnosticDescription.None; 1030var expectedDiagnostics = new DiagnosticDescription[] { 1069var expectedDiagnostics = new DiagnosticDescription[] { 1112var expectedDiagnostics = DiagnosticDescription.None; 1151var expectedDiagnostics = new DiagnosticDescription[] { 1190var expectedDiagnostics = DiagnosticDescription.None; 1225var expectedDiagnostics = new DiagnosticDescription[] { 1264var expectedDiagnostics = new DiagnosticDescription[] { 1310var expectedDiagnostics = new DiagnosticDescription[] { 1348var expectedDiagnostics = DiagnosticDescription.None; 1382var expectedDiagnostics = DiagnosticDescription.None; 1415var expectedDiagnostics = new DiagnosticDescription[] { 1453var expectedDiagnostics = DiagnosticDescription.None; 1486var expectedDiagnostics = new DiagnosticDescription[] { 1526var expectedDiagnostics = DiagnosticDescription.None; 1565var expectedDiagnostics = new DiagnosticDescription[] { 1601var expectedDiagnostics = new DiagnosticDescription[] { 1644var expectedDiagnostics = DiagnosticDescription.None; 1689var expectedDiagnostics = DiagnosticDescription.None; 1734var expectedDiagnostics = new DiagnosticDescription[] { 1783var expectedDiagnostics = DiagnosticDescription.None; 1828var expectedDiagnostics = new DiagnosticDescription[] { 1865var expectedDiagnostics = DiagnosticDescription.None; 1901var expectedDiagnostics = DiagnosticDescription.None; 1937var expectedDiagnostics = new DiagnosticDescription[] { 1976var expectedDiagnostics = DiagnosticDescription.None; 2011var expectedDiagnostics = new DiagnosticDescription[] { 2051var expectedDiagnostics = DiagnosticDescription.None; 2087var expectedDiagnostics = new DiagnosticDescription[] { 2124var expectedDiagnostics = new DiagnosticDescription[] { 2161var expectedDiagnostics = new DiagnosticDescription[] { 2195var expectedDiagnostics = DiagnosticDescription.None; 2225var expectedDiagnostics = DiagnosticDescription.None; 2259var expectedDiagnostics = DiagnosticDescription.None; 2293var expectedDiagnostics = new DiagnosticDescription[] { 2332var expectedDiagnostics = DiagnosticDescription.None; 2367var expectedDiagnostics = new DiagnosticDescription[] { 2404var expectedDiagnostics = DiagnosticDescription.None; 2437var expectedDiagnostics = new DiagnosticDescription[] { 2479var expectedDiagnostics = DiagnosticDescription.None; 2515var expectedDiagnostics = new DiagnosticDescription[] { 2548var expectedDiagnostics = DiagnosticDescription.None; 2577var expectedDiagnostics = DiagnosticDescription.None; 2606var expectedDiagnostics = new DiagnosticDescription[] { 2639var expectedDiagnostics = new DiagnosticDescription[] { 2675var expectedDiagnostics = new DiagnosticDescription[] { 2715var expectedDiagnostics = DiagnosticDescription.None; 2755var expectedDiagnostics = DiagnosticDescription.None; 2806var expectedDiagnostics = new DiagnosticDescription[] { 2851var expectedDiagnostics = new DiagnosticDescription[] { 2902var expectedDiagnostics = DiagnosticDescription.None; 2932var expectedDiagnostics = DiagnosticDescription.None; 2963var expectedDiagnostics = DiagnosticDescription.None; 2995var expectedDiagnostics = new DiagnosticDescription[] { 3030var expectedDiagnostics = new DiagnosticDescription[] { 3074var expectedDiagnostics = DiagnosticDescription.None; 3106var expectedDiagnostics = new DiagnosticDescription[] { 3151var expectedDiagnostics = new DiagnosticDescription[] { 3183var expectedDiagnostics = DiagnosticDescription.None; 3211var expectedDiagnostics = new DiagnosticDescription[] { 3254var expectedDiagnostics = new DiagnosticDescription[] { 3292var expectedDiagnostics = DiagnosticDescription.None; 3326var expectedDiagnostics = new DiagnosticDescription[] { 3348var expectedDiagnostics = DiagnosticDescription.None; 3400var expectedDiagnostics = DiagnosticDescription.None; 3432var expectedDiagnostics = DiagnosticDescription.None; 3481var expectedDiagnostics = new DiagnosticDescription[] { 3516var expectedDiagnostics = new DiagnosticDescription[] { 3545var expectedDiagnostics = new DiagnosticDescription[] { 3579var expectedDiagnostics = new DiagnosticDescription[] { 3617var expectedDiagnostics = new DiagnosticDescription[] { 3653var expectedDiagnostics = new DiagnosticDescription[] { 3691var expectedDiagnostics = new DiagnosticDescription[] { 3734var expectedDiagnostics = new DiagnosticDescription[] { 3780var expectedDiagnostics = new DiagnosticDescription[] { 3815var expectedDiagnostics = DiagnosticDescription.None; 3843var expectedDiagnostics = DiagnosticDescription.None; 3871var expectedDiagnostics = DiagnosticDescription.None; 3899var expectedDiagnostics = DiagnosticDescription.None; 3931var expectedDiagnostics = DiagnosticDescription.None; 3963var expectedDiagnostics = new DiagnosticDescription[] { 3997var expectedDiagnostics = DiagnosticDescription.None; 4027var expectedDiagnostics = DiagnosticDescription.None; 4057var expectedDiagnostics = new DiagnosticDescription[] { 4093var expectedDiagnostics = DiagnosticDescription.None; 4123var expectedDiagnostics = new DiagnosticDescription[] { 4157var expectedDiagnostics = DiagnosticDescription.None; 4187var expectedDiagnostics = new DiagnosticDescription[] { 4219var expectedDiagnostics = new DiagnosticDescription[] { 4253var expectedDiagnostics = DiagnosticDescription.None; 4284var expectedDiagnostics = DiagnosticDescription.None; 4315var expectedDiagnostics = new DiagnosticDescription[] { 4350var expectedDiagnostics = DiagnosticDescription.None; 4381var expectedDiagnostics = new DiagnosticDescription[] { 4415var expectedDiagnostics = DiagnosticDescription.None; 4459var expectedDiagnostics = DiagnosticDescription.None; 4487var expectedDiagnostics = DiagnosticDescription.None; 4515var expectedDiagnostics = DiagnosticDescription.None; 4545var expectedDiagnostics = DiagnosticDescription.None; 4580var expectedDiagnostics = DiagnosticDescription.None; 4615var expectedDiagnostics = DiagnosticDescription.None; 4653var expectedDiagnostics = new DiagnosticDescription[] { 4691var expectedDiagnostics = DiagnosticDescription.None; 4725var expectedDiagnostics = new DiagnosticDescription[] { 4764var expectedDiagnostics = DiagnosticDescription.None; 4793var expectedDiagnostics = DiagnosticDescription.None; 4822var expectedDiagnostics = new DiagnosticDescription[] { 4855var expectedDiagnostics = DiagnosticDescription.None; 4884var expectedDiagnostics = DiagnosticDescription.None; 4916var expectedDiagnostics = DiagnosticDescription.None; 4948var expectedDiagnostics = DiagnosticDescription.None; 4985var expectedDiagnostics = DiagnosticDescription.None; 5013var expectedDiagnostics = DiagnosticDescription.None; 5041var expectedDiagnostics = new DiagnosticDescription[] { 5074var expectedDiagnostics = new DiagnosticDescription[] { 5116var expectedDiagnostics = new DiagnosticDescription[] { 5146var expectedDiagnostics = DiagnosticDescription.None; 5172var expectedDiagnostics = new DiagnosticDescription[] { 5194var expectedDiagnostics = DiagnosticDescription.None; 5317var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IDeclarationExpression.cs (1)
34var expectedDiagnostics = new DiagnosticDescription[] {
IOperation\IOperationTests_IDeconstructionAssignmentOperation.cs (9)
30var expectedDiagnostics = DiagnosticDescription.None; 128var expectedDiagnostics = DiagnosticDescription.None; 213var expectedDiagnostics = DiagnosticDescription.None; 303var expectedDiagnostics = DiagnosticDescription.None; 378var expectedDiagnostics = DiagnosticDescription.None; 498var expectedDiagnostics = DiagnosticDescription.None; 646var expectedDiagnostics = new DiagnosticDescription[] { 794var expectedDiagnostics = DiagnosticDescription.None; 900var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IDefaultValueOperation.cs (3)
29var expectedDiagnostics = DiagnosticDescription.None; 59var expectedDiagnostics = DiagnosticDescription.None; 94var expectedDiagnostics = new DiagnosticDescription[] {
IOperation\IOperationTests_IDelegateCreationExpression.cs (60)
48var expectedDiagnostics = DiagnosticDescription.None; 74var expectedDiagnostics = DiagnosticDescription.None; 113var expectedDiagnostics = new DiagnosticDescription[] { 150var expectedDiagnostics = new DiagnosticDescription[] { 182var expectedDiagnostics = DiagnosticDescription.None; 213var expectedDiagnostics = new DiagnosticDescription[] { 242var expectedDiagnostics = new DiagnosticDescription[] { 282var expectedDiagnostics = DiagnosticDescription.None; 318var expectedDiagnostics = new DiagnosticDescription[] { 355var expectedDiagnostics = new DiagnosticDescription[] { 394var expectedDiagnostics = DiagnosticDescription.None; 421var expectedDiagnostics = DiagnosticDescription.None; 455var expectedDiagnostics = new DiagnosticDescription[] { 483var expectedDiagnostics = new DiagnosticDescription[] 523var expectedDiagnostics = new DiagnosticDescription[] { 553", new DiagnosticDescription[] 563", new DiagnosticDescription[] 601var expectedDiagnostics = new DiagnosticDescription[] { 631var expectedDiagnostics = new DiagnosticDescription[] 663var expectedDiagnostics = DiagnosticDescription.None; 689var expectedDiagnostics = new DiagnosticDescription[] { 720var expectedDiagnostics = new DiagnosticDescription[] { 751var expectedDiagnostics = new DiagnosticDescription[] 783", new DiagnosticDescription[] { 794", new DiagnosticDescription[] { 823var expectedDiagnostics = new DiagnosticDescription[] 856var expectedDiagnostics = new DiagnosticDescription[] { 888var expectedDiagnostics = DiagnosticDescription.None; 919var expectedDiagnostics = new DiagnosticDescription[] { 951var expectedDiagnostics = new DiagnosticDescription[] { 985var expectedDiagnostics = new DiagnosticDescription[] { 1018var expectedDiagnostics = DiagnosticDescription.None; 1048var expectedDiagnostics = DiagnosticDescription.None; 1078var expectedDiagnostics = new DiagnosticDescription[] { 1111var expectedDiagnostics = DiagnosticDescription.None; 1136var expectedDiagnostics = new DiagnosticDescription[] { 1167", new DiagnosticDescription[] { 1178", new DiagnosticDescription[] { 1209var expectedDiagnostics = new DiagnosticDescription[] { 1250var expectedDiagnostics = new DiagnosticDescription[] { 1281var expectedDiagnostics = new DiagnosticDescription[] { 1312var expectedDiagnostics = new DiagnosticDescription[] { 1346var expectedDiagnostics = DiagnosticDescription.None; 1379var expectedDiagnostics = new DiagnosticDescription[] { 1410var expectedDiagnostics = new DiagnosticDescription[] { 1443var expectedDiagnostics = DiagnosticDescription.None; 1471var expectedDiagnostics = new DiagnosticDescription[] { 1504var expectedDiagnostics = new DiagnosticDescription[] { 1538var expectedDiagnostics = new DiagnosticDescription[] { 1572var expectedDiagnostics = new DiagnosticDescription[] { 1606var expectedDiagnostics = new DiagnosticDescription[] { 1640var expectedDiagnostics = new DiagnosticDescription[] { 1679var expectedDiagnostics = new DiagnosticDescription[] { 1720var expectedDiagnostics = new DiagnosticDescription[] { 1760var expectedDiagnostics = DiagnosticDescription.None; 1790var expectedDiagnostics = DiagnosticDescription.None; 1820var expectedDiagnostics = new DiagnosticDescription[] { 1900var expectedDiagnostics = DiagnosticDescription.None; 1997var expectedDiagnostics = DiagnosticDescription.None; 2030VerifyOperationTreeAndDiagnosticsForTest<CastExpressionSyntax>(code, expectedOperationTree, DiagnosticDescription.None);
IOperation\IOperationTests_IDiscardOperation.cs (8)
35var expectedDiagnostics = DiagnosticDescription.None; 81var expectedDiagnostics = DiagnosticDescription.None; 135var expectedDiagnostics = DiagnosticDescription.None; 209var expectedDiagnostics = new DiagnosticDescription[] { 290var expectedDiagnostics = DiagnosticDescription.None; 380var expectedDiagnostics = DiagnosticDescription.None; 423var expectedDiagnostics = DiagnosticDescription.None; 512var expectedDiagnostics = new DiagnosticDescription[] {
IOperation\IOperationTests_IDynamicIndexerAccessExpression.cs (20)
40var expectedDiagnostics = DiagnosticDescription.None; 71var expectedDiagnostics = DiagnosticDescription.None; 104var expectedDiagnostics = DiagnosticDescription.None; 138var expectedDiagnostics = DiagnosticDescription.None; 173var expectedDiagnostics = new DiagnosticDescription[] { 207var expectedDiagnostics = DiagnosticDescription.None; 237var expectedDiagnostics = DiagnosticDescription.None; 268var expectedDiagnostics = DiagnosticDescription.None; 304var expectedDiagnostics = new DiagnosticDescription[] { 349var expectedDiagnostics = new DiagnosticDescription[] { 382var expectedDiagnostics = new DiagnosticDescription[] { 433var expectedDiagnostics = DiagnosticDescription.None; 483var expectedDiagnostics = new DiagnosticDescription[] { 594var expectedDiagnostics = DiagnosticDescription.None; 699var expectedDiagnostics = DiagnosticDescription.None; 839var expectedDiagnostics = DiagnosticDescription.None; 945var expectedDiagnostics = DiagnosticDescription.None; 1055var expectedDiagnostics = DiagnosticDescription.None; 1203var expectedDiagnostics = DiagnosticDescription.None; 1311var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IDynamicInvocationExpression.cs (22)
49var expectedDiagnostics = DiagnosticDescription.None; 87var expectedDiagnostics = DiagnosticDescription.None; 127var expectedDiagnostics = DiagnosticDescription.None; 168var expectedDiagnostics = DiagnosticDescription.None; 213var expectedDiagnostics = DiagnosticDescription.None; 247var expectedDiagnostics = new DiagnosticDescription[] { 278var expectedDiagnostics = DiagnosticDescription.None; 308var expectedDiagnostics = DiagnosticDescription.None; 338var expectedDiagnostics = DiagnosticDescription.None; 382var expectedDiagnostics = DiagnosticDescription.None; 428var expectedDiagnostics = new DiagnosticDescription[] { 464var expectedDiagnostics = new DiagnosticDescription[] { 512var expectedDiagnostics = DiagnosticDescription.None; 562var expectedDiagnostics = DiagnosticDescription.None; 659var expectedDiagnostics = DiagnosticDescription.None; 753var expectedDiagnostics = DiagnosticDescription.None; 843var expectedDiagnostics = DiagnosticDescription.None; 949var expectedDiagnostics = DiagnosticDescription.None; 1062var expectedDiagnostics = DiagnosticDescription.None; 1191var expectedDiagnostics = DiagnosticDescription.None; 1339var expectedDiagnostics = DiagnosticDescription.None; 1439var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IDynamicMemberReferenceExpression.cs (15)
40var expectedDiagnostics = DiagnosticDescription.None; 70var expectedDiagnostics = new DiagnosticDescription[] { 109var expectedDiagnostics = DiagnosticDescription.None; 142var expectedDiagnostics = new DiagnosticDescription[] { 179var expectedDiagnostics = new DiagnosticDescription[] { 217var expectedDiagnostics = DiagnosticDescription.None; 252var expectedDiagnostics = DiagnosticDescription.None; 282var expectedDiagnostics = new DiagnosticDescription[] { 324var expectedDiagnostics = new DiagnosticDescription[] { 359var expectedDiagnostics = DiagnosticDescription.None; 400var expectedDiagnostics = DiagnosticDescription.None; 439var expectedDiagnostics = DiagnosticDescription.None; 485var expectedDiagnostics = DiagnosticDescription.None; 585var expectedDiagnostics = DiagnosticDescription.None; 686var expectedDiagnostics = new DiagnosticDescription[] {
IOperation\IOperationTests_IDynamicObjectCreationExpression.cs (12)
45var expectedDiagnostics = DiagnosticDescription.None; 80var expectedDiagnostics = DiagnosticDescription.None; 117var expectedDiagnostics = DiagnosticDescription.None; 155var expectedDiagnostics = DiagnosticDescription.None; 197var expectedDiagnostics = DiagnosticDescription.None; 241var expectedDiagnostics = DiagnosticDescription.None; 292var expectedDiagnostics = DiagnosticDescription.None; 334var expectedDiagnostics = new DiagnosticDescription[] { 369var expectedDiagnostics = new DiagnosticDescription[] { 393var expectedDiagnostics = DiagnosticDescription.None; 441var expectedDiagnostics = DiagnosticDescription.None; 564var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IEmptyOperation.cs (2)
33var expectedDiagnostics = DiagnosticDescription.None; 60var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IEventAssignmentExpression.cs (9)
93var expectedDiagnostics = new DiagnosticDescription[] { 480var expectedDiagnostics = DiagnosticDescription.None; 570var expectedDiagnostics = DiagnosticDescription.None; 616var expectedDiagnostics = new DiagnosticDescription[] { 720var expectedDiagnostics = DiagnosticDescription.None; 810var expectedDiagnostics = DiagnosticDescription.None; 939var expectedDiagnostics = DiagnosticDescription.None; 990var expectedDiagnostics = new DiagnosticDescription[] { 1102var expectedDiagnostics = new DiagnosticDescription[] {
IOperation\IOperationTests_IEventReferenceOperation.cs (9)
38var expectedDiagnostics = new DiagnosticDescription[] { 70var expectedDiagnostics = new DiagnosticDescription[] { 106var expectedDiagnostics = new DiagnosticDescription[] { 140var expectedDiagnostics = DiagnosticDescription.None; 167var expectedDiagnostics = new DiagnosticDescription[] { 199var expectedDiagnostics = new DiagnosticDescription[] { 273var expectedDiagnostics = DiagnosticDescription.None; 373var expectedDiagnostics = DiagnosticDescription.None; 430var expectedDiagnostics = new DiagnosticDescription[] {
IOperation\IOperationTests_IFieldReferenceExpression.cs (18)
49var expectedDiagnostics = DiagnosticDescription.None; 72var expectedDiagnostics = DiagnosticDescription.None; 98var expectedDiagnostics = DiagnosticDescription.None; 122var expectedDiagnostics = DiagnosticDescription.None; 148var expectedDiagnostics = DiagnosticDescription.None; 173var expectedDiagnostics = DiagnosticDescription.None; 200var expectedDiagnostics = DiagnosticDescription.None; 226var expectedDiagnostics = DiagnosticDescription.None; 255var expectedDiagnostics = DiagnosticDescription.None; 293var expectedDiagnostics = DiagnosticDescription.None; 333var expectedDiagnostics = DiagnosticDescription.None; 359var expectedDiagnostics = new DiagnosticDescription[] { 390var expectedDiagnostics = new DiagnosticDescription[] { 422var expectedDiagnostics = new DiagnosticDescription[] { 451var expectedDiagnostics = new DiagnosticDescription[] { 522var expectedDiagnostics = DiagnosticDescription.None; 617var expectedDiagnostics = DiagnosticDescription.None; 669var expectedDiagnostics = new DiagnosticDescription[] {
IOperation\IOperationTests_IFixedStatement.cs (10)
85var expectedDiagnostics = DiagnosticDescription.None; 165var expectedDiagnostics = DiagnosticDescription.None; 254var expectedDiagnostics = DiagnosticDescription.None; 308var expectedDiagnostics = new DiagnosticDescription[] { 376var expectedDiagnostics = new DiagnosticDescription[] { 403var expectedDiagnostics = new DiagnosticDescription[] { 490var expectedDiagnostics = new DiagnosticDescription[] { 585var expectedDiagnostics = new DiagnosticDescription[] { 782var expectedDiagnostics = DiagnosticDescription.None; 913var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IForEachLoopStatement.cs (53)
1117var expectedDiagnostics = DiagnosticDescription.None; 1162var expectedDiagnostics = DiagnosticDescription.None; 1206var expectedDiagnostics = new DiagnosticDescription[] { 1278var expectedDiagnostics = new DiagnosticDescription[] { 1317var expectedDiagnostics = new DiagnosticDescription[] { 1366var expectedDiagnostics = new DiagnosticDescription[] { 1415var expectedDiagnostics = new DiagnosticDescription[] { 1455var expectedDiagnostics = new DiagnosticDescription[] { 1915var expectedDiagnostics = DiagnosticDescription.None; 2111var expectedDiagnostics = DiagnosticDescription.None; 2239var expectedDiagnostics = DiagnosticDescription.None; 2387var expectedDiagnostics = DiagnosticDescription.None; 2492var expectedDiagnostics = DiagnosticDescription.None; 2603var expectedDiagnostics = DiagnosticDescription.None; 3053var expectedDiagnostics = DiagnosticDescription.None; 3142var expectedDiagnostics = DiagnosticDescription.None; 3231var expectedDiagnostics = DiagnosticDescription.None; 3320var expectedDiagnostics = DiagnosticDescription.None; 3409var expectedDiagnostics = DiagnosticDescription.None; 3630var expectedDiagnostics = DiagnosticDescription.None; 3779var expectedDiagnostics = DiagnosticDescription.None; 3973var expectedDiagnostics = DiagnosticDescription.None; 4102var expectedDiagnostics = DiagnosticDescription.None; 4243var expectedDiagnostics = DiagnosticDescription.None; 4344var expectedDiagnostics = DiagnosticDescription.None; 4575var expectedDiagnostics = DiagnosticDescription.None; 4706var expectedDiagnostics = DiagnosticDescription.None; 4921var expectedDiagnostics = DiagnosticDescription.None; 5091var expectedDiagnostics = DiagnosticDescription.None; 5223var expectedDiagnostics = DiagnosticDescription.None; 5440var expectedDiagnostics = DiagnosticDescription.None; 5654var expectedDiagnostics = DiagnosticDescription.None; 5778var expectedDiagnostics = new DiagnosticDescription[] { 5907", DiagnosticDescription.None); 6031", DiagnosticDescription.None); 6153NextVariables(0)", DiagnosticDescription.None); 6271NextVariables(0)", DiagnosticDescription.None); 6366VerifyOperationTreeAndDiagnosticsForTest<BlockSyntax>(comp, expectedDiagnostics: DiagnosticDescription.None, expectedOperationTree: @" 6534NextVariables(0)", DiagnosticDescription.None); 6684", DiagnosticDescription.None); 6810", DiagnosticDescription.None); 6936var diagnostics = new DiagnosticDescription[] { 7030var diagnostics = new DiagnosticDescription[] { 7154var diagnostics = new DiagnosticDescription[] { 7271var diagnostics = new DiagnosticDescription[] { 7387", DiagnosticDescription.None); 7589var expectedDiagnostics = DiagnosticDescription.None; 7673var expectedDiagnostics = DiagnosticDescription.None; 7719var expectedDiagnostics = DiagnosticDescription.None; 7806var expectedDiagnostics = DiagnosticDescription.None; 7857var expectedDiagnostics = DiagnosticDescription.None; 7952var expectedDiagnostics = DiagnosticDescription.None; 8001var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IForLoopStatement.cs (9)
2946var expectedDiagnostics = DiagnosticDescription.None; 3010var expectedDiagnostics = DiagnosticDescription.None; 3036var expectedDiagnostics = DiagnosticDescription.None; 3190var expectedDiagnostics = DiagnosticDescription.None; 3298var expectedDiagnostics = DiagnosticDescription.None; 3426var expectedDiagnostics = DiagnosticDescription.None; 3490var expectedDiagnostics = DiagnosticDescription.None; 3616var expectedDiagnostics = DiagnosticDescription.None; 3704var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IFromEndIndexOperation_IRangeOperation.cs (4)
72VerifyOperationTreeAndDiagnosticsForTest<BlockSyntax>(comp, expectedOperationTree, DiagnosticDescription.None); 74VerifyOperationTreeAndDiagnosticsForTest<BlockSyntax>(comp, expectedOperationTree, DiagnosticDescription.None); 157var diagnostics = DiagnosticDescription.None; 270var diagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IIfStatement.cs (45)
50var expectedDiagnostics = new DiagnosticDescription[] { 103var expectedDiagnostics = new DiagnosticDescription[] { 153var expectedDiagnostics = new DiagnosticDescription[] { 231var expectedDiagnostics = DiagnosticDescription.None; 303var expectedDiagnostics = DiagnosticDescription.None; 359var expectedDiagnostics = DiagnosticDescription.None; 445var expectedDiagnostics = DiagnosticDescription.None; 548var expectedDiagnostics = DiagnosticDescription.None; 601var expectedDiagnostics = DiagnosticDescription.None; 662var expectedDiagnostics = DiagnosticDescription.None; 718var expectedDiagnostics = DiagnosticDescription.None; 766var expectedDiagnostics = DiagnosticDescription.None; 813var expectedDiagnostics = DiagnosticDescription.None; 871var expectedDiagnostics = DiagnosticDescription.None; 928var expectedDiagnostics = new DiagnosticDescription[] { 1033var expectedDiagnostics = new DiagnosticDescription[] { 1105var expectedDiagnostics = new DiagnosticDescription[] { 1187var expectedDiagnostics = new DiagnosticDescription[] { 1276var expectedDiagnostics = new DiagnosticDescription[] { 1335var expectedDiagnostics = new DiagnosticDescription[] { 1392var expectedDiagnostics = new DiagnosticDescription[] { 1467var expectedDiagnostics = new DiagnosticDescription[] { 1539var expectedDiagnostics = DiagnosticDescription.None; 1603var expectedDiagnostics = new DiagnosticDescription[] { 1675var expectedDiagnostics = new DiagnosticDescription[] { 1753var expectedDiagnostics = DiagnosticDescription.None; 1832var expectedDiagnostics = DiagnosticDescription.None; 1929var expectedDiagnostics = DiagnosticDescription.None; 2008var expectedDiagnostics = DiagnosticDescription.None; 2085var expectedDiagnostics = DiagnosticDescription.None; 2162var expectedDiagnostics = DiagnosticDescription.None; 2239var expectedDiagnostics = DiagnosticDescription.None; 2456var expectedDiagnostics = DiagnosticDescription.None; 2642var expectedDiagnostics = DiagnosticDescription.None; 2754var expectedDiagnostics = DiagnosticDescription.None; 2942var expectedDiagnostics = DiagnosticDescription.None; 3136var expectedDiagnostics = DiagnosticDescription.None; 3212var expectedDiagnostics = DiagnosticDescription.None; 3288var expectedDiagnostics = DiagnosticDescription.None; 3493var expectedDiagnostics = DiagnosticDescription.None; 3563var expectedDiagnostics = DiagnosticDescription.None; 3651var expectedDiagnostics = DiagnosticDescription.None; 3701var expectedDiagnostics = DiagnosticDescription.None; 3768var expectedDiagnostics = DiagnosticDescription.None; 3850var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IImplicitIndexerReferenceExpression.cs (20)
39var expectedDiagnostics = DiagnosticDescription.None; 83var expectedDiagnostics = DiagnosticDescription.None; 172var expectedDiagnostics = DiagnosticDescription.None; 267var expectedDiagnostics = DiagnosticDescription.None; 392var expectedDiagnostics = DiagnosticDescription.None; 421var expectedDiagnostics = DiagnosticDescription.None; 465var expectedDiagnostics = DiagnosticDescription.None; 554var expectedDiagnostics = DiagnosticDescription.None; 649var expectedDiagnostics = DiagnosticDescription.None; 774var expectedDiagnostics = DiagnosticDescription.None; 812var expectedDiagnostics = DiagnosticDescription.None; 856var expectedDiagnostics = DiagnosticDescription.None; 945var expectedDiagnostics = DiagnosticDescription.None; 1040var expectedDiagnostics = DiagnosticDescription.None; 1165var expectedDiagnostics = DiagnosticDescription.None; 1194var expectedDiagnostics = DiagnosticDescription.None; 1238var expectedDiagnostics = DiagnosticDescription.None; 1327var expectedDiagnostics = DiagnosticDescription.None; 1422var expectedDiagnostics = DiagnosticDescription.None; 1547var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IIncrementOrDecrementOperation.cs (2)
32var expectedDiagnostics = DiagnosticDescription.None; 74var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IInlineArrayAccessOperation.cs (10)
46var expectedDiagnostics = DiagnosticDescription.None; 88var expectedDiagnostics = DiagnosticDescription.None; 178var expectedDiagnostics = DiagnosticDescription.None; 271var expectedDiagnostics = DiagnosticDescription.None; 397var expectedDiagnostics = DiagnosticDescription.None; 424var expectedDiagnostics = DiagnosticDescription.None; 470var expectedDiagnostics = DiagnosticDescription.None; 566var expectedDiagnostics = DiagnosticDescription.None; 655var expectedDiagnostics = DiagnosticDescription.None; 798var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IInstanceReferenceTests.cs (2)
38var expectedDiagnostics = DiagnosticDescription.None; 61var expectedDiagnostics = new DiagnosticDescription[] {
IOperation\IOperationTests_IInterpolatedStringOperation.cs (64)
42var expectedDiagnostics = DiagnosticDescription.None; 70var expectedDiagnostics = DiagnosticDescription.None; 102var expectedDiagnostics = DiagnosticDescription.None; 135var expectedDiagnostics = new DiagnosticDescription[] { 184var expectedDiagnostics = DiagnosticDescription.None; 246var expectedDiagnostics = DiagnosticDescription.None; 288var expectedDiagnostics = DiagnosticDescription.None; 354var expectedDiagnostics = DiagnosticDescription.None; 408var expectedDiagnostics = DiagnosticDescription.None; 456var expectedDiagnostics = new DiagnosticDescription[] { 505var expectedDiagnostics = DiagnosticDescription.None; 550var expectedDiagnostics = DiagnosticDescription.None; 634var expectedDiagnostics = DiagnosticDescription.None; 725var expectedDiagnostics = DiagnosticDescription.None; 845var expectedDiagnostics = DiagnosticDescription.None; 929var expectedDiagnostics = DiagnosticDescription.None; 1028var expectedDiagnostics = DiagnosticDescription.None; 1142var expectedDiagnostics = DiagnosticDescription.None; 1256var expectedDiagnostics = DiagnosticDescription.None; 1344var expectedDiagnostics = new DiagnosticDescription[] { 1440var expectedDiagnostics = new DiagnosticDescription[] { 1459var expectedDiagnostics = DiagnosticDescription.None; 1528var expectedDiagnostics = DiagnosticDescription.None; 1597var expectedDiagnostics = DiagnosticDescription.None; 1666var expectedDiagnostics = DiagnosticDescription.None; 1810var expectedDiagnostics = DiagnosticDescription.None; 1943var expectedDiagnostics = DiagnosticDescription.None; 2012var expectedDiagnostics = DiagnosticDescription.None; 2097var expectedDiagnostics = DiagnosticDescription.None; 2188var expectedDiagnostics = DiagnosticDescription.None; 2282var expectedDiagnostics = DiagnosticDescription.None; 2376var expectedDiagnostics = DiagnosticDescription.None; 2479var expectedDiagnostics = DiagnosticDescription.None; 2598var expectedDiagnostics = DiagnosticDescription.None; 2722var expectedDiagnostics = DiagnosticDescription.None; 2797var expectedDiagnostics = DiagnosticDescription.None; 2905var expectedDiagnostics = DiagnosticDescription.None; 3051var expectedDiagnostics = DiagnosticDescription.None; 3193var expectedDiagnostics = DiagnosticDescription.None; 3335var expectedDiagnostics = DiagnosticDescription.None; 3490var expectedDiagnostics = DiagnosticDescription.None; 3722var expectedDiagnostics = new DiagnosticDescription[] { 4055var expectedDiagnostics = DiagnosticDescription.None; 4303var expectedDiagnostics = DiagnosticDescription.None; 4405var expectedDiagnostics = DiagnosticDescription.None; 4584var expectedDiagnostics = new DiagnosticDescription[] { 4708var expectedDiagnostics = DiagnosticDescription.None; 4738var expectedDiagnostics = DiagnosticDescription.None; 4770var expectedDiagnostics = DiagnosticDescription.None; 4792var expectedDiagnostics = DiagnosticDescription.None; 4810var expectedDiagnostics = DiagnosticDescription.None; 4828var expectedDiagnostics = DiagnosticDescription.None; 4853var expectedDiagnostics = DiagnosticDescription.None; 4938var expectedDiagnostics = DiagnosticDescription.None; 5031var expectedDiagnostics = DiagnosticDescription.None; 5220var expectedDiagnostics = DiagnosticDescription.None; 5311var expectedDiagnostics = DiagnosticDescription.None; 5569var expectedDiagnostics = DiagnosticDescription.None; 5682var expectedDiagnostics = DiagnosticDescription.None; 5816var expectedDiagnostics = DiagnosticDescription.None; 5929var expectedDiagnostics = DiagnosticDescription.None; 6046var expectedDiagnostics = DiagnosticDescription.None; 6203var expectedDiagnostics = DiagnosticDescription.None; 6338var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IInvocationOperation.cs (16)
36var expectedDiagnostics = new DiagnosticDescription[] { 66var expectedDiagnostics = DiagnosticDescription.None; 91var expectedDiagnostics = new DiagnosticDescription[] { 125var expectedDiagnostics = DiagnosticDescription.None; 161var expectedDiagnostics = DiagnosticDescription.None; 179var expectedDiagnostics = DiagnosticDescription.None; 272var expectedDiagnostics = DiagnosticDescription.None; 360var expectedDiagnostics = DiagnosticDescription.None; 429var expectedDiagnostics = DiagnosticDescription.None; 523var expectedDiagnostics = DiagnosticDescription.None; 614var expectedDiagnostics = new DiagnosticDescription[] { 716var expectedDiagnostics = DiagnosticDescription.None; 879var expectedDiagnostics = DiagnosticDescription.None; 978var expectedDiagnostics = DiagnosticDescription.None; 1126var expectedDiagnostics = DiagnosticDescription.None; 1267var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IIsPatternExpression.cs (37)
39var expectedDiagnostics = DiagnosticDescription.None; 66var expectedDiagnostics = DiagnosticDescription.None; 92var expectedDiagnostics = DiagnosticDescription.None; 118var expectedDiagnostics = DiagnosticDescription.None; 144var expectedDiagnostics = new DiagnosticDescription[] { 177var expectedDiagnostics = DiagnosticDescription.None; 209var expectedDiagnostics = DiagnosticDescription.None; 241var expectedDiagnostics = new DiagnosticDescription[] { 277var expectedDiagnostics = new DiagnosticDescription[] { 308var expectedDiagnostics = new DiagnosticDescription[] { 341var expectedDiagnostics = new DiagnosticDescription[] { 372var expectedDiagnostics = new DiagnosticDescription[] { 403var expectedDiagnostics = new DiagnosticDescription[] { 434var expectedDiagnostics = new DiagnosticDescription[] { 482var expectedDiagnostics = new DiagnosticDescription[] { 534var expectedDiagnostics = new DiagnosticDescription[] { 563var expectedDiagnostics = DiagnosticDescription.None; 592var expectedDiagnostics = DiagnosticDescription.None; 624var expectedDiagnostics = new DiagnosticDescription[] { 693var expectedDiagnostics = DiagnosticDescription.None; 874var expectedDiagnostics = DiagnosticDescription.None; 974var expectedDiagnostics = DiagnosticDescription.None; 1014var expectedDiagnostics = DiagnosticDescription.None; 1064var expectedDiagnostics = new DiagnosticDescription[] { 1132var expectedDiagnostics = new DiagnosticDescription[] { 1182var expectedDiagnostics = new DiagnosticDescription[] { 1235var expectedDiagnostics = new DiagnosticDescription[] { 1767var expectedDiagnostics = DiagnosticDescription.None; 1880var expectedDiagnostics = DiagnosticDescription.None; 2005var expectedDiagnostics = DiagnosticDescription.None; 2050var expectedDiagnostics = DiagnosticDescription.None; 2083var expectedDiagnostics = DiagnosticDescription.None; 2115var expectedDiagnostics = DiagnosticDescription.None; 2148var expectedDiagnostics = DiagnosticDescription.None; 2259var expectedDiagnostics = DiagnosticDescription.None; 2291var expectedDiagnostics = DiagnosticDescription.None; 2532var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IIsTypeExpression.cs (11)
42var expectedDiagnostics = DiagnosticDescription.None; 74var expectedDiagnostics = new DiagnosticDescription[] { 111var expectedDiagnostics = DiagnosticDescription.None; 144var expectedDiagnostics = new DiagnosticDescription[] { 175var expectedDiagnostics = new DiagnosticDescription[] { 208var expectedDiagnostics = DiagnosticDescription.None; 237var expectedDiagnostics = DiagnosticDescription.None; 266var expectedDiagnostics = DiagnosticDescription.None; 295var expectedDiagnostics = DiagnosticDescription.None; 315var expectedDiagnostics = DiagnosticDescription.None; 358var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_ILiteralOperation.cs (1)
28var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_ILocalFunctionStatement.cs (24)
47var expectedDiagnostics = DiagnosticDescription.None; 75var expectedDiagnostics = DiagnosticDescription.None; 103var expectedDiagnostics = DiagnosticDescription.None; 138var expectedDiagnostics = DiagnosticDescription.None; 179var expectedDiagnostics = DiagnosticDescription.None; 215var expectedDiagnostics = DiagnosticDescription.None; 264var expectedDiagnostics = DiagnosticDescription.None; 293var expectedDiagnostics = DiagnosticDescription.None; 325var expectedDiagnostics = new DiagnosticDescription[] { 363var expectedDiagnostics = DiagnosticDescription.None; 392var expectedDiagnostics = new DiagnosticDescription[] { 427var expectedDiagnostics = new DiagnosticDescription[] { 456var expectedDiagnostics = new DiagnosticDescription[] { 494var expectedDiagnostics = new DiagnosticDescription[] { 538var expectedDiagnostics = new DiagnosticDescription[] { 572var expectedDiagnostics = DiagnosticDescription.None; 781var expectedDiagnostics = DiagnosticDescription.None; 845var expectedDiagnostics = DiagnosticDescription.None; 1079var expectedDiagnostics = DiagnosticDescription.None; 1201var expectedDiagnostics = DiagnosticDescription.None; 1270var expectedDiagnostics = DiagnosticDescription.None; 1392var expectedDiagnostics = DiagnosticDescription.None; 1567var expectedDiagnostics = DiagnosticDescription.None; 1765var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_ILocalReferenceExpression.cs (4)
39var expectedDiagnostics = DiagnosticDescription.None; 68var expectedDiagnostics = DiagnosticDescription.None; 96var expectedDiagnostics = DiagnosticDescription.None; 149var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_ILockStatement.cs (24)
57var expectedDiagnostics = DiagnosticDescription.None; 85var expectedDiagnostics = DiagnosticDescription.None; 112var expectedDiagnostics = DiagnosticDescription.None; 140var expectedDiagnostics = new DiagnosticDescription[] { 172var expectedDiagnostics = new DiagnosticDescription[] { 206var expectedDiagnostics = new DiagnosticDescription[] { 239var expectedDiagnostics = new DiagnosticDescription[] { 277var expectedDiagnostics = DiagnosticDescription.None; 312var expectedDiagnostics = DiagnosticDescription.None; 344var expectedDiagnostics = new DiagnosticDescription[] { 391var expectedDiagnostics = DiagnosticDescription.None; 417var expectedDiagnostics = DiagnosticDescription.None; 538var expectedDiagnostics = DiagnosticDescription.None; 693var expectedDiagnostics = DiagnosticDescription.None; 783var expectedDiagnostics = DiagnosticDescription.None; 993var expectedDiagnostics = DiagnosticDescription.None; 1082var expectedDiagnostics = DiagnosticDescription.None; 1186var expectedDiagnostics = DiagnosticDescription.None; 1272var expectedDiagnostics = DiagnosticDescription.None; 1369var expectedDiagnostics = DiagnosticDescription.None; 1495var expectedDiagnostics = DiagnosticDescription.None; 1588var expectedDiagnostics = DiagnosticDescription.None; 1825var expectedDiagnostics = DiagnosticDescription.None; 2147var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IMethodReferenceOperation.cs (3)
86var expectedDiagnostics = DiagnosticDescription.None; 183var expectedDiagnostics = DiagnosticDescription.None; 297var expectedDiagnostics = new DiagnosticDescription[] {
IOperation\IOperationTests_INameOfOperation.cs (8)
29var expectedDiagnostics = new DiagnosticDescription[] { 79var expectedDiagnostics = new DiagnosticDescription[] { 127var expectedDiagnostics = DiagnosticDescription.None; 195var expectedDiagnostics = new DiagnosticDescription[] { 269VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, DiagnosticDescription.None); 310VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, DiagnosticDescription.None); 376VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, DiagnosticDescription.None); 427VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source, expectedFlowGraph, DiagnosticDescription.None);
IOperation\IOperationTests_INoneOperation.cs (4)
34var expectedDiagnostics = DiagnosticDescription.None; 126var expectedDiagnostics = DiagnosticDescription.None; 214var expectedDiagnostics = DiagnosticDescription.None; 262var expectedDiagnostics = new DiagnosticDescription[] {
IOperation\IOperationTests_INoPiaObjectCreationOperation.cs (7)
71var expectedDiagnostics = DiagnosticDescription.None; 129var expectedDiagnostics = DiagnosticDescription.None; 178var expectedDiagnostics = DiagnosticDescription.None; 223var expectedDiagnostics = DiagnosticDescription.None; 315var expectedDiagnostics = DiagnosticDescription.None; 405var expectedDiagnostics = DiagnosticDescription.None; 472var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_InvalidExpression.cs (27)
40var expectedDiagnostics = new DiagnosticDescription[] { 75var expectedDiagnostics = new DiagnosticDescription[] { 110var expectedDiagnostics = new DiagnosticDescription[] { 147var expectedDiagnostics = new DiagnosticDescription[] { 193var expectedDiagnostics = new DiagnosticDescription[] { 242var expectedDiagnostics = new DiagnosticDescription[] { 279var expectedDiagnostics = new DiagnosticDescription[] { 322var expectedDiagnostics = new DiagnosticDescription[] { 368var expectedDiagnostics = DiagnosticDescription.None; 405var expectedDiagnostics = DiagnosticDescription.None; 433var expectedDiagnostics = new DiagnosticDescription[] { 483var expectedDiagnostics = new DiagnosticDescription[] { 529var expectedDiagnostics = new DiagnosticDescription[] { 569var expectedDiagnostics = new DiagnosticDescription[] { 598VerifyOperationTreeAndDiagnosticsForTest<InvocationExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics: new DiagnosticDescription[] 630VerifyOperationTreeAndDiagnosticsForTest<InvocationExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics: new DiagnosticDescription[] 660VerifyOperationTreeAndDiagnosticsForTest<InvocationExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics: new DiagnosticDescription[] 694VerifyOperationTreeAndDiagnosticsForTest<ElementAccessExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics: new DiagnosticDescription[] 728VerifyOperationTreeAndDiagnosticsForTest<ElementAccessExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics: new DiagnosticDescription[] 760VerifyOperationTreeAndDiagnosticsForTest<InvocationExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics: new DiagnosticDescription[] 790VerifyOperationTreeAndDiagnosticsForTest<InvocationExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics: new DiagnosticDescription[] 824VerifyOperationTreeAndDiagnosticsForTest<ElementAccessExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics: new DiagnosticDescription[] 858VerifyOperationTreeAndDiagnosticsForTest<ElementAccessExpressionSyntax>(source, expectedOperationTree, expectedDiagnostics: new DiagnosticDescription[] 880var expectedDiagnostics = new DiagnosticDescription[] { 935var expectedDiagnostics = new DiagnosticDescription[] { 1037var expectedDiagnostics = new DiagnosticDescription[] { 1135var expectedDiagnostics = new DiagnosticDescription[] {
IOperation\IOperationTests_InvalidStatement.cs (12)
48var expectedDiagnostics = new DiagnosticDescription[] { 108var expectedDiagnostics = new DiagnosticDescription[] { 159var expectedDiagnostics = new DiagnosticDescription[] { 205var expectedDiagnostics = new DiagnosticDescription[] { 258var expectedDiagnostics = new DiagnosticDescription[] { 313var expectedDiagnostics = new DiagnosticDescription[] { 353var expectedDiagnostics = new DiagnosticDescription[] { 400var expectedDiagnostics = new DiagnosticDescription[] { 438var expectedDiagnostics = new DiagnosticDescription[] { 466var expectedDiagnostics = new DiagnosticDescription[] { 494var expectedDiagnostics = new DiagnosticDescription[] { 523var expectedDiagnostics = new DiagnosticDescription[] {
IOperation\IOperationTests_IObjectCreationExpression.cs (117)
39var expectedDiagnostics = DiagnosticDescription.None; 376var expectedDiagnostics = new DiagnosticDescription[] { 692var expectedDiagnostics = new DiagnosticDescription[] { 778var expectedDiagnostics = DiagnosticDescription.None; 1008var expectedDiagnostics = DiagnosticDescription.None; 1060var expectedDiagnostics = new DiagnosticDescription[] 1188var expectedDiagnostics = new DiagnosticDescription[] { 1236var expectedDiagnostics = new DiagnosticDescription[] { 1287var expectedDiagnostics = new DiagnosticDescription[] { 1379var expectedDiagnostics = new DiagnosticDescription[] { 1401var expectedDiagnostics = new DiagnosticDescription[] { 1429var expectedDiagnostics = new DiagnosticDescription[] { 1457var expectedDiagnostics = new DiagnosticDescription[] { 1485var expectedDiagnostics = new DiagnosticDescription[] { 1570var expectedDiagnostics = DiagnosticDescription.None; 1746var expectedDiagnostics = DiagnosticDescription.None; 1793var expectedDiagnostics = DiagnosticDescription.None; 1817var expectedDiagnostics = DiagnosticDescription.None; 1879var expectedDiagnostics = new DiagnosticDescription[] { 1961var expectedDiagnostics = DiagnosticDescription.None; 1992var expectedDiagnostics = DiagnosticDescription.None; 2072var expectedDiagnostics = DiagnosticDescription.None; 2144var expectedDiagnostics = new DiagnosticDescription[] { 2197var expectedDiagnostics = DiagnosticDescription.None; 2248var expectedDiagnostics = DiagnosticDescription.None; 2371var expectedDiagnostics = DiagnosticDescription.None; 2664var expectedDiagnostics = new DiagnosticDescription[] { 2726var expectedDiagnostics = new DiagnosticDescription[] { 2810var expectedDiagnostics = DiagnosticDescription.None; 2926var expectedDiagnostics = DiagnosticDescription.None; 2979var expectedDiagnostics = new DiagnosticDescription[] 3018var expectedDiagnostics = new DiagnosticDescription[] { 3066var expectedDiagnostics = new DiagnosticDescription[] { 3118var expectedDiagnostics = new DiagnosticDescription[] { 3202var expectedDiagnostics = DiagnosticDescription.None; 3258var expectedDiagnostics = DiagnosticDescription.None; 3309var expectedDiagnostics = DiagnosticDescription.None; 3334var expectedDiagnostics = DiagnosticDescription.None; 3400var expectedDiagnostics = new DiagnosticDescription[] { 3486var expectedDiagnostics = DiagnosticDescription.None; 3521var expectedDiagnostics = DiagnosticDescription.None; 3604var expectedDiagnostics = DiagnosticDescription.None; 3680var expectedDiagnostics = new DiagnosticDescription[] { 3736var expectedDiagnostics = DiagnosticDescription.None; 3787var expectedDiagnostics = DiagnosticDescription.None; 3845var expectedDiagnostics = DiagnosticDescription.None; 3897var expectedDiagnostics = DiagnosticDescription.None; 3941var expectedDiagnostics = DiagnosticDescription.None; 4033var expectedDiagnostics = DiagnosticDescription.None; 4125var expectedDiagnostics = DiagnosticDescription.None; 4217var expectedDiagnostics = DiagnosticDescription.None; 4308var expectedDiagnostics = DiagnosticDescription.None; 4374var expectedDiagnostics = DiagnosticDescription.None; 4485var expectedDiagnostics = DiagnosticDescription.None; 4590var expectedDiagnostics = DiagnosticDescription.None; 4768var expectedDiagnostics = DiagnosticDescription.None; 4862var expectedDiagnostics = DiagnosticDescription.None; 5023var expectedDiagnostics = DiagnosticDescription.None; 5185var expectedDiagnostics = new DiagnosticDescription[] { 5444var expectedDiagnostics = DiagnosticDescription.None; 5664var expectedDiagnostics = DiagnosticDescription.None; 5903var expectedDiagnostics = DiagnosticDescription.None; 6153var expectedDiagnostics = DiagnosticDescription.None; 6481var expectedDiagnostics = DiagnosticDescription.None; 6621var expectedDiagnostics = DiagnosticDescription.None; 6760var expectedDiagnostics = DiagnosticDescription.None; 6932var expectedDiagnostics = new DiagnosticDescription[] { 7056var expectedDiagnostics = DiagnosticDescription.None; 7121var expectedDiagnostics = DiagnosticDescription.None; 7232var expectedDiagnostics = DiagnosticDescription.None; 7348var expectedDiagnostics = new DiagnosticDescription[] { 7446var expectedDiagnostics = DiagnosticDescription.None; 7607var expectedDiagnostics = DiagnosticDescription.None; 7772var expectedDiagnostics = DiagnosticDescription.None; 7992var expectedDiagnostics = DiagnosticDescription.None; 8230var expectedDiagnostics = DiagnosticDescription.None; 8558var expectedDiagnostics = new DiagnosticDescription[] { 8735var expectedDiagnostics = new DiagnosticDescription[] { 8807var expectedDiagnostics = new DiagnosticDescription[] { 8927var expectedDiagnostics = new DiagnosticDescription[] { 9052var expectedDiagnostics = new DiagnosticDescription[] { 9192var expectedDiagnostics = new DiagnosticDescription[] { 9347var expectedDiagnostics = DiagnosticDescription.None; 9466var expectedDiagnostics = new DiagnosticDescription[] { 9608var expectedDiagnostics = DiagnosticDescription.None; 9752var expectedDiagnostics = new DiagnosticDescription[] { 9838var expectedDiagnostics = new DiagnosticDescription[] { 9928var expectedDiagnostics = new DiagnosticDescription[] { 10079var expectedDiagnostics = DiagnosticDescription.None; 10193var expectedDiagnostics = DiagnosticDescription.None; 10342var expectedDiagnostics = DiagnosticDescription.None; 10527var expectedDiagnostics = DiagnosticDescription.None; 10641var expectedDiagnostics = DiagnosticDescription.None; 10789var expectedDiagnostics = DiagnosticDescription.None; 10970var expectedDiagnostics = DiagnosticDescription.None; 11165var expectedDiagnostics = DiagnosticDescription.None; 11265var expectedDiagnostics = DiagnosticDescription.None; 11380var expectedDiagnostics = DiagnosticDescription.None; 11495var expectedDiagnostics = new DiagnosticDescription[] { 11596var expectedDiagnostics = DiagnosticDescription.None; 11693var expectedDiagnostics = DiagnosticDescription.None; 11859var expectedDiagnostics = DiagnosticDescription.None; 12107var expectedDiagnostics = DiagnosticDescription.None; 12408var expectedDiagnostics = DiagnosticDescription.None; 12705var expectedDiagnostics = DiagnosticDescription.None; 13016var expectedDiagnostics = DiagnosticDescription.None; 13284var expectedDiagnostics = DiagnosticDescription.None; 13370var expectedDiagnostics = DiagnosticDescription.None; 13500var expectedDiagnostics = DiagnosticDescription.None; 13669var expectedDiagnostics = DiagnosticDescription.None; 14335var expectedDiagnostics = DiagnosticDescription.None; 14467var expectedDiagnostics = DiagnosticDescription.None; 14609var expectedDiagnostics = DiagnosticDescription.None; 14675var expectedDiagnostics = DiagnosticDescription.None; 14841var expectedDiagnostics = DiagnosticDescription.None; 15053var diagnostics = new DiagnosticDescription[] { 15272VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(source2, expectedDiagnostics: DiagnosticDescription.None, references: new[] { reference1 },
IOperation\IOperationTests_IParameterReferenceExpression.cs (28)
93var expectedDiagnostics = DiagnosticDescription.None; 133var expectedDiagnostics = DiagnosticDescription.None; 188var expectedDiagnostics = DiagnosticDescription.None; 294var expectedDiagnostics = DiagnosticDescription.None; 333var expectedDiagnostics = DiagnosticDescription.None; 366var expectedDiagnostics = DiagnosticDescription.None; 393var expectedDiagnostics = new DiagnosticDescription[] { 442var expectedDiagnostics = DiagnosticDescription.None; 464var expectedDiagnostics = DiagnosticDescription.None; 487var expectedDiagnostics = new DiagnosticDescription[] { 522var expectedDiagnostics = new DiagnosticDescription[] { 549var expectedDiagnostics = DiagnosticDescription.None; 572var expectedDiagnostics = DiagnosticDescription.None; 595var expectedDiagnostics = DiagnosticDescription.None; 625var expectedDiagnostics = DiagnosticDescription.None; 655var expectedDiagnostics = DiagnosticDescription.None; 682var expectedDiagnostics = DiagnosticDescription.None; 712var expectedDiagnostics = DiagnosticDescription.None; 737var expectedDiagnostics = new DiagnosticDescription[] { 795var expectedDiagnostics = DiagnosticDescription.None; 830var expectedDiagnostics = DiagnosticDescription.None; 868var expectedDiagnostics = DiagnosticDescription.None; 896var expectedDiagnostics = DiagnosticDescription.None; 942var expectedDiagnostics = DiagnosticDescription.None; 994var expectedDiagnostics = new DiagnosticDescription[] { 1027var expectedDiagnostics = DiagnosticDescription.None; 1052var expectedDiagnostics = DiagnosticDescription.None; 1117var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IParenthesized.cs (14)
52var expectedDiagnostics = DiagnosticDescription.None; 79var expectedDiagnostics = DiagnosticDescription.None; 123var expectedDiagnostics = DiagnosticDescription.None; 171var expectedDiagnostics = DiagnosticDescription.None; 215var expectedDiagnostics = DiagnosticDescription.None; 296var expectedDiagnostics = DiagnosticDescription.None; 343var expectedDiagnostics = DiagnosticDescription.None; 383var expectedDiagnostics = DiagnosticDescription.None; 454var expectedDiagnostics = DiagnosticDescription.None; 495var expectedDiagnostics = new DiagnosticDescription[] { 517var expectedDiagnostics = DiagnosticDescription.None; 555var expectedDiagnostics = DiagnosticDescription.None; 628var expectedDiagnostics = DiagnosticDescription.None; 708var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IPatternSwitchCase.cs (22)
41var expectedDiagnostics = DiagnosticDescription.None; 70var expectedDiagnostics = DiagnosticDescription.None; 98var expectedDiagnostics = DiagnosticDescription.None; 126var expectedDiagnostics = DiagnosticDescription.None; 154var expectedDiagnostics = new DiagnosticDescription[] { 188var expectedDiagnostics = DiagnosticDescription.None; 217var expectedDiagnostics = DiagnosticDescription.None; 247var expectedDiagnostics = DiagnosticDescription.None; 284var expectedDiagnostics = DiagnosticDescription.None; 318var expectedDiagnostics = DiagnosticDescription.None; 349var expectedDiagnostics = new DiagnosticDescription[] { 386var expectedDiagnostics = new DiagnosticDescription[] { 422var expectedDiagnostics = new DiagnosticDescription[] { 453var expectedDiagnostics = DiagnosticDescription.None; 484var expectedDiagnostics = new DiagnosticDescription[] { 516var expectedDiagnostics = new DiagnosticDescription[] { 548var expectedDiagnostics = new DiagnosticDescription[] { 581var expectedDiagnostics = new DiagnosticDescription[] { 617var expectedDiagnostics = new DiagnosticDescription[] { 693var expectedDiagnostics = new DiagnosticDescription[] { 744var expectedDiagnostics = DiagnosticDescription.None; 779var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IPointerIndirectionReferenceOperation.cs (2)
34var expectedDiagnostics = DiagnosticDescription.None; 78var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IPropertyReferenceExpression.cs (18)
48var expectedDiagnostics = DiagnosticDescription.None; 74var expectedDiagnostics = new DiagnosticDescription[] { 103var expectedDiagnostics = DiagnosticDescription.None; 128var expectedDiagnostics = new DiagnosticDescription[] { 167var expectedDiagnostics = new DiagnosticDescription[] { 205var expectedDiagnostics = DiagnosticDescription.None; 239var expectedDiagnostics = new DiagnosticDescription[] { 279var expectedDiagnostics = new DiagnosticDescription[] { 319var expectedDiagnostics = new DiagnosticDescription[] { 350var expectedDiagnostics = new DiagnosticDescription[] { 432var expectedDiagnostics = DiagnosticDescription.None; 532var expectedDiagnostics = DiagnosticDescription.None; 584var expectedDiagnostics = new DiagnosticDescription[] { 702var expectedDiagnostics = DiagnosticDescription.None; 817var expectedDiagnostics = DiagnosticDescription.None; 1005var expectedDiagnostics = DiagnosticDescription.None; 1045", DiagnosticDescription.None); 1096", DiagnosticDescription.None);
IOperation\IOperationTests_IReturnStatement.cs (5)
37var expectedDiagnostics = DiagnosticDescription.None; 59var expectedDiagnostics = DiagnosticDescription.None; 83var expectedDiagnostics = DiagnosticDescription.None; 108var expectedDiagnostics = DiagnosticDescription.None; 134var expectedDiagnostics = new DiagnosticDescription[] {
IOperation\IOperationTests_ISizeOfExpression.cs (8)
35var expectedDiagnostics = DiagnosticDescription.None; 59var expectedDiagnostics = new DiagnosticDescription[] { 90var expectedDiagnostics = DiagnosticDescription.None; 114var expectedDiagnostics = new DiagnosticDescription[] { 145var expectedDiagnostics = new DiagnosticDescription[] { 180var expectedDiagnostics = new DiagnosticDescription[] { 220var expectedDiagnostics = new DiagnosticDescription[] { 245var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_ISwitchExpression.cs (13)
75var expectedDiagnostics = DiagnosticDescription.None; 119var expectedDiagnostics = DiagnosticDescription.None; 274var expectedDiagnostics = new DiagnosticDescription[] { }; 316var expectedDiagnostics = new DiagnosticDescription[] { 538var expectedDiagnostics = DiagnosticDescription.None; 618var expectedDiagnostics = DiagnosticDescription.None; 757var expectedDiagnostics = DiagnosticDescription.None; 814var expectedDiagnostics = DiagnosticDescription.None; 836var expectedDiagnostics = DiagnosticDescription.None; 955var expectedDiagnostics = DiagnosticDescription.None; 1070var expectedDiagnostics = DiagnosticDescription.None; 1292var expectedDiagnostics = DiagnosticDescription.None; 1548var expectedDiagnostics = new DiagnosticDescription[] {
IOperation\IOperationTests_ISwitchOperation.cs (34)
49var expectedDiagnostics = DiagnosticDescription.None; 105var expectedDiagnostics = DiagnosticDescription.None; 148var expectedDiagnostics = DiagnosticDescription.None; 212var expectedDiagnostics = DiagnosticDescription.None; 258var expectedDiagnostics = DiagnosticDescription.None; 302var expectedDiagnostics = DiagnosticDescription.None; 325var expectedDiagnostics = DiagnosticDescription.None; 383var expectedDiagnostics = DiagnosticDescription.None; 465var expectedDiagnostics = DiagnosticDescription.None; 544var expectedDiagnostics = DiagnosticDescription.None; 615var expectedDiagnostics = DiagnosticDescription.None; 723var expectedDiagnostics = DiagnosticDescription.None; 790var expectedDiagnostics = DiagnosticDescription.None; 858var expectedDiagnostics = DiagnosticDescription.None; 942var expectedDiagnostics = DiagnosticDescription.None; 1678var expectedDiagnostics = DiagnosticDescription.None; 1749var expectedDiagnostics = DiagnosticDescription.None; 1964var expectedDiagnostics = DiagnosticDescription.None; 2033var expectedDiagnostics = DiagnosticDescription.None; 2151var expectedDiagnostics = DiagnosticDescription.None; 2375var expectedDiagnostics = DiagnosticDescription.None; 2461var expectedDiagnostics = DiagnosticDescription.None; 2658var expectedDiagnostics = DiagnosticDescription.None; 2735var expectedDiagnostics = DiagnosticDescription.None; 2838var expectedDiagnostics = DiagnosticDescription.None; 2933var expectedDiagnostics = DiagnosticDescription.None; 3125var expectedDiagnostics = new DiagnosticDescription[] { 3222var expectedDiagnostics = new DiagnosticDescription[] { 3417var expectedDiagnostics = new DiagnosticDescription[0]; 3481var expectedDiagnostics = new DiagnosticDescription[] { 3549var expectedDiagnostics = new DiagnosticDescription[] { 3644var expectedDiagnostics = new DiagnosticDescription[] { 3742var expectedDiagnostics = new DiagnosticDescription[] { 3831var expectedDiagnostics = new DiagnosticDescription[] {
IOperation\IOperationTests_ISymbolInitializer.cs (42)
57var expectedDiagnostics = new DiagnosticDescription[] { 80var expectedDiagnostics = new DiagnosticDescription[] { 106var expectedDiagnostics = DiagnosticDescription.None; 125var expectedDiagnostics = new DiagnosticDescription[] { 151var expectedDiagnostics = new DiagnosticDescription[] { 183var expectedDiagnostics = DiagnosticDescription.None; 213var expectedDiagnostics = DiagnosticDescription.None; 241var expectedDiagnostics = DiagnosticDescription.None; 267var expectedDiagnostics = new DiagnosticDescription[] { 306var expectedDiagnostics = new DiagnosticDescription[] { 347var expectedDiagnostics = DiagnosticDescription.None; 375var expectedDiagnostics = DiagnosticDescription.None; 397var expectedDiagnostics = new DiagnosticDescription[] { 426var expectedDiagnostics = new DiagnosticDescription[] { 465var expectedDiagnostics = DiagnosticDescription.None; 500var expectedDiagnostics = DiagnosticDescription.None; 540var expectedDiagnostics = DiagnosticDescription.None; 579var expectedDiagnostics = DiagnosticDescription.None; 618var expectedDiagnostics = new DiagnosticDescription[] { 662var expectedDiagnostics = DiagnosticDescription.None; 728var expectedDiagnostics = DiagnosticDescription.None; 818var expectedDiagnostics = DiagnosticDescription.None; 908var expectedDiagnostics = DiagnosticDescription.None; 998var expectedDiagnostics = new DiagnosticDescription[] { 1058var expectedDiagnostics = DiagnosticDescription.None; 1158var expectedDiagnostics = DiagnosticDescription.None; 1194var expectedDiagnostics = new DiagnosticDescription[] { 1233var expectedDiagnostics = DiagnosticDescription.None; 1268var expectedDiagnostics = DiagnosticDescription.None; 1307var expectedDiagnostics = DiagnosticDescription.None; 1346var expectedDiagnostics = DiagnosticDescription.None; 1436var expectedDiagnostics = DiagnosticDescription.None; 1526var expectedDiagnostics = DiagnosticDescription.None; 1582var expectedDiagnostics = DiagnosticDescription.None; 1682var expectedDiagnostics = DiagnosticDescription.None; 1718var expectedDiagnostics = new DiagnosticDescription[] { 1755var expectedDiagnostics = DiagnosticDescription.None; 1792var expectedDiagnostics = new DiagnosticDescription[] { 1884var expectedDiagnostics = new DiagnosticDescription[] { 1942var expectedDiagnostics = new DiagnosticDescription[] { 2044var expectedDiagnostics = new DiagnosticDescription[] { 2082var expectedDiagnostics = new DiagnosticDescription[] {
IOperation\IOperationTests_ITranslatedQueryOperation.cs (2)
94var expectedDiagnostics = DiagnosticDescription.None; 228var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_ITupleBinaryOperatorExpression.cs (8)
245var expectedDiagnostics = DiagnosticDescription.None; 345var expectedDiagnostics = DiagnosticDescription.None; 449var expectedDiagnostics = DiagnosticDescription.None; 591var expectedDiagnostics = DiagnosticDescription.None; 642var expectedDiagnostics = DiagnosticDescription.None; 754var expectedDiagnostics = DiagnosticDescription.None; 874var expectedDiagnostics = DiagnosticDescription.None; 1035var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_ITupleExpression.cs (38)
39var expectedDiagnostics = DiagnosticDescription.None; 75var expectedDiagnostics = DiagnosticDescription.None; 109var expectedDiagnostics = DiagnosticDescription.None; 151var expectedDiagnostics = DiagnosticDescription.None; 187var expectedDiagnostics = DiagnosticDescription.None; 227var expectedDiagnostics = DiagnosticDescription.None; 264var expectedDiagnostics = DiagnosticDescription.None; 311var expectedDiagnostics = DiagnosticDescription.None; 345var expectedDiagnostics = DiagnosticDescription.None; 387var expectedDiagnostics = DiagnosticDescription.None; 415var expectedDiagnostics = DiagnosticDescription.None; 451var expectedDiagnostics = DiagnosticDescription.None; 479var expectedDiagnostics = DiagnosticDescription.None; 518var expectedDiagnostics = DiagnosticDescription.None; 552var expectedDiagnostics = new DiagnosticDescription[] { 604var expectedDiagnostics = new DiagnosticDescription[] { 673var expectedDiagnostics = DiagnosticDescription.None; 746var expectedDiagnostics = DiagnosticDescription.None; 793var expectedDiagnostics = DiagnosticDescription.None; 851var expectedDiagnostics = DiagnosticDescription.None; 891var expectedDiagnostics = DiagnosticDescription.None; 942var expectedDiagnostics = DiagnosticDescription.None; 1007var expectedDiagnostics = new DiagnosticDescription[] { 1087var expectedDiagnostics = new DiagnosticDescription[] { 1150var expectedDiagnostics = DiagnosticDescription.None; 1225var expectedDiagnostics = DiagnosticDescription.None; 1285var expectedDiagnostics = DiagnosticDescription.None; 1332var expectedDiagnostics = new DiagnosticDescription[] { 1357var expectedDiagnostics = new DiagnosticDescription[] { 1437var expectedDiagnostics = new DiagnosticDescription[] { 1527var expectedDiagnostics = DiagnosticDescription.None; 1614var expectedDiagnostics = new DiagnosticDescription[] { 1704var expectedDiagnostics = DiagnosticDescription.None; 1785var expectedDiagnostics = new DiagnosticDescription[] { 1862var expectedDiagnostics = new DiagnosticDescription[] { 1958var expectedDiagnostics = new DiagnosticDescription[] { 2072var expectedDiagnostics = DiagnosticDescription.None; 2124var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_ITypeOfExpression.cs (7)
34var expectedDiagnostics = DiagnosticDescription.None; 58var expectedDiagnostics = DiagnosticDescription.None; 82var expectedDiagnostics = new DiagnosticDescription[] { 110var expectedDiagnostics = new DiagnosticDescription[] { 142var expectedDiagnostics = new DiagnosticDescription[] { 179var expectedDiagnostics = new DiagnosticDescription[] { 201var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_ITypeParameterObjectCreationTests.cs (8)
28var expectedDiagnostics = DiagnosticDescription.None; 52var expectedDiagnostics = DiagnosticDescription.None; 86var expectedDiagnostics = DiagnosticDescription.None; 122var expectedDiagnostics = new DiagnosticDescription[] { 177var expectedDiagnostics = DiagnosticDescription.None; 295var expectedDiagnostics = DiagnosticDescription.None; 410var expectedDiagnostics = DiagnosticDescription.None; 488var expectedDiagnostics = new DiagnosticDescription[] {
IOperation\IOperationTests_IUnaryOperatorExpression.cs (4)
3510var expectedDiagnostics = DiagnosticDescription.None; 3543var expectedDiagnostics = DiagnosticDescription.None; 3574var expectedDiagnostics = DiagnosticDescription.None; 3614var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IUsingStatement.cs (74)
70var expectedDiagnostics = DiagnosticDescription.None; 125var expectedDiagnostics = DiagnosticDescription.None; 184var expectedDiagnostics = DiagnosticDescription.None; 243var expectedDiagnostics = DiagnosticDescription.None; 338var expectedDiagnostics = DiagnosticDescription.None; 439var expectedDiagnostics = DiagnosticDescription.None; 544var expectedDiagnostics = DiagnosticDescription.None; 612var expectedDiagnostics = DiagnosticDescription.None; 660var expectedDiagnostics = DiagnosticDescription.None; 743var expectedDiagnostics = DiagnosticDescription.None; 804var expectedDiagnostics = DiagnosticDescription.None; 878var expectedDiagnostics = new DiagnosticDescription[] { 974var expectedDiagnostics = new DiagnosticDescription[] { 1049var expectedDiagnostics = new DiagnosticDescription[] { 1098var expectedDiagnostics = new DiagnosticDescription[] { 1133var expectedDiagnostics = new DiagnosticDescription[] { 1175var expectedDiagnostics = DiagnosticDescription.None; 1222var expectedDiagnostics = DiagnosticDescription.None; 1251var expectedDiagnostics = DiagnosticDescription.None; 1291var expectedDiagnostics = DiagnosticDescription.None; 1334var expectedDiagnostics = DiagnosticDescription.None; 1365var expectedDiagnostics = DiagnosticDescription.None; 1402var expectedDiagnostics = DiagnosticDescription.None; 1460var expectedDiagnostics = DiagnosticDescription.None; 1523var expectedDiagnostics = DiagnosticDescription.None; 1575var expectedDiagnostics = DiagnosticDescription.None; 1885var expectedDiagnostics = DiagnosticDescription.None; 2546var expectedDiagnostics = DiagnosticDescription.None; 2677var expectedDiagnostics = DiagnosticDescription.None; 2778var expectedDiagnostics = DiagnosticDescription.None; 2887var expectedDiagnostics = DiagnosticDescription.None; 3017var expectedDiagnostics = DiagnosticDescription.None; 3154var expectedDiagnostics = DiagnosticDescription.None; 3744var expectedDiagnostics = DiagnosticDescription.None; 3910var expectedDiagnostics = DiagnosticDescription.None; 4013var expectedDiagnostics = DiagnosticDescription.None; 4128var expectedDiagnostics = DiagnosticDescription.None; 4224var expectedDiagnostics = DiagnosticDescription.None; 4301var expectedDiagnostics = DiagnosticDescription.None; 4483var expectedDiagnostics = DiagnosticDescription.None; 4577var expectedDiagnostics = DiagnosticDescription.None; 4663var expectedDiagnostics = DiagnosticDescription.None; 4836var expectedDiagnostics = DiagnosticDescription.None; 5006var expectedDiagnostics = DiagnosticDescription.None; 5173var expectedDiagnostics = DiagnosticDescription.None; 5340var expectedDiagnostics = DiagnosticDescription.None; 5494var expectedDiagnostics = DiagnosticDescription.None; 5684var expectedDiagnostics = DiagnosticDescription.None; 5849var expectedDiagnostics = DiagnosticDescription.None; 6047var expectedDiagnostics = DiagnosticDescription.None; 6134var expectedDiagnostics = DiagnosticDescription.None; 6355var expectedDiagnostics = DiagnosticDescription.None; 6504var expectedDiagnostics = DiagnosticDescription.None; 6655var expectedDiagnostics = DiagnosticDescription.None; 7216var expectedDiagnostics = DiagnosticDescription.None; 7492var expectedDiagnostics = DiagnosticDescription.None; 7651var expectedDiagnostics = DiagnosticDescription.None; 7732var expectedDiagnostics = DiagnosticDescription.None; 7830var expectedDiagnostics = DiagnosticDescription.None; 7983var expectedDiagnostics = DiagnosticDescription.None; 8058var expectedDiagnostics = DiagnosticDescription.None; 8112var expectedDiagnostics = DiagnosticDescription.None; 8180var expectedDiagnostics = DiagnosticDescription.None; 8225var expectedDiagnostics = DiagnosticDescription.None; 8304var expectedDiagnostics = DiagnosticDescription.None; 8363var expectedDiagnostics = DiagnosticDescription.None; 8478var expectedDiagnostics = DiagnosticDescription.None; 8536var expectedDiagnostics = DiagnosticDescription.None; 8615", DiagnosticDescription.None); 8744var expectedDiagnostics = new DiagnosticDescription[] { 8888var expectedDiagnostics = new DiagnosticDescription[] { 9001var expectedDiagnostics = new DiagnosticDescription[] { 9098var expectedDiagnostics = new DiagnosticDescription[] { 9194var expectedDiagnostics = new DiagnosticDescription[] {
IOperation\IOperationTests_IUtf8StringOperation.cs (4)
34var expectedDiagnostics = DiagnosticDescription.None; 52var expectedDiagnostics = DiagnosticDescription.None; 99var expectedDiagnostics = DiagnosticDescription.None; 117var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_IVariableDeclaration.cs (82)
44var expectedDiagnostics = new DiagnosticDescription[] { 77var expectedDiagnostics = new DiagnosticDescription[] { 111var expectedDiagnostics = new DiagnosticDescription[] { 146var expectedDiagnostics = new DiagnosticDescription[] { 186var expectedDiagnostics = new DiagnosticDescription[] { 227var expectedDiagnostics = new DiagnosticDescription[] { 265var expectedDiagnostics = new DiagnosticDescription[] { 306var expectedDiagnostics = DiagnosticDescription.None; 347var expectedDiagnostics = DiagnosticDescription.None; 379var expectedDiagnostics = DiagnosticDescription.None; 415var expectedDiagnostics = DiagnosticDescription.None; 446var expectedDiagnostics = new DiagnosticDescription[] { 487var expectedDiagnostics = new DiagnosticDescription[] { 520var expectedDiagnostics = DiagnosticDescription.None; 546var expectedDiagnostics = new DiagnosticDescription[] { 581var expectedDiagnostics = new DiagnosticDescription[] { 710var expectedDiagnostics = new DiagnosticDescription[] { 743var expectedDiagnostics = new DiagnosticDescription[] { 780var expectedDiagnostics = new DiagnosticDescription[] { 819var expectedDiagnostics = new DiagnosticDescription[] { 893var expectedDiagnostics = new DiagnosticDescription[] { 982var expectedDiagnostics = new DiagnosticDescription[] { 1032var expectedDiagnostics = new DiagnosticDescription[] { 1085var expectedDiagnostics = new DiagnosticDescription[] { 1138var expectedDiagnostics = new DiagnosticDescription[] { 1185var expectedDiagnostics = new DiagnosticDescription[] { 1231var expectedDiagnostics = new DiagnosticDescription[] { 1268var expectedDiagnostics = new DiagnosticDescription[] { 1313var expectedDiagnostics = new DiagnosticDescription[] { 1376var expectedDiagnostics = new DiagnosticDescription[] { 1433var expectedDiagnostics = new DiagnosticDescription[] { 1489var expectedDiagnostics = new DiagnosticDescription[] { 1530var expectedDiagnostics = new DiagnosticDescription[] { 1582var expectedDiagnostics = new DiagnosticDescription[] { 1633var expectedDiagnostics = new DiagnosticDescription[] { 1681var expectedDiagnostics = new DiagnosticDescription[] { 1742var expectedDiagnostics = new DiagnosticDescription[] { 1866var expectedDiagnostics = DiagnosticDescription.None; 1910var expectedDiagnostics = DiagnosticDescription.None; 1945var expectedDiagnostics = new DiagnosticDescription[] { 1989var expectedDiagnostics = new DiagnosticDescription[] { 2029var expectedDiagnostics = new DiagnosticDescription[] { 2069var expectedDiagnostics = new DiagnosticDescription[] { 2116var expectedDiagnostics = new DiagnosticDescription[] { 2162var expectedDiagnostics = DiagnosticDescription.None; 2208var expectedDiagnostics = DiagnosticDescription.None; 2243var expectedDiagnostics = DiagnosticDescription.None; 2282var expectedDiagnostics = DiagnosticDescription.None; 2498var expectedDiagnostics = DiagnosticDescription.None; 2532var expectedDiagnostics = new DiagnosticDescription[] { 2568var expectedDiagnostics = new DiagnosticDescription[] { 2609var expectedDiagnostics = new DiagnosticDescription[] { 2646var expectedDiagnostics = new DiagnosticDescription[] { 2683var expectedDiagnostics = new DiagnosticDescription[] { 2725var expectedDiagnostics = new DiagnosticDescription[] { 2768var expectedDiagnostics = DiagnosticDescription.None; 2811var expectedDiagnostics = DiagnosticDescription.None; 2902var expectedDiagnostics = new DiagnosticDescription[] { 2942var expectedDiagnostics = new DiagnosticDescription[] { 2979var expectedDiagnostics = new DiagnosticDescription[] { 3018var expectedDiagnostics = new DiagnosticDescription[] { 3053var expectedDiagnostics = new DiagnosticDescription[] { 3091var expectedDiagnostics = new DiagnosticDescription[] { 3135var expectedDiagnostics = new DiagnosticDescription[] { 3182var expectedDiagnostics = new DiagnosticDescription[] { 3227var expectedDiagnostics = new DiagnosticDescription[] { 3266var expectedDiagnostics = new DiagnosticDescription[] { 3306var expectedDiagnostics = new DiagnosticDescription[] { 3334var expectedDiagnostics = DiagnosticDescription.None; 3398var expectedDiagnostics = DiagnosticDescription.None; 3445var expectedDiagnostics = DiagnosticDescription.None; 3514var expectedDiagnostics = new DiagnosticDescription[] { 3564var expectedDiagnostics = DiagnosticDescription.None; 3609var expectedDiagnostics = DiagnosticDescription.None; 3678var expectedDiagnostics = new DiagnosticDescription[] { 3730var expectedDiagnostics = new DiagnosticDescription[] { 3780var expectedDiagnostics = DiagnosticDescription.None; 3832var expectedDiagnostics = DiagnosticDescription.None; 3879var expectedDiagnostics = new DiagnosticDescription[] { 3934var expectedDiagnostics = new DiagnosticDescription[] { 3989var expectedDiagnostics = DiagnosticDescription.None; 4074var expectedDiagnostics = new DiagnosticDescription[] {
IOperation\IOperationTests_IWhileUntilLoopStatement.cs (12)
1383var expectedDiagnostics = DiagnosticDescription.None; 1448var expectedDiagnostics = DiagnosticDescription.None; 1494var expectedDiagnostics = DiagnosticDescription.None; 1530var expectedDiagnostics = DiagnosticDescription.None; 1589var expectedDiagnostics = DiagnosticDescription.None; 1627var expectedDiagnostics = DiagnosticDescription.None; 1706var expectedDiagnostics = DiagnosticDescription.None; 1766var expectedDiagnostics = DiagnosticDescription.None; 1827var expectedDiagnostics = DiagnosticDescription.None; 1866var expectedDiagnostics = DiagnosticDescription.None; 1946var expectedDiagnostics = DiagnosticDescription.None; 2007var expectedDiagnostics = DiagnosticDescription.None;
IOperation\IOperationTests_StackAllocArrayCreationAndInitializer.cs (23)
33var expectedDiagnostics = new DiagnosticDescription[] { 61var expectedDiagnostics = new DiagnosticDescription[] { 90var expectedDiagnostics = new DiagnosticDescription[] { 118var expectedDiagnostics = new DiagnosticDescription[] { 149var expectedDiagnostics = new DiagnosticDescription[] { 180var expectedDiagnostics = new DiagnosticDescription[] { 207var expectedDiagnostics = new DiagnosticDescription[] { 234var expectedDiagnostics = new DiagnosticDescription[] { 261var expectedDiagnostics = new DiagnosticDescription[] { 288var expectedDiagnostics = new DiagnosticDescription[] { 320var expectedDiagnostics = new DiagnosticDescription[] { 352var expectedDiagnostics = new DiagnosticDescription[] { 378var expectedDiagnostics = new DiagnosticDescription[] { 410var expectedDiagnostics = new DiagnosticDescription[] { 452var expectedDiagnostics = new DiagnosticDescription[] { 479var expectedDiagnostics = new DiagnosticDescription[] { 506var expectedDiagnostics = new DiagnosticDescription[] { 535var expectedDiagnostics = new DiagnosticDescription[] { 569var expectedDiagnostics = new DiagnosticDescription[] { 603var expectedDiagnostics = new DiagnosticDescription[] { 635var expectedDiagnostics = new DiagnosticDescription[] { 669var expectedDiagnostics = new DiagnosticDescription[] { 698var expectedDiagnostics = new DiagnosticDescription[] {
IOperation\IOperationTests_TryCatch.cs (47)
80var expectedDiagnostics = DiagnosticDescription.None; 150var expectedDiagnostics = DiagnosticDescription.None; 191var expectedDiagnostics = new DiagnosticDescription[] { 245var expectedDiagnostics = DiagnosticDescription.None; 308var expectedDiagnostics = new DiagnosticDescription[] { 375var expectedDiagnostics = new DiagnosticDescription[] { 422var expectedDiagnostics = DiagnosticDescription.None; 460var expectedDiagnostics = DiagnosticDescription.None; 504var expectedDiagnostics = DiagnosticDescription.None; 555var expectedDiagnostics = new DiagnosticDescription[] { 610var expectedDiagnostics = new DiagnosticDescription[] { 659var expectedDiagnostics = DiagnosticDescription.None; 707var expectedDiagnostics = new DiagnosticDescription[] { 753var expectedDiagnostics = new DiagnosticDescription[] { 792var expectedDiagnostics = new DiagnosticDescription[] { 843var expectedDiagnostics = DiagnosticDescription.None; 871var expectedDiagnostics = DiagnosticDescription.None; 930var expectedDiagnostics = DiagnosticDescription.None; 3516var expectedDiagnostics = DiagnosticDescription.None; 3585var expectedDiagnostics = DiagnosticDescription.None; 3658var expectedDiagnostics = DiagnosticDescription.None; 3719var expectedDiagnostics = DiagnosticDescription.None; 3787var expectedDiagnostics = DiagnosticDescription.None; 3855var expectedDiagnostics = DiagnosticDescription.None; 3945var expectedDiagnostics = DiagnosticDescription.None; 4035var expectedDiagnostics = DiagnosticDescription.None; 4187var expectedDiagnostics = DiagnosticDescription.None; 4272var expectedDiagnostics = DiagnosticDescription.None; 4447var expectedDiagnostics = DiagnosticDescription.None; 4533var expectedDiagnostics = DiagnosticDescription.None; 4847var expectedDiagnostics = DiagnosticDescription.None; 4960var expectedDiagnostics = DiagnosticDescription.None; 5073var expectedDiagnostics = DiagnosticDescription.None; 5188var expectedDiagnostics = DiagnosticDescription.None; 5303var expectedDiagnostics = DiagnosticDescription.None; 5683var expectedDiagnostics = DiagnosticDescription.None; 5798var expectedDiagnostics = DiagnosticDescription.None; 5905var expectedDiagnostics = DiagnosticDescription.None; 6012var expectedDiagnostics = DiagnosticDescription.None; 6121var expectedDiagnostics = DiagnosticDescription.None; 6230var expectedDiagnostics = DiagnosticDescription.None; 6324var expectedDiagnostics = DiagnosticDescription.None; 6584var expectedDiagnostics = DiagnosticDescription.None; 6648var expectedDiagnostics = DiagnosticDescription.None; 6712var expectedDiagnostics = DiagnosticDescription.None; 6778var expectedDiagnostics = DiagnosticDescription.None; 8055var expectedDiagnostics = new DiagnosticDescription[] { };
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (341)
Semantics\AnonymousFunctionTests.cs (2)
20public static CSharpCompilation VerifyInPreview(string source, params DiagnosticDescription[] expected) 22internal CompilationVerifier VerifyInPreview(CSharpTestSource source, string expectedOutput, Action<ModuleSymbol>? symbolValidator = null, params DiagnosticDescription[] expected)
Semantics\AwaitExpressionTests.cs (2)
152private AwaitExpressionInfo GetAwaitExpressionInfo(string text, out CSharpCompilation compilation, params DiagnosticDescription[] diagnostics) 163private AwaitExpressionInfo GetAwaitExpressionInfo(string text, params DiagnosticDescription[] diagnostics)
Semantics\ColorColorTests.cs (2)
1835params DiagnosticDescription[] expectedDiagnostics) 2181DiagnosticDescription obsoleteWarning =
Semantics\ConditionalOperatorTests.cs (3)
1237private static void TestConditional(string conditionalExpression, string? expectedType, params DiagnosticDescription[] expectedDiagnostics) 1242private static void TestConditional(string conditionalExpression, string? expectedType, CSharpParseOptions? parseOptions, params DiagnosticDescription[] expectedDiagnostics) 1255private static void TestConditionalCore(string conditionalExpression, string? expectedType, CSharpParseOptions parseOptions, params DiagnosticDescription[] expectedDiagnostics)
Semantics\DeconstructionTests.cs (71)
94var expectedDiagnostics = new DiagnosticDescription[] { 139var expectedDiagnostics = new DiagnosticDescription[] { 183var expectedDiagnostics = new DiagnosticDescription[] { 229var expectedDiagnostics = new DiagnosticDescription[] { 277var expectedDiagnostics = new DiagnosticDescription[] { 319var expectedDiagnostics = new DiagnosticDescription[] { 366var expectedDiagnostics = new DiagnosticDescription[] { 412var expectedDiagnostics = new DiagnosticDescription[] { 462var expectedDiagnostics = new DiagnosticDescription[] { 508var expectedDiagnostics = new DiagnosticDescription[] { 553var expectedDiagnostics = new DiagnosticDescription[] { 611var expectedDiagnostics = new DiagnosticDescription[] { 668var expectedDiagnostics = new DiagnosticDescription[] { 721var expectedDiagnostics = new DiagnosticDescription[] { 767var expectedDiagnostics = new DiagnosticDescription[] { 838var expectedDiagnostics = DiagnosticDescription.None; 882var expectedDiagnostics = new DiagnosticDescription[] { 915var expectedDiagnostics = new DiagnosticDescription[] { 1010var expectedDiagnostics = DiagnosticDescription.None; 1044var expectedDiagnostics = new DiagnosticDescription[] { 1079var expectedDiagnostics = new DiagnosticDescription[] { 1114var expectedDiagnostics = new DiagnosticDescription[] { 1152var expectedDiagnostics = new DiagnosticDescription[] { 1198var expectedDiagnostics = new DiagnosticDescription[] { 1242var expectedDiagnostics = new DiagnosticDescription[] { 1334var expectedDiagnostics = DiagnosticDescription.None; 1374var expectedDiagnostics = new DiagnosticDescription[] { 1413var expectedDiagnostics = new DiagnosticDescription[] { 1452var expectedDiagnostics = new DiagnosticDescription[] { 1526var expectedDiagnostics = new DiagnosticDescription[] { 1569var expectedDiagnostics = new DiagnosticDescription[] { 1651var expectedDiagnostics = new DiagnosticDescription[] { 1732var expectedDiagnostics = DiagnosticDescription.None; 1809var expectedDiagnostics = DiagnosticDescription.None; 1893var expectedDiagnostics = DiagnosticDescription.None; 1991var expectedDiagnostics = DiagnosticDescription.None; 2038var expectedDiagnostics = new DiagnosticDescription[] { 2088var expectedDiagnostics = new DiagnosticDescription[] { 2144var expectedDiagnostics = new DiagnosticDescription[] { 2192var expectedDiagnostics = new DiagnosticDescription[] { 2269var expectedDiagnostics = new DiagnosticDescription[] { 2309var expectedDiagnostics = new DiagnosticDescription[] { 2341var expectedDiagnostics = new DiagnosticDescription[] { 2384var expectedDiagnostics = new DiagnosticDescription[] { 2427var expectedDiagnostics = new DiagnosticDescription[] { 2473var expectedDiagnostics = new DiagnosticDescription[] { 2508var expectedDiagnostics = new DiagnosticDescription[] { 2542var expectedDiagnostics = new DiagnosticDescription[] { 2586var expectedDiagnostics = new DiagnosticDescription[] { 2640var expectedDiagnostics = new DiagnosticDescription[] { 2689var expectedDiagnostics = new DiagnosticDescription[] { 2735var expectedDiagnostics = new DiagnosticDescription[] { 2779var expectedDiagnostics = new DiagnosticDescription[] { 2823var expectedDiagnostics = new DiagnosticDescription[] { 2871var expectedDiagnostics = new DiagnosticDescription[] { 2923var expectedDiagnostics = new DiagnosticDescription[] { 2973var expectedDiagnostics = new DiagnosticDescription[] { 3020var expectedDiagnostics = new DiagnosticDescription[] { 3061var expectedDiagnostics = new DiagnosticDescription[] { 3101var expectedDiagnostics = new DiagnosticDescription[] { 3291var expectedDiagnostics = new DiagnosticDescription[] { 3383var expectedDiagnostics = new DiagnosticDescription[] { 3424var expectedDiagnostics = new DiagnosticDescription[] { 3473var expectedDiagnostics = new DiagnosticDescription[] { 3525var expectedDiagnostics = new DiagnosticDescription[] { 3629var expectedDiagnostics = new DiagnosticDescription[] { 3675var expectedDiagnostics = new DiagnosticDescription[] { 4008var expectedDiagnostics = new DiagnosticDescription[] { 6201var expectedDiagnostics = DiagnosticDescription.None; 6235var expectedDiagnostics = DiagnosticDescription.None; 6261var expectedDiagnostics = DiagnosticDescription.None;
Semantics\DelegateTypeTests.cs (11)
681private static IEnumerable<object?[]> GetMethodGroupData(Func<string, string, DiagnosticDescription[]> getExpectedDiagnostics) 725public void MethodGroup_ImplicitConversion(string methodDeclaration, string methodGroupExpression, DiagnosticDescription[]? expectedDiagnostics, string? expectedType) 771public void MethodGroup_ExplicitConversion(string methodDeclaration, string methodGroupExpression, DiagnosticDescription[]? expectedDiagnostics, string? expectedType) 1158static object?[] getData(string methodA, string methodB, string methodGroupExpression, string methodGroupOnly, DiagnosticDescription[]? expectedDiagnostics = null, string? expectedType = null) 1176public void MethodGroup_BaseAndDerivedTypes(string methodA, string methodB, string methodGroupExpression, DiagnosticDescription[]? expectedDiagnostics, string? expectedType) 1279static object?[] getData(string methodA, string methodB, string methodGroupExpression, string methodGroupOnly, DiagnosticDescription[]? expectedDiagnostics = null, string? expectedMethod = null, string? expectedType = null) 1297public void MethodGroup_ExtensionMethodsSameScope(string methodA, string methodB, string methodGroupExpression, DiagnosticDescription[]? expectedDiagnostics, string? expectedMethod, string? expectedType) 1497static object?[] getData(string methodA, string methodB, string methodGroupExpression, string methodGroupOnly, DiagnosticDescription[]? expectedDiagnostics = null, string? expectedMethod = null, string? expectedType = null) 1515public void MethodGroup_ExtensionMethodsDifferentScope_CSharp10(string methodA, string methodB, string methodGroupExpression, DiagnosticDescription[]? expectedDiagnostics, string? expectedMethod, string? expectedType) 1577static object?[] getData(string methodA, string methodB, string methodGroupExpression, string methodGroupOnly, DiagnosticDescription[]? expectedDiagnostics = null, string? expectedMethod = null, string? expectedType = null) 1595public void MethodGroup_ExtensionMethodsDifferentScope_CSharp13(string methodA, string methodB, string methodGroupExpression, DiagnosticDescription[]? expectedDiagnostics, string? expectedMethod, string? expectedType)
Semantics\DynamicTests.cs (6)
1320var expectedDiagnostics = new DiagnosticDescription[] { 1389var expectedDiagnostics = new DiagnosticDescription[] { 1428var expectedDiagnostics = new DiagnosticDescription[] { 1467", new DiagnosticDescription[] { 1478", new DiagnosticDescription[] { 1516var expectedDiagnostics = new DiagnosticDescription[] {
Semantics\ForEachTests.cs (1)
3251private static BoundForEachStatement GetBoundForEachStatement(string text, CSharpParseOptions options = null, params DiagnosticDescription[] diagnostics)
Semantics\GlobalUsingDirectiveTests.cs (4)
871var expected = new DiagnosticDescription[] 942var expected = new DiagnosticDescription[] 1540var expected = new DiagnosticDescription[] 1600var expected = new DiagnosticDescription[]
Semantics\InheritanceBindingTests.cs (1)
6705comp.VerifyDiagnostics(DiagnosticDescription.None);
Semantics\InterceptorsTests.cs (1)
149void test(CSharpParseOptions options, string? expectedOutput, params DiagnosticDescription[] expected)
Semantics\InterpolationTests.cs (4)
7994private void InterpolatedStringHandlerArgumentAttribute_MismatchedRefTypes(CSharpParseOptions parseOptions, string mRef, string customHandlerRef, string expression, params DiagnosticDescription[] expectedDiagnostics) 8230? new DiagnosticDescription[] 8236: new DiagnosticDescription[] 8579: DiagnosticDescription.None);
Semantics\LocalFunctionTests.cs (1)
25internal static void VerifyDiagnostics(string source, params DiagnosticDescription[] expected)
Semantics\NativeIntegerTests.cs (48)
5806new DiagnosticDescription[] 5821new DiagnosticDescription[0]; 6514static DiagnosticDescription errorOutOfRangeChecked(string destinationType, string value) => Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, $"({destinationType})x").WithArguments(value, destinationType); 6515static DiagnosticDescription errorOutOfRange(string destinationType, string value) => Diagnostic(ErrorCode.ERR_ConstOutOfRange, $"({destinationType})x").WithArguments(value, destinationType); 6516static DiagnosticDescription warningOutOfRangeChecked(string destinationType, string value) => Diagnostic(ErrorCode.WRN_ConstOutOfRangeChecked, $"({destinationType})x").WithArguments(value, destinationType); 6518void constantConversions(string sourceType, string destinationType, string sourceValue, DiagnosticDescription checkedError, string checked32, string checked64, DiagnosticDescription uncheckedError, string unchecked32, string unchecked64) 6524void constantConversion(string sourceType, string destinationType, string sourceValue, bool useChecked, DiagnosticDescription expectedError, string expectedOutput) 6546comp.VerifyDiagnostics(expectedError is null ? Array.Empty<DiagnosticDescription>() : new[] { expectedError }); 9474Array.Empty<DiagnosticDescription>() : 9531void unaryOp(string op, string opType, string expectedSymbol = null, string operand = null, string expectedResult = null, string expectedIL = "", DiagnosticDescription diagnostic = null) 9539unaryOperator(op, opType, opType, expectedSymbol, operand, expectedResult, expectedIL, diagnostic != null ? new[] { diagnostic } : Array.Empty<DiagnosticDescription>()); 9711void unaryOperator(string op, string opType, string resultType, string expectedSymbol, string operand, string expectedResult, string expectedIL, DiagnosticDescription[] expectedDiagnostics) 9745void incrementOps(string op, string opType, string expectedSymbol = null, bool useChecked = false, string values = null, string expectedResult = null, string expectedIL = "", string expectedLiftedIL = "", DiagnosticDescription diagnostic = null) 9753DiagnosticDescription[] getDiagnostics(string opType, bool isPrefix, DiagnosticDescription diagnostic) 9759return diagnostic != null ? new[] { diagnostic } : Array.Empty<DiagnosticDescription>(); 10061void incrementOperator(string op, string opType, bool isPrefix, string expectedSymbol, bool useChecked, string values, string expectedResult, string expectedIL, DiagnosticDescription[] expectedDiagnostics) 10122void incrementOps(string op, string opType, string expectedSymbol = null, string values = null, string expectedResult = null, string expectedIL = "", string expectedLiftedIL = "", DiagnosticDescription diagnostic = null) 10128DiagnosticDescription[] getDiagnostics(string opType, DiagnosticDescription diagnostic) 10134return diagnostic != null ? new[] { diagnostic } : Array.Empty<DiagnosticDescription>(); 10291void incrementOperator(string op, string opType, string expectedSymbol, string values, string expectedResult, string expectedIL, DiagnosticDescription[] expectedDiagnostics) 10466void verify(string type, params DiagnosticDescription[] expected) 10501void binaryOps(string op, string leftType, string rightType, string expectedSymbol1 = null, string expectedSymbol2 = "", DiagnosticDescription[] diagnostics1 = null, DiagnosticDescription[] diagnostics2 = null) 10507void binaryOp(string op, string leftType, string rightType, string expectedSymbol, DiagnosticDescription[] diagnostics) 10513binaryOperator(op, leftType, rightType, expectedSymbol, diagnostics ?? Array.Empty<DiagnosticDescription>()); 10516static DiagnosticDescription[] getBadBinaryOpsDiagnostics(string op, string leftType, string rightType, bool includeBadBinaryOps = true, bool includeVoidError = false) 10518var builder = ArrayBuilder<DiagnosticDescription>.GetInstance(); 10524static DiagnosticDescription[] getAmbiguousBinaryOpsDiagnostics(string op, string leftType, string rightType) 12365void binaryOperator(string op, string leftType, string rightType, string expectedSymbol, DiagnosticDescription[] expectedDiagnostics) 13143static DiagnosticDescription[] getNoDiagnostics(string opType, string op, string operand) => Array.Empty<DiagnosticDescription>(); 13144static DiagnosticDescription[] getBadUnaryOpDiagnostics(string opType, string op, string operand) => new[] { Diagnostic(ErrorCode.ERR_BadUnaryOp, operand).WithArguments(op, opType) }; 13146static DiagnosticDescription[] getIntDivByZeroDiagnostics(string opType, string op, string operand) => new[] { Diagnostic(ErrorCode.ERR_IntDivByZero, operand) }; 13148void unaryOperator(string opType, string op, string operand, string expectedResult, Func<string, string, string, DiagnosticDescription[]> getDiagnostics = null) 13185constantExpression(opType, $"unchecked({expr})", expectedResultUnchecked, Array.Empty<DiagnosticDescription>()); 13197constantExpression(opType, expr, expectedResult, Array.Empty<DiagnosticDescription>()); 13198constantExpression(opType, $"checked({expr})", expectedResult, Array.Empty<DiagnosticDescription>()); 13199constantExpression(opType, $"unchecked({expr})", expectedResult, Array.Empty<DiagnosticDescription>()); 13202void binaryOperator(string opType, string op, string leftType, string leftOperand, string rightType, string rightOperand, string expectedResult, Func<string, string, string, DiagnosticDescription[]> getDiagnostics = null) 13239constantExpression(opType, $"unchecked({expr})", expectedResultUnchecked, Array.Empty<DiagnosticDescription>()); 13251constantExpression(opType, expr, expectedResult, Array.Empty<DiagnosticDescription>()); 13252constantExpression(opType, $"checked({expr})", expectedResult, Array.Empty<DiagnosticDescription>()); 13253constantExpression(opType, $"unchecked({expr})", expectedResult, Array.Empty<DiagnosticDescription>()); 13256void constantDeclaration(string opType, string declarations, string expr, string expectedResult, DiagnosticDescription[] expectedDiagnostics) 13287void constantExpression(string opType, string expr, string expectedResult, DiagnosticDescription[] expectedDiagnostics)
Semantics\NullableContextTests.cs (9)
721static void verify(string source, string[] expectedAnalyzedKeys, params DiagnosticDescription[] expectedDiagnostics) 981static void verify(string source, string[] expectedAnalyzedKeys, params DiagnosticDescription[] expectedDiagnostics) 1062static void verify(string[] source, CSharpCompilationOptions options, string[] expectedAnalyzedKeys, params DiagnosticDescription[] expectedDiagnostics) 1146static void verify(string source, string[] expectedAnalyzedKeys, params DiagnosticDescription[] expectedDiagnostics) 1205static void verify(string source, string[] expectedAnalyzedKeys, params DiagnosticDescription[] expectedDiagnostics) 1296static void verify(string source, string[] expectedAnalyzedKeys, params DiagnosticDescription[] expectedDiagnostics) 1353static void verify(string source, string[] expectedAnalyzedKeys, params DiagnosticDescription[] expectedDiagnostics) 1448static void verify(string source, string[] expectedAnalyzedKeys, params DiagnosticDescription[] expectedDiagnostics) 1733static void verify(string[] source, NullableContextOptions? projectContext, string[] expectedAnalyzedKeys, params DiagnosticDescription[] expectedDiagnostics)
Semantics\NullableReferenceTypesTests.cs (11)
3186void verify(string variableType, string itemType, params DiagnosticDescription[] expected) 3230void verify(string fieldType, params DiagnosticDescription[] expected) 116396var expected = new DiagnosticDescription[] { 116437var expected = new DiagnosticDescription[] { 144262DiagnosticDescription.None : 144299private static void ShouldRunNullableWalker_GlobalDirectiveOff_WithNullableDirective(string directive, params DiagnosticDescription[] expectedDiagnostics) 144378private static void ShouldRunNullableWalker_GlobalDirectiveOff_MultipleFiles(string directive, params DiagnosticDescription[] expectedDiagnostics) 144479? Array.Empty<DiagnosticDescription>() 144511? Array.Empty<DiagnosticDescription>() 144536? Array.Empty<DiagnosticDescription>() 150462Array.Empty<DiagnosticDescription>();
Semantics\ObjectAndCollectionInitializerTests.cs (57)
64var expectedDiagnostics = DiagnosticDescription.None; 108var expectedDiagnostics = DiagnosticDescription.None; 159var expectedDiagnostics = DiagnosticDescription.None; 187var expectedDiagnostics = DiagnosticDescription.None; 213var expectedDiagnostics = DiagnosticDescription.None; 251var expectedDiagnostics = DiagnosticDescription.None; 380var expectedDiagnostics = DiagnosticDescription.None; 440var expectedDiagnostics = DiagnosticDescription.None; 553var expectedDiagnostics = DiagnosticDescription.None; 676var expectedDiagnostics = DiagnosticDescription.None; 790var expectedDiagnostics = DiagnosticDescription.None; 886var expectedDiagnostics = new DiagnosticDescription[] { 935var expectedDiagnostics = new DiagnosticDescription[] { 981var expectedDiagnostics = new DiagnosticDescription[] { 1022var expectedDiagnostics = new DiagnosticDescription[] { 1063var expectedDiagnostics = new DiagnosticDescription[] { 1110var expectedDiagnostics = new DiagnosticDescription[] { 1167var expectedDiagnostics = new DiagnosticDescription[] { 1202var expectedDiagnostics = new DiagnosticDescription[] { 1262var expectedDiagnostics = new DiagnosticDescription[] { 1301var expectedDiagnostics = new DiagnosticDescription[] { 1343var expectedDiagnostics = new DiagnosticDescription[] { 1385var expectedDiagnostics = new DiagnosticDescription[] { 1425var expectedDiagnostics = new DiagnosticDescription[] { 1468var expectedDiagnostics = new DiagnosticDescription[] { 1505var expectedDiagnostics = new DiagnosticDescription[] { 1555var expectedDiagnostics = new DiagnosticDescription[] { 1597var expectedDiagnostics = new DiagnosticDescription[] { 1647var expectedDiagnostics = new DiagnosticDescription[] { 1708var expectedDiagnostics = new DiagnosticDescription[] { 1752var expectedDiagnostics = new DiagnosticDescription[] { 1794var expectedDiagnostics = new DiagnosticDescription[] { 1832var expectedDiagnostics = new DiagnosticDescription[] { 1878var expectedDiagnostics = new DiagnosticDescription[] { 1932var expectedDiagnostics = new DiagnosticDescription[] { 1991var expectedDiagnostics = new DiagnosticDescription[] { 2103var expectedDiagnostics = new DiagnosticDescription[] { 2150var expectedDiagnostics = new DiagnosticDescription[] { 2229var expectedDiagnostics = new DiagnosticDescription[] { 2283var expectedDiagnostics = new DiagnosticDescription[] { 2320var expectedDiagnostics = new DiagnosticDescription[] { 2364var expectedDiagnostics = new DiagnosticDescription[] { 2410var expectedDiagnostics = new DiagnosticDescription[] { 2457var expectedDiagnostics = new DiagnosticDescription[] { 2529var expectedDiagnostics = new DiagnosticDescription[] { 2563var expectedDiagnostics = new DiagnosticDescription[] { 2739var expectedDiagnostics = new DiagnosticDescription[] { 2803var expectedDiagnostics = new DiagnosticDescription[] { 2864var expectedDiagnostics = new DiagnosticDescription[] { 2916var expectedDiagnostics = new DiagnosticDescription[] { 2961var expectedDiagnostics = new DiagnosticDescription[] { 3001var expectedDiagnostics = new DiagnosticDescription[] { 3084var expectedDiagnostics = new DiagnosticDescription[] { 3170var expectedDiagnostics = new DiagnosticDescription[] { 3267var expectedDiagnostics = new DiagnosticDescription[] { 3317var expectedDiagnostics = new DiagnosticDescription[] { 3430var expectedDiagnostics = new DiagnosticDescription[] {
Semantics\OperatorTests.cs (19)
99var expectedDiagnostics = DiagnosticDescription.None; 591var expectedDiagnostics = DiagnosticDescription.None; 760var expectedDiagnostics = DiagnosticDescription.None; 859var expectedDiagnostics = DiagnosticDescription.None; 962var expectedDiagnostics = DiagnosticDescription.None; 1035var expectedDiagnostics = DiagnosticDescription.None; 1112var expectedDiagnostics = DiagnosticDescription.None; 1301var expectedDiagnostics = new DiagnosticDescription[] { 1349var expectedDiagnostics = new DiagnosticDescription[] { 1514var expectedDiagnostics = DiagnosticDescription.None; 1549var expectedDiagnostics = new DiagnosticDescription[] { 1936var expectedDiagnostics = new DiagnosticDescription[] { 2136var expectedDiagnostics = DiagnosticDescription.None; 2275var expectedDiagnostics = DiagnosticDescription.None; 2395var expectedDiagnostics = DiagnosticDescription.None; 2422var expectedDiagnostics = new DiagnosticDescription[] { 2550var expectedDiagnostics = DiagnosticDescription.None; 2674var expectedDiagnostics = DiagnosticDescription.None; 2945var expectedDiagnostics = new DiagnosticDescription[] {
Semantics\QueryTests.cs (30)
82var expectedDiagnostics = DiagnosticDescription.None; 165var expectedDiagnostics = DiagnosticDescription.None; 233var expectedDiagnostics = DiagnosticDescription.None; 301var expectedDiagnostics = DiagnosticDescription.None; 388var expectedDiagnostics = DiagnosticDescription.None; 462var expectedDiagnostics = DiagnosticDescription.None; 567var expectedDiagnostics = DiagnosticDescription.None; 661var expectedDiagnostics = DiagnosticDescription.None; 778var expectedDiagnostics = DiagnosticDescription.None; 861var expectedDiagnostics = DiagnosticDescription.None; 1047var expectedDiagnostics = DiagnosticDescription.None; 1345var expectedDiagnostics = DiagnosticDescription.None; 1631var expectedDiagnostics = DiagnosticDescription.None; 1820var expectedDiagnostics = new DiagnosticDescription[] { 1891var expectedDiagnostics = new DiagnosticDescription[] { 2090var expectedDiagnostics = DiagnosticDescription.None; 2766var expectedDiagnostics = new DiagnosticDescription[] { 2798", new DiagnosticDescription[] { 2821", new DiagnosticDescription[] { 2865var expectedDiagnostics = new DiagnosticDescription[] { 3085var expectedDiagnostics = new DiagnosticDescription[] { 3204var expectedDiagnostics = new DiagnosticDescription[] { 3251var expectedDiagnostics = new DiagnosticDescription[] { 3732var expectedDiagnostics = new DiagnosticDescription[] { 4156var expectedDiagnostics = new DiagnosticDescription[] { 4225var expectedDiagnostics = new DiagnosticDescription[] { 4288var expectedDiagnostics = DiagnosticDescription.None; 4338var expectedDiagnostics = DiagnosticDescription.None; 4390var expectedDiagnostics = DiagnosticDescription.None; 4415var expectedDiagnostics = DiagnosticDescription.None;
Semantics\RawInterpolationTests_Handler.cs (4)
6179private void InterpolatedStringHandlerArgumentAttribute_MismatchedRefTypes(string mRef, string customHandlerRef, string expression, params DiagnosticDescription[] expectedDiagnostics) 6405? new DiagnosticDescription[] 6411: new DiagnosticDescription[] 6760: DiagnosticDescription.None);
Semantics\RecordStructTests.cs (10)
6977var expectedDiagnostics = DiagnosticDescription.None; 7340var expectedDiagnostics = DiagnosticDescription.None; 7478var expectedDiagnostics = DiagnosticDescription.None; 8414var expectedDiagnostics = DiagnosticDescription.None; 8590var expectedDiagnostics = DiagnosticDescription.None; 8765var expectedDiagnostics = DiagnosticDescription.None; 8962var expectedDiagnostics = DiagnosticDescription.None; 9130var expectedDiagnostics = DiagnosticDescription.None; 9316var expectedDiagnostics = DiagnosticDescription.None; 9513var expectedDiagnostics = DiagnosticDescription.None;
Semantics\RefFieldTests.cs (21)
2817var expectedDiagnostics = new DiagnosticDescription[] 2878var expectedLegacyDiagnostics = new DiagnosticDescription[] 2882var expectedUpdatedDiagnostics = new DiagnosticDescription[] 2941var expectedLegacyDiagnostics = new DiagnosticDescription[] 2981var expectedUpdatedDiagnostics = new DiagnosticDescription[] 3071var expectedLegacyDiagnostics = new DiagnosticDescription[] 3099var expectedUpdatedDiagnostics = new DiagnosticDescription[] 3248var expectedLegacyDiagnostics = new DiagnosticDescription[] 3330var expectedUpdatedDiagnostics = new DiagnosticDescription[] 3446var expectedLegacyDiagnostics = new DiagnosticDescription[] 3450var expectedUpdatedDiagnostics = new DiagnosticDescription[] 3492var expectedLegacyDiagnostics = new DiagnosticDescription[] 3496var expectedUpdatedDiagnostics = new DiagnosticDescription[] 3610var expectedLegacyDiagnostics = new DiagnosticDescription[] 3614var expectedUpdatedDiagnostics = new DiagnosticDescription[] 3671var expectedLegacyDiagnostics = new DiagnosticDescription[] 3675var expectedUpdatedDiagnostics = new DiagnosticDescription[] 3774var expectedLegacyDiagnostics = new DiagnosticDescription[] 3778var expectedUpdatedDiagnostics = new DiagnosticDescription[] 3930var expectedLegacyDiagnostics = new DiagnosticDescription[] 3934var expectedUpdatedDiagnostics = new DiagnosticDescription[]
Semantics\SemanticErrorTests.cs (3)
15128var expected = new DiagnosticDescription[] { 16631DiagnosticDescription[] expected = { 20995var fullExpected = new DiagnosticDescription[] {
Semantics\TargetTypedConditionalOperatorTests.cs (3)
276private static void TestConditional(string conditionalExpression, string targetType, string? naturalType, params DiagnosticDescription[] expectedDiagnostics) 286params DiagnosticDescription[] expectedDiagnostics) 519var expectedDiagnostics = new DiagnosticDescription[]
Semantics\TargetTypedDefaultTests.cs (4)
1712void validate(string modifier, string type, string value, string equal, string semanticType, params DiagnosticDescription[] diagnostics) 1718void validateLangVer(string modifier, string type, string value, string equal, string semanticType, CSharpParseOptions parseOptions, params DiagnosticDescription[] diagnostics) 1784void validate(string modifier, string type, string value, string equal, string semanticType, params DiagnosticDescription[] diagnostics) 1855void validate(string type, string value, string equal, string semanticType, params DiagnosticDescription[] diagnostics)
Semantics\UnsafeTests.cs (8)
240expectedDiagnostics: new DiagnosticDescription[] { 2901DiagnosticDescription[] expected = 3135DiagnosticDescription[] expectedWithoutUnsafe = 3157DiagnosticDescription[] expectedWithUnsafe = 4161private static void CompareUnsafeDiagnostics(string template, params DiagnosticDescription[] expectedWithoutUnsafe) 4163CompareUnsafeDiagnostics(template, expectedWithoutUnsafe, new DiagnosticDescription[0]); 4166private static void CompareUnsafeDiagnostics(string template, DiagnosticDescription[] expectedWithoutUnsafe, DiagnosticDescription[] expectedWithUnsafe)
Semantics\UseSiteErrorTests.cs (2)
2215DiagnosticDescription[] expected = 2258private static void CompileUnsafeAttributesAndCheckDiagnostics(string corLibText, bool moduleOnly, params DiagnosticDescription[] expectedDiagnostics)
SourceGeneration\GeneratorDriverTests.cs (3)
1201void verifyDiagnosticsWithOptions(CompilationOptions options, params DiagnosticDescription[] expected) 1253void verifyDiagnosticsWithSource(string source, (Diagnostic, TextSpan)[] reportDiagnostics, params DiagnosticDescription[] expected) 1344static void verify(string source, IReadOnlyList<(Diagnostic Diagnostic, string Location)> reportDiagnostics, params DiagnosticDescription[] expected)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (226)
BadSymbolReference.cs (7)
276DiagnosticDescription[] errors = { 472DiagnosticDescription[] errors2 = { 563DiagnosticDescription[] errors3 = { 603DiagnosticDescription[] errors5 = { 651DiagnosticDescription[] errors6 = { 937DiagnosticDescription[] expectedErrors = 1379DiagnosticDescription[] expectedErrors =
Compilation\CSharpCompilationOptionsTests.cs (1)
22public static void VerifyErrors(this CSharpCompilationOptions options, params DiagnosticDescription[] expected)
Compilation\UsedAssembliesTests.cs (28)
81private void AssertUsedAssemblyReferences(Compilation comp, MetadataReference[] expected, DiagnosticDescription[] before, DiagnosticDescription[] after, MetadataReference[] specificReferencesToAssert) 88void assertUsedAssemblyReferences(Compilation comp, MetadataReference[] expected, DiagnosticDescription[] before, DiagnosticDescription[] after, MetadataReference[] specificReferencesToAssert) 133private static IEnumerable<(Compilation comp, DiagnosticDescription[] before, DiagnosticDescription[] after)> CloneCompilationsWithUsings(Compilation comp, DiagnosticDescription[] before, DiagnosticDescription[] after) 206static DiagnosticDescription[] adjustDiagnosticDescription(DiagnosticDescription[] input) 213DiagnosticDescription[] output = null; 217var old = input[i]; 232static DiagnosticDescription[] allocateOutput(DiagnosticDescription[] input, ref DiagnosticDescription[] output) 236System.Array.Copy(input, output = new DiagnosticDescription[input.Length], input.Length); 245AssertUsedAssemblyReferences(comp, expected, new DiagnosticDescription[] { }, new DiagnosticDescription[] { }, specificReferencesToAssert: null); 250AssertUsedAssemblyReferences(comp, expected, new DiagnosticDescription[] { }, new DiagnosticDescription[] { }, specificReferencesToAssert); 268private static void AssertUsedAssemblyReferences(string source, MetadataReference[] references, params DiagnosticDescription[] expected) 277static void assertUsedAssemblyReferences(Compilation comp, params DiagnosticDescription[] expected) 1586var expected1 = new DiagnosticDescription[] { 1641var expected2 = new DiagnosticDescription[] { 2315static void verify1(MetadataReference reference, string source, params DiagnosticDescription[] expected) 2324static void verify(Compilation comp, params DiagnosticDescription[] expected) 3689void verifyDiagnostics(MetadataReference reference0, MetadataReference reference1, string source, params DiagnosticDescription[] diagnostics) 3831void verifyDiagnostics(MetadataReference reference0, MetadataReference reference1, string source, params DiagnosticDescription[] diagnostics)
DocumentationComments\CrefTests.cs (2)
6623internal static Symbol GetReferencedSymbol(CrefSyntax crefSyntax, CSharpCompilation compilation, params DiagnosticDescription[] expectedDiagnostics) 6633private static ImmutableArray<Symbol> GetReferencedSymbols(CrefSyntax crefSyntax, CSharpCompilation compilation, out Symbol ambiguityWinner, params DiagnosticDescription[] expectedDiagnostics)
DocumentationComments\DocumentationModeTests.cs (3)
336private static void TestInline(string xml, string expectedText, params DiagnosticDescription[] expectedDiagnostics) 361private void TestIncluded(string xml, string xpath, string expectedTextTemplate, bool fallbackToErrorCodeOnlyForNonEnglish, params DiagnosticDescription[] expectedDiagnostics) 366private void TestIncluded(string xml, string xpath, string expectedTextTemplate, Func<string, DiagnosticDescription[]> makeExpectedDiagnostics, bool fallbackToErrorCodeOnlyForNonEnglish = false)
Symbols\AnonymousTypesSemanticsTests.cs (18)
274var expectedDiagnostics = DiagnosticDescription.None; 402var expectedDiagnostics = DiagnosticDescription.None; 460var expectedDiagnostics = DiagnosticDescription.None; 525var expectedDiagnostics = DiagnosticDescription.None; 569var expectedDiagnostics = DiagnosticDescription.None; 637var expectedDiagnostics = DiagnosticDescription.None; 822var expectedDiagnostics = DiagnosticDescription.None; 896var expectedDiagnostics = DiagnosticDescription.None; 958var expectedDiagnostics = DiagnosticDescription.None; 1026var expectedDiagnostics = DiagnosticDescription.None; 1293var expectedDiagnostics = new DiagnosticDescription[] { 1367var expectedDiagnostics = new DiagnosticDescription[] { 1461var expectedDiagnostics = new DiagnosticDescription[] { 1564var expectedDiagnostics = new DiagnosticDescription[] { 1702var expectedDiagnostics = new DiagnosticDescription[] { 1822var expectedDiagnostics = new DiagnosticDescription[] { 1871var expectedDiagnostics = DiagnosticDescription.None; 2039private TestData Compile(string source, int expectedIntervals, params DiagnosticDescription[] diagnostics)
Symbols\CovariantReturnTests.cs (8)
480params DiagnosticDescription[] expectedDiagnostics) 497params DiagnosticDescription[] expectedDiagnostics) 3828var expectedDiagnostics = new DiagnosticDescription[0]; 3951var expectedDiagnostics = new DiagnosticDescription[0]; 4071var expectedDiagnostics = new DiagnosticDescription[0]; 4186var expectedDiagnostics = new DiagnosticDescription[0]; 4307var expectedDiagnostics = new DiagnosticDescription[0]; 4413var expectedDiagnostics = new DiagnosticDescription[0];
Symbols\DefaultInterfaceImplementationTests.cs (141)
6352private void ValidateEventImplementation_101(string source1, DiagnosticDescription[] expected, bool haveAdd, bool haveRemove, bool isStatic = false) 9423private static DiagnosticDescription[] ExpectedDiagnostics(params DiagnosticDescription[] array) => array; 9427params DiagnosticDescription[] expectedIn9) 9429ValidateMethodModifiers_10_02(source1, source2, accessibility, expectedIn9, expectedIn9AcrossAssemblyBoundaries: expectedIn9, expectedAcrossAssemblyBoundaries: Array.Empty<DiagnosticDescription>()); 9434DiagnosticDescription[] expectedIn9, 9435params DiagnosticDescription[] expectedAcrossAssemblyBoundaries) 9442DiagnosticDescription[] expectedIn9, 9443DiagnosticDescription[] expectedIn9AcrossAssemblyBoundaries, 9444DiagnosticDescription[] expectedAcrossAssemblyBoundaries, 11852var expected = new DiagnosticDescription[] { 12488expectedAcrossAssemblyBoundaries: Array.Empty<DiagnosticDescription>(), 14901DiagnosticDescription[] expectedIn9, 14902params DiagnosticDescription[] expectedNoImplementation) 14904ValidatePropertyModifiers_11_01(source1, source2, accessibility, expectedIn9, expectedNoImplementation, expectedAcrossAssemblyBoundaries: Array.Empty<DiagnosticDescription>()); 14908DiagnosticDescription[] expectedIn9, 14909DiagnosticDescription[] expectedNoImplementation, 14910params DiagnosticDescription[] expectedAcrossAssemblyBoundaries) 15107DiagnosticDescription[] expectedIn9, 15108params DiagnosticDescription[] expectedAcrossAssemblyBoundaries) 15243params DiagnosticDescription[] expected) 15741params DiagnosticDescription[] expected) 15834DiagnosticDescription[] expectedIn9, 15835params DiagnosticDescription[] expectedAcrossAssemblyBoundaries) 15946params DiagnosticDescription[] expectedIn9) 15948ValidatePropertyModifiers_11_11(source1, source2, expectedIn9, expectedAcrossAssemblyBoundaries: Array.Empty<DiagnosticDescription>()); 15952DiagnosticDescription[] expectedIn9, 15953params DiagnosticDescription[] expectedAcrossAssemblyBoundaries) 16305private void ValidatePropertyModifiers_14(string source1, params DiagnosticDescription[] expected) 16577private void ValidatePropertyModifiers_15(string source1, params DiagnosticDescription[] expected) 16678new DiagnosticDescription[] 16765private void ValidatePropertyModifiers_16(string source1, DiagnosticDescription[] expected1, params DiagnosticDescription[] expected2) 17013private void ValidatePropertyModifiers_17(string source1, params DiagnosticDescription[] expected) 17263private void ValidatePropertyModifiers_18(string source1, params DiagnosticDescription[] expected) 18450private void ValidatePropertyModifiers_23(string source1, string source2, Accessibility getAccess, Accessibility setAccess, params DiagnosticDescription[] expectedIn9) 18452ValidatePropertyModifiers_23(source1, source2, getAccess, setAccess, expectedIn9, expectedAcrossAssemblyBoundaries: Array.Empty<DiagnosticDescription>()); 18455private void ValidatePropertyModifiers_23(string source1, string source2, Accessibility getAccess, Accessibility setAccess, DiagnosticDescription[] expectedIn9, params DiagnosticDescription[] expectedAcrossAssemblyBoundaries) 20594new DiagnosticDescription[] { 20650new DiagnosticDescription[] { 24191new DiagnosticDescription[] 28411private void ValidateEventModifiers_11(string source1, string source2, Accessibility accessibility, DiagnosticDescription[] expectedIn9, params DiagnosticDescription[] expectedNoImplementation) 28413ValidateEventModifiers_11(source1, source2, accessibility, expectedIn9, expectedAcrossAssemblyBoundaries: Array.Empty<DiagnosticDescription>(), expectedNoImplementation); 28416private void ValidateEventModifiers_11(string source1, string source2, Accessibility accessibility, DiagnosticDescription[] expectedIn9, DiagnosticDescription[] expectedAcrossAssemblyBoundaries, params DiagnosticDescription[] expectedNoImplementation) 28612DiagnosticDescription[] expectedIn9, 28613params DiagnosticDescription[] expectedAcrossAssemblyBoundaries) 28749params DiagnosticDescription[] expected) 29253params DiagnosticDescription[] expected) 29346DiagnosticDescription[] expectedIn9, 29347params DiagnosticDescription[] expectedAcrossAssemblyBoundaries) 29458params DiagnosticDescription[] expected) 29694private void ValidateEventModifiers_14(string source1, params DiagnosticDescription[] expected) 29990private void ValidateEventModifiers_15(string source1, params DiagnosticDescription[] expected) 30436private void ValidateEventModifiers_17(string source1, params DiagnosticDescription[] expected) 30657private void ValidateEventModifiers_18(string source1, params DiagnosticDescription[] expected) 31303new DiagnosticDescription[] 31987var expected = new DiagnosticDescription[] { 32512var expected = new DiagnosticDescription[] { 37184new DiagnosticDescription[] 37248new DiagnosticDescription[] 37272private void ValidatePropertyImplementationInDerived_02(string source1, bool isStatic, DiagnosticDescription[] expected1, params DiagnosticDescription[] expected2) 37349new DiagnosticDescription[] 37373private void ValidatePropertyImplementationInDerived_03(string source1, bool isStatic, DiagnosticDescription[] expected1, params DiagnosticDescription[] expected2) 37446new DiagnosticDescription[] 37515private void ValidatePropertyImplementationInDerived_04(string source1, bool isStatic, params DiagnosticDescription[] expected) 37520private void ValidatePropertyImplementationInDerived_04(string source1, bool i4M1IsAbstract, bool isStatic, params DiagnosticDescription[] expected) 37603private void ValidatePropertyImplementationInDerived_05(string source1, params DiagnosticDescription[] expected) 37918new DiagnosticDescription[] 37924new DiagnosticDescription[] 37933new DiagnosticDescription[] 37949DiagnosticDescription[] expected1, DiagnosticDescription[] expected2, 37950DiagnosticDescription[] expected3, params DiagnosticDescription[] expected4) 38078new DiagnosticDescription[] 38084new DiagnosticDescription[] 38096new DiagnosticDescription[] 38369private void ValidatePropertyImplementationInDerived_11(string source1, string source2, bool isStatic, params DiagnosticDescription[] expected) 38718new DiagnosticDescription[] 38739private void ValidatePropertyImplementationInDerived_12(string source1, string source4, string source5, bool isStatic, DiagnosticDescription[] expected1, DiagnosticDescription[] expected2 = null) 38988new DiagnosticDescription[] 39000private void ValidatePropertyImplementationInDerived_13(string source1, string source2, DiagnosticDescription[] expected1, DiagnosticDescription[] expected2 = null) 42593new DiagnosticDescription[] 42662new DiagnosticDescription[] 42982new DiagnosticDescription[] 42988new DiagnosticDescription[] 42997new DiagnosticDescription[] 43363new DiagnosticDescription[] 43381new DiagnosticDescription[] 43432new DiagnosticDescription[] 43441new DiagnosticDescription[] 46770var expected7 = new DiagnosticDescription[] 46868var expected9 = new DiagnosticDescription[] 47259var expected9 = new DiagnosticDescription[] 47456var expected = new DiagnosticDescription[] 47669var expected = new DiagnosticDescription[] 47802var expected = new DiagnosticDescription[] 47927var expected = new DiagnosticDescription[] 47994var expected = new DiagnosticDescription[] 48241var expected9 = new DiagnosticDescription[] 48648var expected = new DiagnosticDescription[] 48718var expected = new DiagnosticDescription[] 48791var expected = new DiagnosticDescription[] 51365var expected = new DiagnosticDescription[] 51649var expected = new DiagnosticDescription[] 51789var expected = new DiagnosticDescription[] 52336private static void ValidateMethodReAbstraction_21(string source1, bool isStatic, params DiagnosticDescription[] expected) 52490private static void ValidatePropertyReAbstraction_001(string source1, string source2, params DiagnosticDescription[] expected) 52495private static void ValidatePropertyReAbstraction_001(string source1, string source2, bool isStatic, params DiagnosticDescription[] expected) 52852private static void ValidatePropertyReAbstraction_005(string source1, string source2, params DiagnosticDescription[] expected) 53185private static void ValidatePropertyReAbstraction_009(string source1, string source2, params DiagnosticDescription[] expected) 53190private static void ValidatePropertyReAbstraction_009(string source1, string source2, DiagnosticDescription[] expected1, params DiagnosticDescription[] expected2) 53347private static void ValidatePropertyReAbstraction_012(string source1, string source2, params DiagnosticDescription[] expected) 53352private static void ValidatePropertyReAbstraction_012(string source1, string source2, DiagnosticDescription[] expected1, params DiagnosticDescription[] expected2) 53586private static void ValidatePropertyReAbstraction_014(string source1, params DiagnosticDescription[] expected) 53591private static void ValidatePropertyReAbstraction_014(string source1, bool isStatic, params DiagnosticDescription[] expected) 53718private static void ValidatePropertyReAbstraction_016(string source1, params DiagnosticDescription[] expected) 53723private static void ValidatePropertyReAbstraction_016(string source1, bool isStatic, params DiagnosticDescription[] expected) 53869private static void ValidatePropertyReAbstraction_018(string source1, params DiagnosticDescription[] expected) 54186private static void ValidatePropertyReAbstraction_026(string source1, string source2, params DiagnosticDescription[] expected) 54191private static void ValidatePropertyReAbstraction_026(string source1, string source2, bool isStatic, params DiagnosticDescription[] expected) 57022private static void ValidatePropertyReAbstraction_083(string source1, params DiagnosticDescription[] expected) 57027private static void ValidatePropertyReAbstraction_083(string source1, bool isStatic, params DiagnosticDescription[] expected) 57473private static void ValidateEventReAbstraction_001(string source1, string source2, bool isStatic, params DiagnosticDescription[] expected) 57803private static void ValidateEventReAbstraction_005(string source1, string source2, params DiagnosticDescription[] expected) 58117private static void ValidateEventReAbstraction_009(string source1, string source2, params DiagnosticDescription[] expected) 58266private static void ValidateEventReAbstraction_012(string source1, string source2, params DiagnosticDescription[] expected) 58479private static void ValidateEventReAbstraction_014(string source1, bool isStatic, params DiagnosticDescription[] expected) 58671private static void ValidateEventReAbstraction_018(string source1, params DiagnosticDescription[] expected) 59243private static void ValidateEventReAbstraction_033(string source1, string source2, bool isStatic, params DiagnosticDescription[] expected) 59311private static void ValidateEventReAbstraction_034(string source1, bool isStatic, params DiagnosticDescription[] expected)
Symbols\GenericConstraintTests.cs (1)
7301DiagnosticDescription expectedDiagnostic = Diagnostic(ErrorCode.WRN_UnifyReferenceMajMin).WithArguments("mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "assembly1", "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "mscorlib").WithLocation(1, 1);
Symbols\Metadata\PE\BaseTypeResolution.cs (1)
384DiagnosticDescription[] errors = {
Symbols\Retargeting\NoPia.cs (5)
1578var expectedDiagnostics = new DiagnosticDescription[] 1631var expectedDiagnostics = new DiagnosticDescription[] 1675var expectedDiagnostics = new DiagnosticDescription[] 1728var expectedDiagnostics = new DiagnosticDescription[] 1796var expectedDiagnostics = new DiagnosticDescription[]
Symbols\Source\EventTests.cs (1)
302compVerifier.VerifyDiagnostics(DiagnosticDescription.None);
Symbols\Source\NullablePublicAPITests.cs (3)
129new DiagnosticDescription[] 1028DiagnosticDescription[] nullableEnabledErrors, 1029DiagnosticDescription[] nullableDisabledErrors,
Symbols\StaticAbstractMembersInInterfacesTests.cs (7)
6340DiagnosticDescription[] expected; 6379expected = Array.Empty<DiagnosticDescription>(); 10208var builder = ArrayBuilder<DiagnosticDescription>.GetInstance(); 12270var builder = ArrayBuilder<DiagnosticDescription>.GetInstance(); 12577var builder = ArrayBuilder<DiagnosticDescription>.GetInstance(); 18780DiagnosticDescription[] expected2; 18817DiagnosticDescription[] expected3;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (38)
Diagnostics\DiagnosticTest.cs (3)
2130var expected1 = new DiagnosticDescription[] 2166var expected2 = new DiagnosticDescription[] 2458var expected = new DiagnosticDescription[] {
LexicalAndXml\LexicalErrorTests.cs (1)
826var descriptions = new List<DiagnosticDescription>
Parsing\AllowsConstraintParsing.cs (1)
18private new SyntaxTree UsingTree(string text, params DiagnosticDescription[] expectedErrors)
Parsing\FileModifierParsingTests.cs (6)
23private void UsingNode(string text, params DiagnosticDescription[] expectedDiagnostics) 28private void UsingNode(string text, CSharpParseOptions? options = null, DiagnosticDescription[]? expectedParsingDiagnostics = null, DiagnosticDescription[]? expectedBindingDiagnostics = null) 31expectedParsingDiagnostics ??= Array.Empty<DiagnosticDescription>(); 186expectedBindingDiagnostics: new DiagnosticDescription[] 237expectedBindingDiagnostics: new DiagnosticDescription[]
Parsing\LineSpanDirectiveParsingTests.cs (1)
28private void UsingLineDirective(string text, CSharpParseOptions? options, params DiagnosticDescription[] expectedErrors)
Parsing\ParserRegressionTests.cs (1)
826private static new void ParseAndValidate(string text, params DiagnosticDescription[] expectedErrors)
Parsing\ParsingTests.cs (15)
57public static void ParseAndValidate(string text, params DiagnosticDescription[] expectedErrors) 64public static void ParseAndValidate(string text, CSharpParseOptions options, params DiagnosticDescription[] expectedErrors) 71public static void ParseAndValidateFirst(string text, DiagnosticDescription expectedFirstError) 89internal void UsingStatement(string text, params DiagnosticDescription[] expectedErrors) 94internal void UsingStatement(string text, ParseOptions? options, params DiagnosticDescription[] expectedErrors) 101internal void UsingDeclaration(string text, ParseOptions? options, params DiagnosticDescription[] expectedErrors) 106internal void UsingDeclaration(string text, int offset = 0, ParseOptions? options = null, bool consumeFullText = true, params DiagnosticDescription[] expectedErrors) 121internal void UsingExpression(string text, ParseOptions? options, params DiagnosticDescription[] expectedErrors) 126protected void UsingNode(string text, CSharpSyntaxNode node, params DiagnosticDescription[] expectedErrors) 132protected void Validate(string text, CSharpSyntaxNode node, params DiagnosticDescription[] expectedErrors) 140internal void UsingExpression(string text, params DiagnosticDescription[] expectedErrors) 145protected SyntaxTree UsingTree(string text, params DiagnosticDescription[] expectedErrors) 150protected SyntaxTree UsingTree(string text, CSharpParseOptions? options, params DiagnosticDescription[] expectedErrors) 155protected SyntaxTree UsingTree(SyntaxTree tree, params DiagnosticDescription[] expectedErrors) 177protected CSharpSyntaxNode UsingNode(string text, CSharpParseOptions options, params DiagnosticDescription[] expectedErrors)
Parsing\PatternParsingTests.cs (3)
20private new void UsingStatement(string text, params DiagnosticDescription[] expectedErrors) 5713expectedErrors: new DiagnosticDescription[0]); 5957expectedErrors: new DiagnosticDescription[0]);
Parsing\PatternParsingTests_ListPatterns.cs (1)
17private new void UsingExpression(string text, params DiagnosticDescription[] expectedErrors)
Parsing\PatternParsingTests2.cs (1)
16private new void UsingExpression(string text, params DiagnosticDescription[] expectedErrors)
Parsing\RawInterpolatedStringLiteralCompilingTests.cs (2)
44private static void RenderAndVerify(string markup, params DiagnosticDescription[] expected) 52private static void RenderAndVerify(string markup, DiagnosticDescription[] expected, string? normalize)
Parsing\RecordParsing.cs (3)
18private new SyntaxTree UsingTree(string text, params DiagnosticDescription[] expectedErrors) 21private new void UsingExpression(string text, params DiagnosticDescription[] expectedErrors) 24private new void UsingStatement(string text, params DiagnosticDescription[] expectedErrors)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (14)
CSharpTestBase.cs (11)
1809internal static string GetDocumentationCommentText(CSharpCompilation compilation, params DiagnosticDescription[] expectedDiagnostics) 1814internal static string GetDocumentationCommentText(CSharpCompilation compilation, bool ensureEnglishUICulture, params DiagnosticDescription[] expectedDiagnostics) 1819internal static string GetDocumentationCommentText(CSharpCompilation compilation, string outputName = null, SyntaxTree filterTree = null, TextSpan? filterSpanWithinTree = null, bool ensureEnglishUICulture = false, params DiagnosticDescription[] expectedDiagnostics) 2120DiagnosticDescription[] expectedDiagnostics, 2132DiagnosticDescription[] expectedDiagnostics) 2143DiagnosticDescription[] expectedDiagnostics, 2164DiagnosticDescription[] expectedDiagnostics, 2183DiagnosticDescription[] expectedDiagnostics, 2201DiagnosticDescription[] expectedDiagnostics, 2221DiagnosticDescription[] expectedDiagnostics, 2240DiagnosticDescription[] expectedDiagnostics,
DiagnosticExtensions.cs (2)
16public static void Verify(this IEnumerable<DiagnosticInfo> actual, params DiagnosticDescription[] expected) 21public static void Verify(this ImmutableArray<DiagnosticInfo> actual, params DiagnosticDescription[] expected)
Extensions.cs (1)
961public static void Verify(this ReadOnlyBindingDiagnostic<AssemblySymbol> actual, params Microsoft.CodeAnalysis.Test.Utilities.DiagnosticDescription[] expected)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Diagnostics\SuppressMessageAttributeWorkspaceTests.cs (3)
54protected override async Task VerifyAsync(string source, string language, DiagnosticAnalyzer[] analyzers, DiagnosticDescription[] expectedDiagnostics, string rootNamespace = null) 102var diagnostic = Diagnostic("AD0001", null); 123var diagnostic = Diagnostic("AD0001", null);
Microsoft.CodeAnalysis.Scripting.TestUtilities (5)
ScriptingTestHelpers.cs (5)
60internal static void AssertCompilationError(Script script, params DiagnosticDescription[] expectedDiagnostics) 65internal static void AssertCompilationError(Task<ScriptState> state, string code, params DiagnosticDescription[] expectedDiagnostics) 70internal static void AssertCompilationError<T>(Task<ScriptState<T>> state, string code, params DiagnosticDescription[] expectedDiagnostics) 75internal static void AssertCompilationError(ScriptState state, string code, params DiagnosticDescription[] expectedDiagnostics) 80internal static void AssertCompilationError(Action action, params DiagnosticDescription[] expectedDiagnostics)
Microsoft.CodeAnalysis.Test.Utilities (61)
Compilation\CompilationExtensions.cs (4)
54DiagnosticDescription[] expectedWarnings = null, 100public static MemoryStream EmitToStream(this Compilation compilation, EmitOptions options = null, DiagnosticDescription[] expectedWarnings = null) 120DiagnosticDescription[] expectedWarnings = null) => EmitToPortableExecutableReference(comp, options, embedInteropTypes, aliases, expectedWarnings); 127DiagnosticDescription[] expectedWarnings = null)
CompilationVerifier.cs (1)
682public CompilationVerifier VerifyDiagnostics(params DiagnosticDescription[] expected)
Diagnostics\DiagnosticDescription.cs (22)
26public static readonly DiagnosticDescription[] None = { }; 27public static readonly DiagnosticDescription[] Any = null; 190public DiagnosticDescription WithSquiggledText(string squiggledText) 195public DiagnosticDescription WithArguments(params object[] arguments) 200public DiagnosticDescription WithArgumentsAnyOrder(params string[] arguments) 205public DiagnosticDescription WithWarningAsError(bool isWarningAsError) 210public DiagnosticDescription WithDefaultSeverity(DiagnosticSeverity defaultSeverity) 215public DiagnosticDescription WithEffectiveSeverity(DiagnosticSeverity effectiveSeverity) 223public DiagnosticDescription WithLocation(int line, int column) 232public DiagnosticDescription WhereSyntax(Func<SyntaxNode, bool> syntaxPredicate) 249var d = obj as DiagnosticDescription; 487public static string GetAssertText(DiagnosticDescription[] expected, IEnumerable<Diagnostic> actual, DiagnosticDescription[] unmatchedExpected, IEnumerable<Diagnostic> unmatchedActual) 510foreach (var d in expected) 547var description = new DiagnosticDescription(d, errorCodeOnly: false, includeDefaultSeverity, includeEffectiveSeverity); 558foreach (var d in unmatchedExpected) 568var diffDescription = new DiagnosticDescription(d, errorCodeOnly: false, includeDefaultSeverity, includeEffectiveSeverity); 587private static bool IsSortedOrEmpty(DiagnosticDescription[] diagnostics) 590DiagnosticDescription last = null; 591foreach (var diagnostic in diagnostics) 606private static string GetDiagnosticDescription(DiagnosticDescription d, int indentDepth)
Diagnostics\DiagnosticExtensions.cs (22)
31public static void VerifyErrorCodes(this IEnumerable<Diagnostic> actual, params DiagnosticDescription[] expected) 36public static void VerifyErrorCodes(this ImmutableArray<Diagnostic> actual, params DiagnosticDescription[] expected) 41internal static void Verify(this DiagnosticBag actual, params DiagnosticDescription[] expected) 46public static void Verify(this IEnumerable<Diagnostic> actual, params DiagnosticDescription[] expected) 51public static void Verify(this IEnumerable<Diagnostic> actual, bool fallbackToErrorCodeOnlyForNonEnglish, params DiagnosticDescription[] expected) 56public static void VerifyWithFallbackToErrorCodeOnlyForNonEnglish(this IEnumerable<Diagnostic> actual, params DiagnosticDescription[] expected) 61public static void Verify(this ImmutableArray<Diagnostic> actual, params DiagnosticDescription[] expected) 66private static void Verify(IEnumerable<Diagnostic> actual, DiagnosticDescription[] expected, bool errorCodeOnly) 78var unmatchedExpected = ArrayBuilder<DiagnosticDescription>.GetInstance(); 82foreach (var d in expected) 98var text = DiagnosticDescription.GetAssertText(expected, actual, unmatchedExpected.ToArray(), actual.Select((a, i) => (a, i)).Join(unmatchedActualIndex, ai => ai.i, i => i, (ai, _) => ai.a)); 105public static TCompilation VerifyDiagnostics<TCompilation>(this TCompilation c, params DiagnosticDescription[] expected) 157params DiagnosticDescription[] expected) 169params DiagnosticDescription[] expected) 207params DiagnosticDescription[] expected) 228DiagnosticDescription[] expectedDiagnostics, 239var builder = ArrayBuilder<DiagnosticDescription>.GetInstance(expectedDiagnostics.Length); 240foreach (var expected in expectedDiagnostics) 251DiagnosticDescription newExpected; 353public static TCompilation VerifyEmitDiagnostics<TCompilation>(this TCompilation c, EmitOptions options, params DiagnosticDescription[] expected) 370public static TCompilation VerifyEmitDiagnostics<TCompilation>(this TCompilation c, params DiagnosticDescription[] expected) 382public static TCompilation VerifyEmitDiagnostics<TCompilation>(this TCompilation c, IEnumerable<ResourceDescription> manifestResources, params DiagnosticDescription[] expected)
Diagnostics\SuppressMessageAttributeTests.cs (8)
1364protected async Task VerifyCSharpAsync(string source, DiagnosticAnalyzer[] analyzers, params DiagnosticDescription[] diagnostics) 1369protected Task VerifyTokenDiagnosticsCSharpAsync(string markup, params DiagnosticDescription[] diagnostics) 1374protected async Task VerifyBasicAsync(string source, string rootNamespace, DiagnosticAnalyzer[] analyzers, params DiagnosticDescription[] diagnostics) 1380protected async Task VerifyBasicAsync(string source, DiagnosticAnalyzer[] analyzers, params DiagnosticDescription[] diagnostics) 1385protected Task VerifyTokenDiagnosticsBasicAsync(string markup, params DiagnosticDescription[] diagnostics) 1390protected abstract Task VerifyAsync(string source, string language, DiagnosticAnalyzer[] analyzers, DiagnosticDescription[] diagnostics, string rootNamespace = null); 1393private Task VerifyTokenDiagnosticsAsync(string markup, string language, DiagnosticDescription[] diagnostics) 1403protected DiagnosticDescription Diagnostic(string id, string squiggledText)
TestBase.cs (2)
327internal static DiagnosticDescription Diagnostic( 346internal static DiagnosticDescription Diagnostic(
TestHelpers.cs (2)
96public static DiagnosticDescription Diagnostic( 122internal static DiagnosticDescription Diagnostic(
Microsoft.CodeAnalysis.UnitTests (6)
Diagnostics\SuppressMessageAttributeCompilerTests.cs (6)
27protected override Task VerifyAsync(string source, string language, DiagnosticAnalyzer[] analyzers, DiagnosticDescription[] diagnostics, string rootNamespace = null) 101var baseDiagnostic = Diagnostic("AD0001", null).WithLocation(1, 1); 102var diagnosticC = baseDiagnostic 114var diagnosticC1 = baseDiagnostic 126var diagnosticC2 = baseDiagnostic 161var diagnostic = Diagnostic("AD0001", null)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (2)
CommandLineTests.vb (2)
1150Private Sub CheckWin32ResourceOptions(args As String(), expectedResourceFile As String, expectedIcon As String, expectedManifest As String, expectedNoManifest As Boolean, ParamArray diags As DiagnosticDescription()) 7874Private Shared Sub Verify(actual As IEnumerable(Of Diagnostic), ParamArray expected As DiagnosticDescription())
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (3)
ExpressionTrees\CodeGenExprLambda.vb (3)
1902Optional diagnostics() As DiagnosticDescription = Nothing, 1913Optional diagnostics() As DiagnosticDescription = Nothing) 1927Optional diagnostics() As DiagnosticDescription = Nothing)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (10)
Diagnostics\DiagnosticAnalyzerTests.vb (7)
918Dim builder = ArrayBuilder(Of DiagnosticDescription).GetInstance() 1162Private Shared Sub VerifyGeneratedCodeAnalyzerDiagnostics(compilation As Compilation, expected As DiagnosticDescription(), generatedCodeAnalysisFlagsOpt As GeneratedCodeAnalysisFlags?, Optional testIsGeneratedCodeInCallbacks As Boolean = False) 1167Private Shared Function GetExpectedGeneratedCodeAnalyzerDiagnostics(compilation As Compilation, isGeneratedFileName As Func(Of String, Boolean), generatedCodeAnalysisFlagsOpt As GeneratedCodeAnalysisFlags?) As DiagnosticDescription() 1183Dim builder = ArrayBuilder(Of DiagnosticDescription).GetInstance() 1303builder As ArrayBuilder(Of DiagnosticDescription), 1325Private Shared Sub AddExpectedNonLocalDiagnostic(builder As ArrayBuilder(Of DiagnosticDescription), descriptor As DiagnosticDescriptor, ParamArray arguments As String()) 1329Private Shared Sub AddExpectedDiagnostic(builder As ArrayBuilder(Of DiagnosticDescription), diagnosticId As String, squiggledText As String, line As Integer, column As Integer, ParamArray arguments As String())
SourceGeneration\GeneratorDriverTests.vb (3)
647Shared Sub VerifyDiagnosticsWithOptions(generator As ISourceGenerator, compilation As Compilation, ParamArray expected As DiagnosticDescription()) 662Shared Sub VerifyDiagnosticsWithSource(source As String, diag As Diagnostic, location As TextSpan, ParamArray expected As DiagnosticDescription()) 689Shared Sub VerifyDiagnosticsWithLocation(source As String, reportDiagnostics As IReadOnlyList(Of (Diagnostic As Diagnostic, Location As String)), ParamArray expected As DiagnosticDescription())
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (11)
DiagnosticExtensions.vb (1)
16Friend Function VerifyDiagnostics(c As VisualBasicCompilation, ParamArray expected As DiagnosticDescription()) As VisualBasicCompilation
Extensions.vb (1)
361Friend Sub Verify(this As ReadOnlyBindingDiagnostic(Of AssemblySymbol), ParamArray expected As DiagnosticDescription())
ParserTestUtilities.vb (9)
34Dim expectedDiagnostics() As DiagnosticDescription = Nothing 37expectedDiagnostics = New DiagnosticDescription(expectedXml.Count - 1) {} 54Public Function ParseAndVerify(code As XCData, ParamArray expectedDiagnostics() As DiagnosticDescription) As SyntaxTree 58Public Function ParseAndVerify(code As XCData, options As VisualBasicParseOptions, ParamArray expectedDiagnostics() As DiagnosticDescription) As SyntaxTree 62Public Function ParseAndVerify(source As String, ParamArray expectedDiagnostics() As DiagnosticDescription) As SyntaxTree 66Public Function ParseAndVerify(source As String, options As VisualBasicParseOptions, ParamArray expectedDiagnostics() As DiagnosticDescription) As SyntaxTree 70Public Function ParseAndVerify(source As String, languageVersion As LanguageVersion, ParamArray expectedDiagnostics() As DiagnosticDescription) As SyntaxTree 74Public Function ParseAndVerify(source As String, languageVersion As LanguageVersion, errorCodesOnly As Boolean, ParamArray expectedDiagnostics() As DiagnosticDescription) As SyntaxTree 78Private Function ParseAndVerify(source As String, options As VisualBasicParseOptions, expectedDiagnostics() As DiagnosticDescription, errorCodesOnly As Boolean) As SyntaxTree
Roslyn.Test.PdbUtilities (2)
EditAndContinue\EditAndContinueTest.cs (2)
79internal TSelf AddGeneration(string source, SemanticEditDescription[] edits, DiagnosticDescription[] expectedErrors) 82private TSelf AddGeneration(string source, Func<SourceWithMarkedNodes, SemanticEditDescription[]> edits, Action<GenerationVerifier> validator, DiagnosticDescription[] expectedErrors)