replacing NetHelper.IsStandType to TypeFactory.IsStandType in NETGenerator (#3346)
This commit is contained in:
parent
04a16fab68
commit
3aa75eb9d6
|
|
@ -6,7 +6,7 @@ using System.Linq;
|
|||
using System.Reflection;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace NETGenerator
|
||||
namespace PascalABCCompiler.NETGenerator
|
||||
{
|
||||
internal static class AppConfigUtil
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue