mirror of
https://github.com/XWine1/XDLCompiler.git
synced 2026-07-24 12:32:21 -07:00
11 lines
411 B
C#
11 lines
411 B
C#
namespace XDLCompiler;
|
|
|
|
public sealed class ConditionalAttribute(AttributeNode node) : IAttributeFactory<ConditionalAttribute>
|
|
{
|
|
public string Condition { get; } = node.Arguments[0].Evaluate().ToString()!;
|
|
|
|
static string IAttributeFactory<ConditionalAttribute>.Name => "conditional";
|
|
|
|
static ConditionalAttribute IAttributeFactory<ConditionalAttribute>.Create(AttributeNode node) => new(node);
|
|
}
|