3 writes to DocumentationMode
Microsoft.CodeAnalysis (1)
Compilation\ParseOptions.cs (1)
43this.DocumentationMode = documentationMode;
Microsoft.CodeAnalysis.CSharp (1)
CSharpParseOptions.cs (1)
142return new CSharpParseOptions(this) { DocumentationMode = documentationMode };
Microsoft.CodeAnalysis.VisualBasic (1)
VisualBasicParseOptions.vb (1)
167Return New VisualBasicParseOptions(Me) With {.DocumentationMode = documentationMode}
63 references to DocumentationMode
Microsoft.CodeAnalysis (8)
Compilation\Compilation.cs (2)
1800/// if <see cref="ParseOptions.DocumentationMode"/> is set to <see cref="DocumentationMode.None"/>. 2595return tree.Options.DocumentationMode != DocumentationMode.None;
Compilation\DeterministicKeyBuilder.cs (1)
520writer.Write("documentationMode", parseOptions.DocumentationMode);
Compilation\ParseOptions.cs (5)
87if (!DocumentationMode.IsValid()) 89builder.Add(messageProvider.CreateDiagnostic(messageProvider.ERR_BadDocumentationMode, Location.None, DocumentationMode.ToString())); 143this.DocumentationMode == other.DocumentationMode && 154Hash.Combine((int)this.DocumentationMode,
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
128if (tree is null || tree.Options.DocumentationMode != DocumentationMode.None)
Microsoft.CodeAnalysis.CSharp (9)
Compiler\DocumentationCommentCompiler.cs (1)
697DocumentationMode currDocumentationMode = reference.SyntaxTree.Options.DocumentationMode;
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (1)
104Debug.Assert(sourceIncludeElementNodes.All(syntax => syntax.SyntaxTree.Options.DocumentationMode < DocumentationMode.Diagnose),
CSharpParseOptions.cs (2)
79documentationMode: other.DocumentationMode, 137if (documentationMode == this.DocumentationMode)
DocumentationComments\SourceDocumentationCommentUtils.cs (1)
35if (syntaxNode.SyntaxTree.Options.DocumentationMode < DocumentationMode.Parse)
Parser\DocumentationCommentParser.cs (1)
850return Options.DocumentationMode >= DocumentationMode.Diagnose
Parser\Lexer.cs (2)
138get { return _options.DocumentationMode < DocumentationMode.Parse; } 428if (errors != null && (_options.DocumentationMode >= DocumentationMode.Diagnose || !InDocumentationComment))
Syntax\SyntaxExtensions.cs (1)
179return tree.Options.DocumentationMode >= DocumentationMode.Diagnose;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Parsing\CSharpParseOptionsTests.cs (1)
46TestProperty((old, value) => old.WithDocumentationMode(value), opt => opt.DocumentationMode, DocumentationMode.None);
Microsoft.CodeAnalysis.VisualBasic (6)
Scanner\Scanner.vb (2)
819Return _options.DocumentationMode >= DocumentationMode.Parse AndAlso 1112If looksLikeDocComment AndAlso _options.DocumentationMode >= DocumentationMode.Diagnose Then
Scanner\XmlDocComments.vb (1)
123If Me.Options.DocumentationMode < DocumentationMode.Diagnose Then
Syntax\SyntaxExtensions.vb (1)
15Return tree.Options.DocumentationMode >= DocumentationMode.Diagnose
VisualBasicParseOptions.vb (2)
66documentationMode:=other.DocumentationMode, 163If documentationMode = Me.DocumentationMode Then
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (25)
CommandLineTests.vb (25)
4092Assert.Equal(DocumentationMode.Diagnose, parsedArgs.ParseOptions.DocumentationMode) 4379Assert.Equal(DocumentationMode.Diagnose, parsedArgs.ParseOptions.DocumentationMode) 4385Assert.Equal(DocumentationMode.Diagnose, parsedArgs.ParseOptions.DocumentationMode) 4393Assert.Equal(DocumentationMode.Diagnose, parsedArgs.ParseOptions.DocumentationMode) ' Even though the format was incorrect 4401Assert.Equal(DocumentationMode.Diagnose, parsedArgs.ParseOptions.DocumentationMode) ' Even though the format was incorrect 4408Assert.Equal(DocumentationMode.Diagnose, parsedArgs.ParseOptions.DocumentationMode) ' Even though the format was incorrect 4415Assert.Equal(DocumentationMode.Diagnose, parsedArgs.ParseOptions.DocumentationMode) ' Even though the format was incorrect 4425Assert.Equal(DocumentationMode.Diagnose, parsedArgs.ParseOptions.DocumentationMode) 4430Assert.Equal(DocumentationMode.Diagnose, parsedArgs.ParseOptions.DocumentationMode) 4435Assert.Equal(DocumentationMode.Diagnose, parsedArgs.ParseOptions.DocumentationMode) 4440Assert.Equal(DocumentationMode.None, parsedArgs.ParseOptions.DocumentationMode) 4446Assert.Equal(DocumentationMode.Diagnose, parsedArgs.ParseOptions.DocumentationMode) 4452Assert.Equal(DocumentationMode.None, parsedArgs.ParseOptions.DocumentationMode) 4458Assert.Equal(DocumentationMode.Diagnose, parsedArgs.ParseOptions.DocumentationMode) 4464Assert.Equal(DocumentationMode.Diagnose, parsedArgs.ParseOptions.DocumentationMode) 4470Assert.Equal(DocumentationMode.Diagnose, parsedArgs.ParseOptions.DocumentationMode) 4476Assert.Equal(DocumentationMode.Diagnose, parsedArgs.ParseOptions.DocumentationMode) 4485Assert.Equal(DocumentationMode.Diagnose, parsedArgs.ParseOptions.DocumentationMode) ' Even though the format was incorrect 4492Assert.Equal(DocumentationMode.Diagnose, parsedArgs.ParseOptions.DocumentationMode) 4524Assert.Equal(DocumentationMode.Diagnose, parsedArgs.ParseOptions.DocumentationMode) 4529Assert.Equal(DocumentationMode.None, parsedArgs.ParseOptions.DocumentationMode) 4534Assert.Equal(DocumentationMode.None, parsedArgs.ParseOptions.DocumentationMode) 4539Assert.Equal(DocumentationMode.Diagnose, parsedArgs.ParseOptions.DocumentationMode) 4544Assert.Equal(DocumentationMode.Diagnose, parsedArgs.ParseOptions.DocumentationMode) 4549Assert.Equal(DocumentationMode.Diagnose, parsedArgs.ParseOptions.DocumentationMode)
Microsoft.CodeAnalysis.Workspaces (1)
Serialization\AbstractOptionsSerializationService.cs (1)
194writer.WriteInt32((int)options.DocumentationMode);
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.Worker.cs (1)
344if (parseOptions.DocumentationMode == DocumentationMode.None)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (4)
VisualStudioMSBuildWorkspaceTests.cs (4)
2553Assert.Equal(DocumentationMode.Parse, parseOptions.DocumentationMode); 2571Assert.Equal(DocumentationMode.Diagnose, parseOptions.DocumentationMode); 2589Assert.Equal(DocumentationMode.Parse, csoptions.DocumentationMode); 2597Assert.Equal(DocumentationMode.Diagnose, vboptions.DocumentationMode);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestWorkspace_XmlCreation.cs (1)
139return new XAttribute(DocumentationModeAttributeName, parseOptions.DocumentationMode);
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
SolutionTests\SolutionWithSourceGeneratorTests.cs (2)
509Assert.NotEqual(DocumentationMode.Diagnose, project.ParseOptions!.DocumentationMode); 515Assert.Equal(DocumentationMode.Diagnose, generatedTreeAfterChange!.Options.DocumentationMode);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
ProjectSystemShim\LegacyProject\CSharpCompilerOptionsTests.cs (2)
38Assert.Equal(DocumentationMode.Diagnose, options.DocumentationMode); 52Assert.Equal(DocumentationMode.Parse, options.DocumentationMode);
Microsoft.VisualStudio.LanguageServices.UnitTests (2)
ProjectSystemShim\VisualBasicCompilerOptionsTests.vb (2)
47Assert.Equal(DocumentationMode.Diagnose, options.DocumentationMode) 171Assert.Equal(DocumentationMode.Parse, options.DocumentationMode)