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