Base:
property
PreprocessorSymbolNames
Microsoft.CodeAnalysis.ParseOptions.PreprocessorSymbolNames
16 references to PreprocessorSymbolNames
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (2)
CSharpCompilerTest.cs (2)
83Assert.Equal(new[] { expectedConfiguration }, parseOptions.PreprocessorSymbolNames); 126Assert.Equal(new[] { "DEBUG" }, parseOptions.PreprocessorSymbolNames);
Microsoft.CodeAnalysis.CSharp (1)
Compilation\CSharpCompilation.cs (1)
4785return firstTree.Options.PreprocessorSymbolNames.ToImmutableArray();
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (9)
CommandLineTests.cs (9)
1901Assert.Equal(0, parsedArgs.ParseOptions.PreprocessorSymbolNames.Count()); 1905Assert.Equal(1, parsedArgs.ParseOptions.PreprocessorSymbolNames.Count()); 1906Assert.Contains("GOO", parsedArgs.ParseOptions.PreprocessorSymbolNames); 1910Assert.Equal(3, parsedArgs.ParseOptions.PreprocessorSymbolNames.Count()); 1911Assert.Contains("GOO", parsedArgs.ParseOptions.PreprocessorSymbolNames); 1912Assert.Contains("BAR", parsedArgs.ParseOptions.PreprocessorSymbolNames); 1913Assert.Contains("ZIP", parsedArgs.ParseOptions.PreprocessorSymbolNames); 1917Assert.Equal(1, parsedArgs.ParseOptions.PreprocessorSymbolNames.Count()); 1918Assert.Contains("GOO", parsedArgs.ParseOptions.PreprocessorSymbolNames);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\CSharpDeterministicBuildCompilationTests.cs (1)
50pdbOptions.VerifyPdbOption("define", firstSyntaxTree.Options.PreprocessorSymbolNames, isDefault: v => v.IsEmpty(), toString: v => string.Join(",", v));
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Workspace\LanguageServices\CSharpSyntaxTreeFactoryService.cs (1)
55return csharpOptions1.WithPreprocessorSymbols(csharpOptions2.PreprocessorSymbolNames) == csharpOptions2;
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
VisualStudioMSBuildWorkspaceTests.cs (2)
1637await AssertCSParseOptionsAsync("DEBUG,TRACE,X,Y", options => string.Join(",", options.PreprocessorSymbolNames)); 1644await AssertCSParseOptionsAsync("DEBUG,TRACE", options => string.Join(",", options.PreprocessorSymbolNames));