From 3aa75eb9d6a7833fee118e127cc1088c20adb3aa Mon Sep 17 00:00:00 2001 From: samuraiGH <87191377+samuraiGH@users.noreply.github.com> Date: Thu, 9 Oct 2025 21:40:05 +0300 Subject: [PATCH] replacing NetHelper.IsStandType to TypeFactory.IsStandType in NETGenerator (#3346) --- NETGenerator/AppConfigUtil.cs | 2 +- NETGenerator/NETGenerator.cs | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/NETGenerator/AppConfigUtil.cs b/NETGenerator/AppConfigUtil.cs index 082236c58..fa0d56b8f 100644 --- a/NETGenerator/AppConfigUtil.cs +++ b/NETGenerator/AppConfigUtil.cs @@ -6,7 +6,7 @@ using System.Linq; using System.Reflection; using System.Xml.Linq; -namespace NETGenerator +namespace PascalABCCompiler.NETGenerator { internal static class AppConfigUtil { diff --git a/NETGenerator/NETGenerator.cs b/NETGenerator/NETGenerator.cs index bc57d02bc..f4cbd9772 100644 --- a/NETGenerator/NETGenerator.cs +++ b/NETGenerator/NETGenerator.cs @@ -14,10 +14,8 @@ using System.Runtime.Versioning; using System.Security; using System.Text; using System.Threading; -using NETGenerator; using PascalABCCompiler.NetHelper; using PascalABCCompiler.SemanticTree; -using PascalABCCompiler.TreeConverter; namespace PascalABCCompiler.NETGenerator { @@ -9238,9 +9236,9 @@ namespace PascalABCCompiler.NETGenerator //(ssyy) 29.01.2008 Внёс band, bor под switch basic_function_type ft = value.basic_function.basic_function_type; if ((ft == basic_function_type.objeq || ft == basic_function_type.objnoteq) && real_parameters[0].type.is_value_type && - (real_parameters[0].type is ICompiledTypeNode && !NetHelper.NetHelper.IsStandType((real_parameters[0].type as ICompiledTypeNode).compiled_type) || real_parameters[0].type is ICompiledGenericTypeInstance) && !real_parameters[0].type.is_nullable_type + (real_parameters[0].type is ICompiledTypeNode && !TypeFactory.IsStandType((real_parameters[0].type as ICompiledTypeNode).compiled_type) || real_parameters[0].type is ICompiledGenericTypeInstance) && !real_parameters[0].type.is_nullable_type && real_parameters[1].type.is_value_type && - (real_parameters[1].type is ICompiledTypeNode && !NetHelper.NetHelper.IsStandType((real_parameters[1].type as ICompiledTypeNode).compiled_type) || real_parameters[1].type is ICompiledGenericTypeInstance) && !real_parameters[1].type.is_nullable_type) + (real_parameters[1].type is ICompiledTypeNode && !TypeFactory.IsStandType((real_parameters[1].type as ICompiledTypeNode).compiled_type) || real_parameters[1].type is ICompiledGenericTypeInstance) && !real_parameters[1].type.is_nullable_type) { ICompiledTypeNode ctn1 = real_parameters[0].type as ICompiledTypeNode; ICompiledTypeNode ctn2 = real_parameters[1].type as ICompiledTypeNode;