mirror of
https://github.com/Stone-Red-Code/YesNt-Interpreter.git
synced 2026-09-04 00:56:31 +02:00
25 lines
810 B
C#
25 lines
810 B
C#
using System;
|
|
|
|
using YesNt.Interpreter.Enums;
|
|
|
|
namespace YesNt.Interpreter.Attributes
|
|
{
|
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
|
|
internal class StatementAttribute : Attribute
|
|
{
|
|
public string Name { get; }
|
|
public SearchMode SearchMode { get; }
|
|
public SpaceAround SpaceAround { get; }
|
|
public Priority Priority { get; set; } = Priority.Normal;
|
|
public bool ExecuteInSearchLabelMode { get; set; }
|
|
public bool KeepStatementInArgs { get; set; }
|
|
public bool IgnoreSyntaxHighlighting { get; set; }
|
|
|
|
internal StatementAttribute(string name, SearchMode searchMode, SpaceAround spaceAround)
|
|
{
|
|
Name = name;
|
|
SearchMode = searchMode;
|
|
SpaceAround = spaceAround;
|
|
}
|
|
}
|
|
} |