Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
4d764e615This file is pinned to the selected release. Download the original to open it in your design tool.
using Hast.Layer;
using Hast.Synthesis.Attributes;
using System.Collections.Generic;
namespace Hast.Transformer.Configuration;
public static class HardwareGenerationConfigurationTransformerExtensions
{
public static TransformerConfiguration TransformerConfiguration(this IHardwareGenerationConfiguration hardwareConfiguration) =>
hardwareConfiguration.GetOrAddCustomConfiguration<TransformerConfiguration>("Hast.Transformer.Configuration");
public static IDictionary<string, object> GetOrAddReplacements(this IHardwareGenerationConfiguration hardwareConfiguration) =>
hardwareConfiguration.GetOrAddCustomConfiguration<Dictionary<string, object>>(ReplaceableAttribute.Name);
}