12 references to CompilationInformation
Microsoft.CodeAnalysis.ResxSourceGenerator (12)
AbstractResxGenerator.cs (12)
353
switch (
CompilationInformation
.CodeLanguage)
364
LogError(Lang.CSharp, $"GenerateResxSource doesn't support language: '{
CompilationInformation
.CodeLanguage}'");
437
if (
CompilationInformation
.SupportsNullable)
441
if (!ResourceInformation.IncludeDefaultValues || !
CompilationInformation
.HasNotNullIfNotNull)
455
RenderFormatMethod(memberIndent, language,
CompilationInformation
.SupportsNullable, strings, resourceString);
498
if (
CompilationInformation
.HasAggressiveInlining)
503
if (
CompilationInformation
.HasNotNullIfNotNull)
508
getStringMethod = $@"{memberIndent}public static global::System.Globalization.CultureInfo{(
CompilationInformation
.SupportsNullable ? "?" : "")} Culture {{ get; set; }}
510
{memberIndent}internal static {(
CompilationInformation
.SupportsNullable ? "string?" : "string")} GetResourceString(string resourceKey, {(
CompilationInformation
.SupportsNullable ? "string?" : "string")} defaultValue = null) => ResourceManager.GetString(resourceKey, Culture) ?? defaultValue;";
657
{(
CompilationInformation
.SupportsNullable ? "#nullable enable" : "")}
664
{memberIndent}private static global::System.Resources.ResourceManager{(
CompilationInformation
.SupportsNullable ? "?" : "")} s_resourceManager;