Arch: firstly, ast node need to change, use payload instead of token

This commit is contained in:
Youmu Liu
2026-08-13 18:48:33 +08:00
parent 15aebc594c
commit 2a52baa5d7
19 changed files with 151 additions and 16 deletions
@@ -0,0 +1,34 @@
// -----------------------------------------------------------------------------
// file="RegexAstNode.AdditionalPayload"
// Project: StgSharp
// Copyright (c) Nitload.
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using StgSharp.RegularAnalysis.Abstraction;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.RegularAnalysis.Text
{
public class RegexCountPayload : ISyntaxPayload<RegexCountPayload, RegexAstNode, RegexElementLabel>
{
public int Min { get; set; }
public int Max { get; set; }
public string Source { get; set; }
}
public class RegexCommonPayload : IRegexAstNodeAdditionalPayload
{
public string Source { get; set; } = string.Empty;
}
}