14 references to WithParseOptions
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
SignatureHelp\AbstractSignatureHelpProviderTests.cs (2)
101document1 = document1.Project.WithParseOptions(parseOptions).GetDocument(document1.Id); 112document2 = document2.Project.WithParseOptions(parseOptions).GetDocument(document2.Id);
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\RemoteWorkspace.SolutionCreator.cs (1)
225project = project.WithParseOptions(await _assetProvider.GetAssetAsync<ParseOptions>(newProjectChecksums.ParseOptions, cancellationToken).ConfigureAwait(false));
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Workspace.cs (1)
1834var newProjectForAssert = oldProject.WithParseOptions(options);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Formatting\FormattingTestBase.cs (1)
51project = project.WithParseOptions(parseOptions);
Microsoft.CodeAnalysis.Workspaces.UnitTests (7)
CodeCleanup\RemoveUnnecessaryLineContinuationTests.cs (1)
1396project = project.WithParseOptions(parseOptions);
SolutionTests\SolutionTests.cs (2)
1290document = document.Project.WithParseOptions(new CSharpParseOptions(languageVersion: CS.LanguageVersion.CSharp1)).GetRequiredDocument(documentId); 1333document = document.Project.WithParseOptions(newOptions).GetRequiredDocument(documentId);
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
491project = project.WithParseOptions(project.ParseOptions.WithDocumentationMode(DocumentationMode.Diagnose));
SolutionTests\TryApplyChangesTests.cs (3)
123project.WithParseOptions( 139project.WithParseOptions(project.ParseOptions!.WithFeatures(new[] { KeyValuePairUtil.Create("Feature", "ExpectedValue") })).Solution)); 154project.WithParseOptions(project.ParseOptions!.WithFeatures(new[] { KeyValuePairUtil.Create("Feature", "WrongThing") })).Solution));
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpEditorFactory.cs (1)
39return project.WithParseOptions(parseOptions.WithLanguageVersion(langVersion));
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
LanguageService\VisualBasicEditorFactory.vb (1)
45Return project.WithParseOptions(parseOptions.WithLanguageVersion(langVersion))