27 references to WithProjectParseOptions
Analyzer.Utilities.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.Features (1)
Microsoft.CodeAnalysis.Features.UnitTests (2)
Microsoft.CodeAnalysis.Workspaces (3)
Microsoft.CodeAnalysis.Workspaces.UnitTests (17)
SolutionTests\SolutionTests.cs (17)
79.AddProject(projectId1, "proj1", "proj1.dll", LanguageNames.CSharp).WithProjectParseOptions(projectId1, parseOptions1)
83.AddProject(projectId2, "proj2", "proj2.dll", LanguageNames.CSharp).WithProjectParseOptions(projectId2, parseOptions2)
273solution = solution.WithProjectParseOptions(projectId, CSharpParseOptions.Default.WithKind(SourceCodeKind.Script));
840.AddProject(projectId1, "proj1", "proj1.dll", LanguageNames.CSharp).WithProjectParseOptions(projectId1, parseOptions1)
842.AddProject(projectId2, "proj2", "proj2.dll", LanguageNames.VisualBasic).WithProjectParseOptions(projectId2, parseOptions2)
1768(s, value) => s.WithProjectParseOptions(projectId, value),
1773Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectParseOptions(null!, options));
1774Assert.Throws<ArgumentNullException>("options", () => solution.WithProjectParseOptions(projectId, options: null!));
1775Assert.Throws<InvalidOperationException>(() => solution.WithProjectParseOptions(ProjectId.CreateNewId(), options));
2361WithProjectParseOptions(projectId, new CSharpParseOptions(kind: SourceCodeKind.Script));
2387WithProjectParseOptions(projectId, new CSharpParseOptions(kind: SourceCodeKind.Script));
2417WithProjectParseOptions(projectId, new CSharpParseOptions(kind: SourceCodeKind.Script));
2469WithProjectParseOptions(projectId, new CSharpParseOptions(kind: SourceCodeKind.Script));
2498WithProjectParseOptions(projectId, new CSharpParseOptions(kind: SourceCodeKind.Script));
2532WithProjectParseOptions(projectId, new CSharpParseOptions(kind: SourceCodeKind.Script));
3073solution = solution.WithProjectParseOptions(project1, newParseOptions);
4458currentSolution = currentSolution.WithProjectParseOptions(document1.Project.Id, options.WithPreprocessorSymbols("X"));
Microsoft.ML.CodeAnalyzer.Tests (1)