/* * SPDX-License-Identifier: AGPL-3.0-or-later * Copyright (C) 2025 Sergej Görzen * This file is part of xAPI4Unity. */ namespace xAPI4Unity.Editor.Types { /// /// Represents a resolved type based on a regular expression pattern. /// Extends with additional information specific to regex-based types. /// public class ResolvedRegex : ResolvedType { /// /// Initializes a new instance of the class /// with a given regex definition. /// /// The regex pattern or definition for this type. public ResolvedRegex(string definition) : base(typeof(string), definition) {} /// /// Indicates that this type is defined by a regular expression pattern. /// public override bool IsRegexExpr => true; /// /// Provides the syntax representation of this type, which corresponds to "string". /// /// The string "string". public override string GetTypeSyntax() => "string"; } }