Catrobat.IDE.Core.Xml.XmlObjects.Formulas.XmlFormulaTreeFactory.CreateVariableNode C# (CSharp) Метод

CreateVariableNode() приватный статический Метод

private static CreateVariableNode ( XmlUserVariable variable ) : XmlFormulaTree
variable Catrobat.IDE.Core.Xml.XmlObjects.Variables.XmlUserVariable
Результат XmlFormulaTree
        private static XmlFormulaTree CreateVariableNode(XmlUserVariable variable)
        {
            return new XmlFormulaTree
            {
                VariableType = "USER_VARIABLE",
                VariableValue = variable != null ? variable.Name : null,
                LeftChild = null,
                RightChild = null
            };
        }