66 references to ParseOptions
Microsoft.CodeAnalysis.CodeStyle.Fixes (6)
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceCodeFixProvider.cs (1)
130var supportsImplicitImplementationOfNonPublicInterfaceMembers = syntaxFacts.SupportsImplicitImplementationOfNonPublicInterfaceMembers(document.Project.ParseOptions!);
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceService.cs (2)
110var supportsImplementingLessAccessibleMember = syntaxFacts.SupportsImplicitImplementationOfNonPublicInterfaceMembers(document.Project.ParseOptions!); 116generateInvisibly: generator.ShouldGenerateInvisibleMember(document.Project.ParseOptions!, interfaceMember, interfaceMember.Name, supportsImplementingLessAccessibleMember),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationOptionsProviders.cs (2)
43Contract.ThrowIfNull(document.Project.ParseOptions); 47return service.GetInfo(context, options, document.Project.ParseOptions);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
199rewriter.Initialize(document.Project.ParseOptions, options, cancellationToken);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\UpgradeProject\CSharpUpgradeProjectCodeFixProvider.cs (2)
93var parseOptions = (CSharpParseOptions)project.ParseOptions!; 108var parseOptions = (CSharpParseOptions)project.ParseOptions!;
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (1)
268var parseOptions = project.ParseOptions;
Microsoft.CodeAnalysis.CSharp.Features (5)
AddDebuggerDisplay\CSharpAddDebuggerDisplayCodeRefactoringProvider.cs (1)
25=> document.Project.ParseOptions!.LanguageVersion().HasConstantInterpolatedStrings();
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (1)
64ParseOptions: CSharpParseOptions { LanguageVersion: >= LanguageVersion.CSharp8 },
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (1)
102var languageVersion = document.Project.ParseOptions!.LanguageVersion();
src\Analyzers\CSharp\CodeFixes\UpgradeProject\CSharpUpgradeProjectCodeFixProvider.cs (2)
93var parseOptions = (CSharpParseOptions)project.ParseOptions!; 108var parseOptions = (CSharpParseOptions)project.ParseOptions!;
Microsoft.CodeAnalysis.EditorFeatures (3)
Classification\Syntactic\SyntacticClassificationTaggerProvider.TagComputer.cs (3)
300if (Equals(oldProject?.ParseOptions, newProject?.ParseOptions)) 481if (_lineCache.TryUseCache(lastProcessedDocument.Id, lastProcessedDocument.Project.ParseOptions, span, classifiedSpans))
Microsoft.CodeAnalysis.Features (5)
ExtractMethod\MethodExtractor.CodeGenerator.cs (1)
151document.Project.ParseOptions);
MetadataAsSource\MetadataAsSourceGeneratedFileInfo.cs (1)
36? sourceProject.ParseOptions
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceCodeFixProvider.cs (1)
130var supportsImplicitImplementationOfNonPublicInterfaceMembers = syntaxFacts.SupportsImplicitImplementationOfNonPublicInterfaceMembers(document.Project.ParseOptions!);
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceService.cs (2)
110var supportsImplementingLessAccessibleMember = syntaxFacts.SupportsImplicitImplementationOfNonPublicInterfaceMembers(document.Project.ParseOptions!); 116generateInvisibly: generator.ShouldGenerateInvisibleMember(document.Project.ParseOptions!, interfaceMember, interfaceMember.Name, supportsImplementingLessAccessibleMember),
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Completion\CompletionProviders\NamedParameterCompletionProvider.vb (1)
70Dim languageVersion = DirectCast(document.Project.ParseOptions, VisualBasicParseOptions).LanguageVersion
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeCleanup\Providers\RemoveUnnecessaryLineContinuationCodeCleanupProvider.vb (1)
34Dim parseOptions = TryCast(document.Project.ParseOptions, VisualBasicParseOptions)
Microsoft.CodeAnalysis.Workspaces (13)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationOptionsProviders.cs (2)
43Contract.ThrowIfNull(document.Project.ParseOptions); 47return service.GetInfo(context, options, document.Project.ParseOptions);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
199rewriter.Initialize(document.Project.ParseOptions, options, cancellationToken);
Workspace\Workspace.cs (10)
1727projectChanges.OldProject.ParseOptions != projectChanges.NewProject.ParseOptions && 1728!CanApplyParseOptionChange(projectChanges.OldProject.ParseOptions!, projectChanges.NewProject.ParseOptions!, projectChanges.NewProject)) 1843/// Called during a call to <see cref="TryApplyChanges(Solution)"/> to determine if a specific change to <see cref="Project.ParseOptions"/> is allowed. 1879if (projectChanges.OldProject.ParseOptions != projectChanges.NewProject.ParseOptions) 1881this.ApplyParseOptionsChanged(projectChanges.ProjectId, projectChanges.NewProject.ParseOptions!); 2033project.ParseOptions, 2110CanApplyParseOptionChange(oldProject.ParseOptions!, options, newProjectForAssert));
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (15)
MSBuildWorkspaceTestBase.cs (2)
71return (CS.CSharpParseOptions)project.ParseOptions; 89return (VB.VisualBasicParseOptions)project.ParseOptions;
VisualStudioMSBuildWorkspaceTests.cs (13)
701Assert.Equal(VB.LanguageVersion.VisualBasic15_3, ((VB.VisualBasicParseOptions)project.ParseOptions).LanguageVersion); 714Assert.Equal(VB.LanguageVersionFacts.MapSpecifiedToEffectiveVersion(VB.LanguageVersion.Latest), ((VB.VisualBasicParseOptions)project.ParseOptions).LanguageVersion); 715Assert.Equal(VB.LanguageVersion.Latest, ((VB.VisualBasicParseOptions)project.ParseOptions).SpecifiedLanguageVersion); 1656var options = project.ParseOptions; 1863var options = (VB.VisualBasicParseOptions)project.ParseOptions; 1897var options = (VB.VisualBasicParseOptions)project.ParseOptions; 1920var options = (VB.VisualBasicParseOptions)project.ParseOptions; 1944var options = project.ParseOptions; 1967var options = project.ParseOptions; 2552var parseOptions = (CS.CSharpParseOptions)project.ParseOptions; 2570var parseOptions = (VB.VisualBasicParseOptions)project.ParseOptions; 2588var csoptions = (CS.CSharpParseOptions)csproject.ParseOptions; 2596var vboptions = (VB.VisualBasicParseOptions)vbproject.ParseOptions;
Microsoft.CodeAnalysis.Workspaces.UnitTests (10)
SolutionTests\SolutionTests.cs (4)
3045var oldParseOptions = solution.GetProject(project1).ParseOptions; 3048var newUpdatedParseOptions = solution.GetProject(project1).ParseOptions; 4416var options = (CSharpParseOptions)document1.Project.ParseOptions; 4554var strongTree = factory.ParseSyntaxTree("dummy", dummyProject.ParseOptions, text, CancellationToken.None);
SolutionTests\SolutionWithSourceGeneratorTests.cs (2)
509Assert.NotEqual(DocumentationMode.Diagnose, project.ParseOptions!.DocumentationMode); 510project = project.WithParseOptions(project.ParseOptions.WithDocumentationMode(DocumentationMode.Diagnose));
SolutionTests\TryApplyChangesTests.cs (3)
124project.ParseOptions!.WithFeatures([KeyValuePairUtil.Create("Feature", "")])).Solution)); 139project.WithParseOptions(project.ParseOptions!.WithFeatures([KeyValuePairUtil.Create("Feature", "ExpectedValue")])).Solution)); 154project.WithParseOptions(project.ParseOptions!.WithFeatures([KeyValuePairUtil.Create("Feature", "WrongThing")])).Solution));
WorkspaceTests\AdhocWorkspaceTests.cs (1)
386var parseOptions = proj.ParseOptions as CS.CSharpParseOptions;
Microsoft.ML.CodeAnalyzer.Tests (2)
Code\BestFriendTest.cs (1)
69projectA = projectA.WithParseOptions(((CSharpParseOptions)projectA.ParseOptions).WithLanguageVersion(LanguageVersion.CSharp7_2));
Helpers\CSharpCodeFixVerifier`2.cs (1)
72var parseOptions = (CSharpParseOptions)solution.GetProject(projectId).ParseOptions;
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpEditorFactory.cs (1)
33if (project.ParseOptions is CSharpParseOptions parseOptions &&
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
LanguageService\VisualBasicEditorFactory.vb (1)
28Dim parseOptions = TryCast(project.ParseOptions, VisualBasicParseOptions)