using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using Microsoft.CodeAnalysis;
using MonoMod.Utils;
using UnityEngine;
using YAPYAP;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: IgnoresAccessChecksTo("Assembly-CSharp")]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("darmuh")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyDescription("Utility Mod for YAPYAP that allows modders to easily add localized text and voice phrases.")]
[assembly: AssemblyFileVersion("0.1.2.0")]
[assembly: AssemblyInformationalVersion("0.1.2+2adbeb433a1af663450fb55cf09e813e475a7c66")]
[assembly: AssemblyProduct("com.github.darmuh.yaplocalizer")]
[assembly: AssemblyTitle("YAPLocalizer")]
[assembly: AssemblyMetadata("RepositoryUrl", "https://github.com/darmuh/YapLocalizer")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.1.2.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)]
internal sealed class NullableAttribute : Attribute
{
public readonly byte[] NullableFlags;
public NullableAttribute(byte P_0)
{
NullableFlags = new byte[1] { P_0 };
}
public NullableAttribute(byte[] P_0)
{
NullableFlags = P_0;
}
}
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)]
internal sealed class NullableContextAttribute : Attribute
{
public readonly byte Flag;
public NullableContextAttribute(byte P_0)
{
Flag = P_0;
}
}
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
internal sealed class RefSafetyRulesAttribute : Attribute
{
public readonly int Version;
public RefSafetyRulesAttribute(int P_0)
{
Version = P_0;
}
}
}
namespace BepInEx
{
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
[Conditional("CodeGeneration")]
internal sealed class BepInAutoPluginAttribute : Attribute
{
public BepInAutoPluginAttribute(string? id = null, string? name = null, string? version = null)
{
}
}
}
namespace BepInEx.Preloader.Core.Patching
{
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
[Conditional("CodeGeneration")]
internal sealed class PatcherAutoPluginAttribute : Attribute
{
public PatcherAutoPluginAttribute(string? id = null, string? name = null, string? version = null)
{
}
}
}
namespace YapLocalizer
{
public class ModLocalizedPhrase
{
internal static Dictionary<string, ModLocalizedPhrase> ModLocalizedPhraseLookup = new Dictionary<string, ModLocalizedPhrase>();
public string LocalizationKey = string.Empty;
public string[] DefaultPhrase = Array.Empty<string>();
internal Dictionary<SystemLanguage, string[]> TranslatedPhrases = new Dictionary<SystemLanguage, string[]>();
internal bool LocalizationExists => TranslatedPhrases.Count > 0;
public ModLocalizedPhrase(string localizationKey, string[] defaultCommands)
{
List<string> list = new List<string>();
foreach (string text in defaultCommands)
{
list.Add(text.ToUpperInvariant());
}
if (ModLocalizedPhraseLookup.ContainsKey(localizationKey))
{
Plugin.Log.LogWarning((object)("WARNING: Unable to override existing modded phrase localization key - " + localizationKey));
return;
}
DefaultPhrase = list.ToArray();
LocalizationKey = localizationKey;
ModLocalizedPhraseLookup.Add(LocalizationKey, this);
}
public ModLocalizedPhrase AddLocalization(SystemLanguage language, string[] localizedPhrase)
{
//IL_002c: Unknown result type (might be due to invalid IL or missing references)
//IL_0044: Unknown result type (might be due to invalid IL or missing references)
List<string> list = new List<string>();
foreach (string text in localizedPhrase)
{
list.Add(text.ToUpperInvariant());
}
if (!TranslatedPhrases.TryAdd(language, list.ToArray()))
{
Plugin.Log.LogWarning((object)$"Unable to add {language} translation for key {LocalizationKey}");
}
return this;
}
public void UpdateLocalization(SystemLanguage language, string[] localizedPhrase)
{
//IL_002c: Unknown result type (might be due to invalid IL or missing references)
//IL_0055: Unknown result type (might be due to invalid IL or missing references)
//IL_008a: Unknown result type (might be due to invalid IL or missing references)
List<string> list = new List<string>();
foreach (string text in localizedPhrase)
{
list.Add(text.ToUpperInvariant());
}
if (!TranslatedPhrases.TryAdd(language, list.ToArray()))
{
Plugin.Log.LogMessage((object)("Overriding existing localized phrase (" + TranslatedPhrases[language].PhraseToString() + ") with new localized phrase (" + localizedPhrase.PhraseToString() + ")"));
TranslatedPhrases[language] = list.ToArray();
}
}
public void UpdateGameLocalization(SystemLanguage language)
{
//IL_001f: Unknown result type (might be due to invalid IL or missing references)
//IL_0069: Unknown result type (might be due to invalid IL or missing references)
//IL_008c: Unknown result type (might be due to invalid IL or missing references)
//IL_0039: Unknown result type (might be due to invalid IL or missing references)
//IL_0052: Unknown result type (might be due to invalid IL or missing references)
VoiceManager service = default(VoiceManager);
string[] value;
if (!Service.Get<VoiceManager>(ref service))
{
Plugin.Log.LogWarning((object)"UpdateGameLocalization: Unable to get VoiceManager service!");
}
else if (TranslatedPhrases.TryGetValue(language, out value))
{
Plugin.Log.LogInfo((object)$"Adding custom localization for {LocalizationKey} in Language {language} - {value.PhraseToString()}");
AddRecognizedPhrase(service, value, language);
}
else
{
Plugin.Log.LogInfo((object)$"No custom localization for {LocalizationKey} found in Language {language}\nSetting to DefaultPhrase - {DefaultPhrase.PhraseToString()}");
AddRecognizedPhrase(service, DefaultPhrase, language);
}
}
internal static void AddLocalizationsAsRecognizedPhrases()
{
//IL_004e: Unknown result type (might be due to invalid IL or missing references)
VoiceManager val = default(VoiceManager);
if (!Service.Get<VoiceManager>(ref val))
{
Plugin.Log.LogWarning((object)"Unable to get VoiceManager service!");
return;
}
foreach (KeyValuePair<string, ModLocalizedPhrase> item in ModLocalizedPhraseLookup)
{
foreach (VoskLocalisation voskLocalisation in val.VoskLocalisations)
{
item.Value.UpdateGameLocalization(voskLocalisation.Language);
}
}
}
internal void AddRecognizedPhrase(VoiceManager service, string[] phrase, SystemLanguage language)
{
//IL_0027: Unknown result type (might be due to invalid IL or missing references)
//IL_00b2: Unknown result type (might be due to invalid IL or missing references)
//IL_0175: Unknown result type (might be due to invalid IL or missing references)
//IL_017c: Expected O, but got Unknown
//IL_0182: Unknown result type (might be due to invalid IL or missing references)
//IL_01bb: Unknown result type (might be due to invalid IL or missing references)
string text = phrase.PhraseToString();
Plugin.Log.LogDebug((object)("AddRecognizedPhrase " + LocalizationKey));
if (!service._voskTranslatorLookup.TryGetValue(language, out var value))
{
return;
}
bool flag = service._defaultTranslator == value;
bool flag2 = service._currentVoskTranslator == value;
Plugin.Log.LogDebug((object)$"Working on translator isDefault - {flag} isCurrent - {flag2}");
Dictionary<string, string[]> dictionary = new Dictionary<string, string[]>();
Extensions.AddRange<string, string[]>(dictionary, value._commands);
if (dictionary.TryGetValue(LocalizationKey, out var value2))
{
Plugin.Log.LogMessage((object)$"Replacing commands ({value2.PhraseToString()}) for {LocalizationKey} in language {language} with modded phrase - {text}");
dictionary[LocalizationKey] = phrase;
}
else
{
Plugin.Log.LogInfo((object)("Adding modded phrase (" + text + ") to key - " + LocalizationKey));
}
List<string> list = value._grammar.ToList();
foreach (string word in phrase)
{
if (!list.Any((string x) => x.Equals(word, StringComparison.InvariantCultureIgnoreCase)))
{
list.Add(word);
Plugin.Log.LogDebug((object)("Added recognized word - " + word));
}
}
VoskTranslator val = new VoskTranslator(dictionary, list.ToArray());
service._voskTranslatorLookup[language] = val;
if (flag)
{
service._defaultTranslator = val;
}
if (flag2)
{
service._currentVoskTranslator = val;
if (service.Vosk._didInit && !service.Vosk._isInitializing)
{
service.SetLanguage(language);
}
}
}
public string[] GetLocalized(SystemLanguage language)
{
//IL_000e: Unknown result type (might be due to invalid IL or missing references)
if (!LocalizationExists || !TranslatedPhrases.TryGetValue(language, out string[] value))
{
return DefaultPhrase;
}
return value;
}
public static bool TryGetExistingKey(string key, out ModLocalizedPhrase phrase)
{
if (ModLocalizedPhraseLookup.TryGetValue(key, out phrase))
{
return true;
}
return false;
}
}
public class ModLocalizedText
{
internal static Dictionary<string, ModLocalizedText> ModLocalizationKeyLookup = new Dictionary<string, ModLocalizedText>();
public string LocalizationKey = string.Empty;
public string FallbackResult = string.Empty;
internal Dictionary<SystemLanguage, string> ItemTranslations = new Dictionary<SystemLanguage, string>();
internal bool LocalizationExists => ItemTranslations.Count > 0;
public ModLocalizedText(string localizationKey, string fallbackResult = "")
{
if (ModLocalizationKeyLookup.ContainsKey(localizationKey))
{
Plugin.Log.LogWarning((object)("WARNING: Unable to override existing modded text localization key - " + localizationKey));
return;
}
if (!string.IsNullOrWhiteSpace(fallbackResult))
{
FallbackResult = fallbackResult;
}
else
{
FallbackResult = localizationKey;
}
LocalizationKey = localizationKey;
ModLocalizationKeyLookup.Add(LocalizationKey, this);
}
public ModLocalizedText SetLocalization(SystemLanguage language, string localizedText)
{
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
//IL_0019: Unknown result type (might be due to invalid IL or missing references)
if (!ItemTranslations.TryAdd(language, localizedText))
{
Plugin.Log.LogWarning((object)$"Unable to add {language} translation for key {LocalizationKey}");
}
return this;
}
public void UpdateLocalization(SystemLanguage language, string localizedText)
{
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
//IL_0015: Unknown result type (might be due to invalid IL or missing references)
if (!ItemTranslations.TryAdd(language, localizedText))
{
ItemTranslations[language] = localizedText;
}
}
public string GetLocalized(SystemLanguage language)
{
//IL_000e: Unknown result type (might be due to invalid IL or missing references)
if (!LocalizationExists || !ItemTranslations.TryGetValue(language, out string value))
{
return FallbackResult;
}
return value;
}
public bool HasLocal(SystemLanguage language, string value)
{
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
if (ItemTranslations.TryGetValue(language, out string value2))
{
return value2.Equals(value, StringComparison.OrdinalIgnoreCase);
}
return false;
}
}
[BepInPlugin("com.github.darmuh.yaplocalizer", "YAPLocalizer", "0.1.2")]
internal class Plugin : BaseUnityPlugin
{
[HarmonyPatch(typeof(VoiceManager), "LoadLocalisationData")]
internal class HookVoiceManager
{
public static void Postfix()
{
Log.LogDebug((object)"Adding modded phrases");
ModLocalizedPhrase.AddLocalizationsAsRecognizedPhrases();
}
}
[HarmonyPatch(typeof(Translator), "Translate", new Type[]
{
typeof(string),
typeof(Object)
})]
internal class LocalizeModdedText
{
public static bool Prefix(Translator __instance, string key, ref string __result)
{
//IL_0020: Unknown result type (might be due to invalid IL or missing references)
if (ModLocalizedText.ModLocalizationKeyLookup.Count == 0)
{
return true;
}
if (ModLocalizedText.ModLocalizationKeyLookup.TryGetValue(key, out ModLocalizedText value))
{
__result = value.GetLocalized(__instance.Language);
return false;
}
return true;
}
}
[HarmonyPatch(typeof(VoiceManager), "TryGetVoiceCommand")]
internal class LocalizeModdedVoice
{
public static bool Prefix(VoiceManager __instance, string key, ref bool __result, out string[] command)
{
//IL_005b: Unknown result type (might be due to invalid IL or missing references)
Log.LogDebug((object)("TryGetVoiceCommand - Checking key " + key));
command = Array.Empty<string>();
if (ModLocalizedPhrase.ModLocalizedPhraseLookup.Count == 0)
{
return true;
}
if (ModLocalizedPhrase.ModLocalizedPhraseLookup.TryGetValue(key, out ModLocalizedPhrase value))
{
Log.LogDebug((object)("Returning command for modded localized phrase with key " + value.LocalizationKey));
command = value.GetLocalized(__instance.CurrentVoskLocalisation.Language);
__result = true;
return false;
}
return true;
}
}
public const string Id = "com.github.darmuh.yaplocalizer";
internal static ManualLogSource Log { get; private set; }
public static string Name => "YAPLocalizer";
public static string Version => "0.1.2";
private void Awake()
{
Log = ((BaseUnityPlugin)this).Logger;
Log.LogDebug((object)(Name + " startup..."));
Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), (string)null);
Log.LogInfo((object)("Plugin " + Name + " is loaded!"));
}
}
internal class Testing
{
internal static void TestPhrase()
{
ModLocalizedPhrase modLocalizedPhrase = new ModLocalizedPhrase("SPELL_BAS_UPDOG", new string[2] { "up", "ease" }).AddLocalization((SystemLanguage)21, new string[2] { "cane", "alto" });
}
internal static void TestText()
{
ModLocalizedText modLocalizedText = new ModLocalizedText("TEST_LOCAL_KEY").SetLocalization((SystemLanguage)10, "Test");
ModLocalizedText modLocalizedText2 = new ModLocalizedText("TEST2_KEY");
Plugin.Log.LogMessage((object)modLocalizedText.HasLocal((SystemLanguage)10, "test"));
Plugin.Log.LogMessage((object)modLocalizedText.HasLocal((SystemLanguage)10, "no test"));
Plugin.Log.LogMessage((object)modLocalizedText.HasLocal((SystemLanguage)21, "test"));
Plugin.Log.LogMessage((object)modLocalizedText2.HasLocal((SystemLanguage)10, "test"));
}
}
public static class UtilExtensions
{
public static string PhraseToString(this string[] phrase)
{
return string.Join(" ", phrase);
}
public static string[] StringToPhrase(this string value)
{
return value.Split(' ', StringSplitOptions.RemoveEmptyEntries);
}
public static string SafeCommandString(this string input)
{
string text = string.Empty;
for (int i = 0; i < input.Length; i++)
{
char c = input[i];
if (char.IsLetter(c) || c == ' ')
{
text += c;
}
}
return text;
}
}
}
namespace System.Diagnostics.CodeAnalysis
{
[AttributeUsage(AttributeTargets.Parameter, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class ConstantExpectedAttribute : Attribute
{
public object? Min { get; set; }
public object? Max { get; set; }
}
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Delegate, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class ExperimentalAttribute : Attribute
{
public string DiagnosticId { get; }
public string? UrlFormat { get; set; }
public ExperimentalAttribute(string diagnosticId)
{
DiagnosticId = diagnosticId;
}
}
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property, Inherited = false, AllowMultiple = true)]
[ExcludeFromCodeCoverage]
internal sealed class MemberNotNullAttribute : Attribute
{
public string[] Members { get; }
public MemberNotNullAttribute(string member)
{
Members = new string[1] { member };
}
public MemberNotNullAttribute(params string[] members)
{
Members = members;
}
}
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property, Inherited = false, AllowMultiple = true)]
[ExcludeFromCodeCoverage]
internal sealed class MemberNotNullWhenAttribute : Attribute
{
public bool ReturnValue { get; }
public string[] Members { get; }
public MemberNotNullWhenAttribute(bool returnValue, string member)
{
ReturnValue = returnValue;
Members = new string[1] { member };
}
public MemberNotNullWhenAttribute(bool returnValue, params string[] members)
{
ReturnValue = returnValue;
Members = members;
}
}
[AttributeUsage(AttributeTargets.Constructor, AllowMultiple = false, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class SetsRequiredMembersAttribute : Attribute
{
}
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class StringSyntaxAttribute : Attribute
{
public const string CompositeFormat = "CompositeFormat";
public const string DateOnlyFormat = "DateOnlyFormat";
public const string DateTimeFormat = "DateTimeFormat";
public const string EnumFormat = "EnumFormat";
public const string GuidFormat = "GuidFormat";
public const string Json = "Json";
public const string NumericFormat = "NumericFormat";
public const string Regex = "Regex";
public const string TimeOnlyFormat = "TimeOnlyFormat";
public const string TimeSpanFormat = "TimeSpanFormat";
public const string Uri = "Uri";
public const string Xml = "Xml";
public string Syntax { get; }
public object?[] Arguments { get; }
public StringSyntaxAttribute(string syntax)
{
Syntax = syntax;
Arguments = new object[0];
}
public StringSyntaxAttribute(string syntax, params object?[] arguments)
{
Syntax = syntax;
Arguments = arguments;
}
}
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class UnscopedRefAttribute : Attribute
{
}
}
namespace System.Runtime.Versioning
{
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Delegate, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class RequiresPreviewFeaturesAttribute : Attribute
{
public string? Message { get; }
public string? Url { get; set; }
public RequiresPreviewFeaturesAttribute()
{
}
public RequiresPreviewFeaturesAttribute(string? message)
{
Message = message;
}
}
}
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
internal sealed class IgnoresAccessChecksToAttribute : Attribute
{
public IgnoresAccessChecksToAttribute(string assemblyName)
{
}
}
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class CallerArgumentExpressionAttribute : Attribute
{
public string ParameterName { get; }
public CallerArgumentExpressionAttribute(string parameterName)
{
ParameterName = parameterName;
}
}
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class CollectionBuilderAttribute : Attribute
{
public Type BuilderType { get; }
public string MethodName { get; }
public CollectionBuilderAttribute(Type builderType, string methodName)
{
BuilderType = builderType;
MethodName = methodName;
}
}
[AttributeUsage(AttributeTargets.All, AllowMultiple = true, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class CompilerFeatureRequiredAttribute : Attribute
{
public const string RefStructs = "RefStructs";
public const string RequiredMembers = "RequiredMembers";
public string FeatureName { get; }
public bool IsOptional { get; set; }
public CompilerFeatureRequiredAttribute(string featureName)
{
FeatureName = featureName;
}
}
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class InterpolatedStringHandlerArgumentAttribute : Attribute
{
public string[] Arguments { get; }
public InterpolatedStringHandlerArgumentAttribute(string argument)
{
Arguments = new string[1] { argument };
}
public InterpolatedStringHandlerArgumentAttribute(params string[] arguments)
{
Arguments = arguments;
}
}
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = false, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class InterpolatedStringHandlerAttribute : Attribute
{
}
[EditorBrowsable(EditorBrowsableState.Never)]
[ExcludeFromCodeCoverage]
internal static class IsExternalInit
{
}
[AttributeUsage(AttributeTargets.Method, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class ModuleInitializerAttribute : Attribute
{
}
[AttributeUsage(AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class OverloadResolutionPriorityAttribute : Attribute
{
public int Priority { get; }
public OverloadResolutionPriorityAttribute(int priority)
{
Priority = priority;
}
}
[AttributeUsage(AttributeTargets.Parameter, Inherited = true, AllowMultiple = false)]
[ExcludeFromCodeCoverage]
internal sealed class ParamCollectionAttribute : Attribute
{
}
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class RequiredMemberAttribute : Attribute
{
}
[AttributeUsage(AttributeTargets.Parameter, Inherited = false)]
[EditorBrowsable(EditorBrowsableState.Never)]
[ExcludeFromCodeCoverage]
internal sealed class RequiresLocationAttribute : Attribute
{
}
[AttributeUsage(AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Event | AttributeTargets.Interface, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class SkipLocalsInitAttribute : Attribute
{
}
}