/* * SPDX-License-Identifier: AGPL-3.0-or-later * Copyright (C) 2025 Sergej Görzen * This file is part of xAPI4Unity. */ #if UNITY_EDITOR namespace xAPI4Unity.Editor.Parser.Code.SyntaxTree { /// /// A statement in a method /// internal class Statement { /// /// Statement as a string (i.e. "int i = 0;") /// public string Value { get; private set; } /// /// Initializes an empty statement with no value. /// public Statement() { } /// /// Initializes a statement with the provided string value. /// /// The string representation of the statement. public Statement(string value) { this.Value = value; } /// /// Sets the value for this statement. /// /// The string representation of the statement. /// The same Statement instance for fluent chaining. public Statement WithValue(string value) { this.Value = value; return this; } } } #endif