static bool IsAgentPtr(string typeName, string valueStr) { bool bAgentPtr = false; //it might be par or the right value of condition/assignment if (!string.IsNullOrEmpty(valueStr) && valueStr == "null") { Debug.Check(Agent.IsAgentClassName(typeName)); bAgentPtr = true; } return(bAgentPtr); }
public static VariableComparator Create(string typeName, string comparionOperator, Property lhs, Property rhs) { E_VariableComparisonType type = VariableComparator.ParseComparisonType(comparionOperator); if (Agent.IsAgentClassName(typeName)) { typeName = "void*"; } VariableComparator comparator = VariableComparator.Create(typeName, lhs, rhs); comparator.SetComparisonType(type); return(comparator); }
public static VariableComparator Create(string typeName, string comparionOperator, Property lhs, Property rhs) { E_VariableComparisonType comparisonType = VariableComparator.ParseComparisonType(comparionOperator); //bool bAgentPtr = false; //it might be par or the right value of condition/assignment if (Agent.IsAgentClassName(typeName)) { //bAgentPtr = true; typeName = "void*"; } VariableComparator pComparator = VariableComparator.Create(typeName, lhs, rhs); pComparator.SetComparisonType(comparisonType); return(pComparator); }
public static bool IsAgentClassName(string agentClassName) { CStringID agentClassId = new CStringID(agentClassName); return(Agent.IsAgentClassName(agentClassId)); }