211 references to WithDocumentationMode
Microsoft.CodeAnalysis.CSharp (3)
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (1)
621
SyntaxTriviaList leadingTrivia = SyntaxFactory.ParseLeadingTrivia(commentText, CSharpParseOptions.Default.
WithDocumentationMode
(DocumentationMode.Diagnose));
CSharpParseOptions.cs (1)
152
return
WithDocumentationMode
(documentationMode);
Syntax\SyntaxFactory.cs (1)
1622
SyntaxTriviaList leadingTrivia = ParseLeadingTrivia(commentText, CSharpParseOptions.Default.
WithDocumentationMode
(DocumentationMode.Diagnose));
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (2)
src\Analyzers\CSharp\Tests\DocumentationComments\AddDocCommentNodesCodeFixProviderTests.cs (1)
33
var parseOptions = Regular.
WithDocumentationMode
(DocumentationMode.Diagnose);
src\Analyzers\CSharp\Tests\DocumentationComments\RemoveDocCommentNodeCodeFixProviderTests.cs (1)
33
var parseOptions = Regular.
WithDocumentationMode
(DocumentationMode.Diagnose);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
Emit\CompilationEmitTests.cs (6)
262
", assemblyName: "test", parseOptions: CSharpParseOptions.Default.
WithDocumentationMode
(DocumentationMode.None));
307
", assemblyName: "test", parseOptions: CSharpParseOptions.Default.
WithDocumentationMode
(DocumentationMode.None));
353
", assemblyName: "test", parseOptions: CSharpParseOptions.Default.
WithDocumentationMode
(DocumentationMode.Diagnose));
407
", assemblyName: "test", parseOptions: CSharpParseOptions.Default.
WithDocumentationMode
(DocumentationMode.Diagnose));
463
", assemblyName: "test", parseOptions: CSharpParseOptions.Default.
WithDocumentationMode
(DocumentationMode.Diagnose));
516
", assemblyName: "test", parseOptions: CSharpParseOptions.Default.
WithDocumentationMode
(DocumentationMode.Parse));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (25)
Diagnostics\GetDiagnosticsTests.cs (1)
419
var compilation = CreateEmptyCompilation(string.Empty, parseOptions: new CSharpParseOptions().
WithDocumentationMode
(unchecked((DocumentationMode)100)));
RefReadonlyParameterTests.cs (2)
7096
var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose)).VerifyDiagnostics(
7124
var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose)).VerifyDiagnostics(
Semantics\PrimaryConstructorTests.cs (21)
6047
var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
6080
var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
6127
var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
6164
var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
6186
var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
6207
var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
6230
var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
6257
var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
6282
var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
6320
var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
6350
var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
6384
var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
6418
var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
6453
var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
6488
var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
6528
var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
6568
var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
6611
var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
6652
var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
6697
var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
6739
var comp = CreateCompilation(src, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
Semantics\RecordTests.cs (1)
28224
var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (3)
Diagnostics\Suppression\SuppressionTests.cs (1)
658
// comment", CSharpParseOptions.Default.
WithDocumentationMode
(DocumentationMode.Diagnose));
src\Analyzers\CSharp\Tests\DocumentationComments\AddDocCommentNodesCodeFixProviderTests.cs (1)
33
var parseOptions = Regular.
WithDocumentationMode
(DocumentationMode.Diagnose);
src\Analyzers\CSharp\Tests\DocumentationComments\RemoveDocCommentNodeCodeFixProviderTests.cs (1)
33
var parseOptions = Regular.
WithDocumentationMode
(DocumentationMode.Diagnose);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\LookupPositionTests.cs (1)
3115
var parseOptions = TestOptions.Regular9.
WithDocumentationMode
(DocumentationMode.Diagnose);
Semantics\RecordStructTests.cs (1)
3235
var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
SourceGeneration\GeneratorDriverTests.cs (1)
2516
var newParseOptions = parseOptions.
WithDocumentationMode
(DocumentationMode.Diagnose);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (154)
Compilation\CompilationAPITests.cs (1)
50
options: CSharpParseOptions.Default.
WithDocumentationMode
(DocumentationMode.Diagnose),
Compilation\GetUnusedImportDirectivesTests.cs (1)
487
var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.
WithDocumentationMode
(documentationMode));
Compilation\SemanticModelAPITests.cs (1)
3608
}", CSharpParseOptions.Default.
WithDocumentationMode
(DocumentationMode.Diagnose));
Compilation\UsedAssembliesTests.cs (37)
300
parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.Diagnose));
1097
Compilation comp2 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.None));
1102
Compilation comp3 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.Parse));
1105
Compilation comp4 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.Diagnose));
4012
parseOptions: TestOptions.Script.
WithDocumentationMode
(DocumentationMode.None),
4016
parseOptions: TestOptions.Script.
WithDocumentationMode
(DocumentationMode.Parse),
4023
Compilation comp2 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.None));
4028
Compilation comp3 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.Parse));
4031
Compilation comp4 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.Diagnose));
4126
Compilation comp2 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.None));
4129
Compilation comp3 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.Parse));
4549
AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.None)),
4551
AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.Parse)),
4578
AssertUsedAssemblyReferences(CreateCompilation(source4, references: references, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.None)),
4580
AssertUsedAssemblyReferences(CreateCompilation(source4, references: references, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.Parse)),
4607
parseOptions: TestOptions.Script.
WithDocumentationMode
(DocumentationMode.None),
4611
parseOptions: TestOptions.Script.
WithDocumentationMode
(DocumentationMode.Parse),
4615
parseOptions: TestOptions.Script.
WithDocumentationMode
(DocumentationMode.None),
4619
parseOptions: TestOptions.Script.
WithDocumentationMode
(DocumentationMode.Parse),
4627
Compilation comp2 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.None));
4630
Compilation comp3 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.Parse));
4633
Compilation comp4 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.Diagnose));
4769
AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.None)),
4771
AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.Parse)),
4798
parseOptions: TestOptions.Script.
WithDocumentationMode
(DocumentationMode.None),
4802
parseOptions: TestOptions.Script.
WithDocumentationMode
(DocumentationMode.Parse),
4809
Compilation comp2 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.None));
4812
Compilation comp3 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.Parse));
4815
Compilation comp4 = CreateCompilation(source, references: references, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.Diagnose));
4834
CreateCompilation(source1, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.None)).VerifyDiagnostics(
4851
CreateCompilation(source2, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.None)).VerifyDiagnostics(
4872
CreateCompilation(source1, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.None)).VerifyDiagnostics(
4889
CreateCompilation(source2, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.None)).VerifyDiagnostics(
5939
AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.None)),
5941
AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.Parse)),
5960
AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.None)),
5962
AssertUsedAssemblyReferences(CreateCompilation(source3, references: references, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.Parse)),
DocumentationComments\CrefTests.cs (14)
4417
var tree1 = Parse(source1, options: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.Diagnose).WithLanguageVersion(LanguageVersion.Latest));
4418
var tree2 = Parse(source2, options: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.None).WithLanguageVersion(LanguageVersion.Latest));
6731
verify(CreateCompilation(source, parseOptions: TestOptions.Regular11.
WithDocumentationMode
(DocumentationMode.Diagnose)).VerifyDiagnostics(
6739
verify(CreateCompilation(source, parseOptions: TestOptions.Regular12.
WithDocumentationMode
(DocumentationMode.Diagnose)).VerifyDiagnostics());
6740
verify(CreateCompilation(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose)).VerifyDiagnostics());
6775
verify(CreateCompilation(source, parseOptions: TestOptions.Regular11.
WithDocumentationMode
(DocumentationMode.Diagnose)).VerifyDiagnostics(
6796
verify(CreateCompilation(source, parseOptions: TestOptions.Regular12.
WithDocumentationMode
(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics));
6797
verify(CreateCompilation(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics));
6838
verify(CreateCompilation(source, parseOptions: TestOptions.Regular11.
WithDocumentationMode
(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics));
6839
verify(CreateCompilation(source, parseOptions: TestOptions.Regular12.
WithDocumentationMode
(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics));
6840
verify(CreateCompilation(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics));
6868
verify(CreateCompilation(source, parseOptions: TestOptions.Regular11.
WithDocumentationMode
(DocumentationMode.Diagnose)).VerifyDiagnostics(
6889
verify(CreateCompilation(source, parseOptions: TestOptions.Regular12.
WithDocumentationMode
(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics));
6890
verify(CreateCompilation(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics));
DocumentationComments\DocumentationCommentCompilerTests.cs (1)
4520
var tree = Parse(source, options: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.Parse));
DocumentationComments\DocumentationModeTests.cs (1)
397
return TestOptions.Regular.
WithDocumentationMode
(mode);
DocumentationComments\MethodDocumentationCommentTests.cs (3)
237
var compilation = CreateEmptyCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.Diagnose));
242
compilation = CreateEmptyCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.Parse));
247
compilation = CreateEmptyCompilation(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular.
WithDocumentationMode
(DocumentationMode.None));
Symbols\CheckedUserDefinedOperatorsTests.cs (79)
511
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
519
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.
WithDocumentationMode
(DocumentationMode.Diagnose));
537
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.
WithDocumentationMode
(DocumentationMode.Diagnose));
570
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
601
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
633
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
640
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.
WithDocumentationMode
(DocumentationMode.Diagnose));
657
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.
WithDocumentationMode
(DocumentationMode.Diagnose));
683
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
691
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.
WithDocumentationMode
(DocumentationMode.Diagnose));
709
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.
WithDocumentationMode
(DocumentationMode.Diagnose));
742
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
774
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
806
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
814
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.
WithDocumentationMode
(DocumentationMode.Diagnose));
822
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.
WithDocumentationMode
(DocumentationMode.Diagnose));
855
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
863
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.
WithDocumentationMode
(DocumentationMode.Diagnose));
871
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.
WithDocumentationMode
(DocumentationMode.Diagnose));
1054
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
1061
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.
WithDocumentationMode
(DocumentationMode.Diagnose));
1075
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.
WithDocumentationMode
(DocumentationMode.Diagnose));
1104
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
1111
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.
WithDocumentationMode
(DocumentationMode.Diagnose));
1125
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.
WithDocumentationMode
(DocumentationMode.Diagnose));
1157
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
1164
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.
WithDocumentationMode
(DocumentationMode.Diagnose));
1178
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.
WithDocumentationMode
(DocumentationMode.Diagnose));
1207
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
1214
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.
WithDocumentationMode
(DocumentationMode.Diagnose));
1227
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.
WithDocumentationMode
(DocumentationMode.Diagnose));
1691
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
1699
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.
WithDocumentationMode
(DocumentationMode.Diagnose));
1718
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.
WithDocumentationMode
(DocumentationMode.Diagnose));
1752
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
1784
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
1807
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
1822
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.
WithDocumentationMode
(DocumentationMode.Diagnose));
1840
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.
WithDocumentationMode
(DocumentationMode.Diagnose));
1880
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
1888
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.
WithDocumentationMode
(DocumentationMode.Diagnose));
1896
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.
WithDocumentationMode
(DocumentationMode.Diagnose));
1924
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
1932
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.
WithDocumentationMode
(DocumentationMode.Diagnose));
1950
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.
WithDocumentationMode
(DocumentationMode.Diagnose));
1984
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
2017
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
2049
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
2057
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.
WithDocumentationMode
(DocumentationMode.Diagnose));
2075
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.
WithDocumentationMode
(DocumentationMode.Diagnose));
2108
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
2116
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.
WithDocumentationMode
(DocumentationMode.Diagnose));
2124
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.
WithDocumentationMode
(DocumentationMode.Diagnose));
2272
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
2280
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.
WithDocumentationMode
(DocumentationMode.Diagnose));
2316
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.
WithDocumentationMode
(DocumentationMode.Diagnose));
2366
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
2374
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.
WithDocumentationMode
(DocumentationMode.Diagnose));
2410
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.
WithDocumentationMode
(DocumentationMode.Diagnose));
2850
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
2858
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.
WithDocumentationMode
(DocumentationMode.Diagnose));
2876
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.
WithDocumentationMode
(DocumentationMode.Diagnose));
2906
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
2935
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
2964
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
2993
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
3016
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
3024
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.
WithDocumentationMode
(DocumentationMode.Diagnose));
3042
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.
WithDocumentationMode
(DocumentationMode.Diagnose));
3072
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
3101
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
3130
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
3159
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
3251
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
3258
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.
WithDocumentationMode
(DocumentationMode.Diagnose));
3272
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.
WithDocumentationMode
(DocumentationMode.Diagnose));
3301
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
3308
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.
WithDocumentationMode
(DocumentationMode.Diagnose));
3322
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.
WithDocumentationMode
(DocumentationMode.Diagnose));
Symbols\Source\FileModifierTests.cs (2)
3853
var compilation = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
3880
var compilation = CreateCompilation(new[] { (source, "file1.cs"), (main, "file2.cs") }, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
Symbols\UnsignedRightShiftTests.cs (14)
2702
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
2710
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.
WithDocumentationMode
(DocumentationMode.Diagnose));
2728
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.
WithDocumentationMode
(DocumentationMode.Diagnose));
2758
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
2787
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
2811
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
2851
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
2874
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
2882
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular10.
WithDocumentationMode
(DocumentationMode.Diagnose));
2900
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.
WithDocumentationMode
(DocumentationMode.Diagnose));
2930
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
2959
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
2983
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
3023
var compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (10)
Parsing\CrefParsingTests.cs (6)
1469
UsingNode("A(readonly ref B)", TestOptions.Regular.WithLanguageVersion(languageVersion).
WithDocumentationMode
(DocumentationMode.Diagnose),
1496
UsingNode("A(readonly B)", TestOptions.Regular.WithLanguageVersion(languageVersion).
WithDocumentationMode
(DocumentationMode.Diagnose),
1523
UsingNode("A(in readonly B)", TestOptions.Regular.WithLanguageVersion(languageVersion).
WithDocumentationMode
(DocumentationMode.Diagnose),
1558
UsingNode("A(out readonly B)", TestOptions.Regular.WithLanguageVersion(languageVersion).
WithDocumentationMode
(DocumentationMode.Diagnose),
1593
UsingNode("A(ref readonly readonly B)", TestOptions.Regular.WithLanguageVersion(languageVersion).
WithDocumentationMode
(DocumentationMode.Diagnose),
1632
UsingNode("A(readonly ref B)", TestOptions.Regular.WithLanguageVersion(languageVersion).
WithDocumentationMode
(DocumentationMode.Diagnose),
Parsing\CSharpParseOptionsTests.cs (3)
37
var po2 = po.
WithDocumentationMode
(DocumentationMode.Diagnose);
46
TestProperty((old, value) => old.
WithDocumentationMode
(value), opt => opt.DocumentationMode, DocumentationMode.None);
205
var options = new CSharpParseOptions().
WithDocumentationMode
(unchecked((DocumentationMode)100));
Parsing\MemberDeclarationParsingTests.cs (1)
11920
UsingTree(text, options: CSharpParseOptions.Default.
WithDocumentationMode
(DocumentationMode.Parse),
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
CSharpTestBase.cs (1)
1232
parseOptions = parseOptions != null ? parseOptions.
WithDocumentationMode
(DocumentationMode.Diagnose) : TestOptions.RegularWithDocumentationComments;
TestOptions.cs (2)
46
public static readonly CSharpParseOptions RegularWithDocumentationComments = Regular.
WithDocumentationMode
(DocumentationMode.Diagnose);
47
public static readonly CSharpParseOptions RegularPreviewWithDocumentationComments = RegularPreview.
WithDocumentationMode
(DocumentationMode.Diagnose);
Microsoft.CodeAnalysis.Test.Utilities (1)
CommonTestBase.cs (1)
363
parseOptions = CSharp.CSharpParseOptions.Default.WithLanguageVersion(CSharp.LanguageVersion.Default).
WithDocumentationMode
(DocumentationMode.None);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
232
.
WithDocumentationMode
(documentationMode);