12 references to CompilationInformation
Microsoft.CodeAnalysis.ResxSourceGenerator (12)
AbstractResxGenerator.cs (12)
356
switch (
CompilationInformation
.CodeLanguage)
367
LogError(Lang.CSharp, $"GenerateResxSource doesn't support language: '{
CompilationInformation
.CodeLanguage}'");
441
if (
CompilationInformation
.SupportsNullable)
445
if (!ResourceInformation.IncludeDefaultValues || !
CompilationInformation
.HasNotNullIfNotNull)
459
RenderFormatMethod(memberIndent, language,
CompilationInformation
.SupportsNullable, strings, resourceString);
504
if (
CompilationInformation
.HasAggressiveInlining)
509
if (
CompilationInformation
.HasNotNullIfNotNull)
515
{{memberIndent}}public static global::System.Globalization.CultureInfo{{(
CompilationInformation
.SupportsNullable ? "?" : "")}} Culture { get; set; }
517
{{memberIndent}}internal static {{(
CompilationInformation
.SupportsNullable ? "string?" : "string")}} GetResourceString(string resourceKey, {{(
CompilationInformation
.SupportsNullable ? "string?" : "string")}} defaultValue = null) => ResourceManager.GetString(resourceKey, Culture) ?? defaultValue;
674
{{(
CompilationInformation
.SupportsNullable ? "#nullable enable" : "")}}
681
{{memberIndent}}private static global::System.Resources.ResourceManager{{(
CompilationInformation
.SupportsNullable ? "?" : "")}} s_resourceManager;