private static void VariableDeclaration(string className, string variableName, List <SalesForceClassInfo> classNameList, string currentMethod) { var salesforceClass = classNameList.FirstOrDefault(x => x.Variables.Contains(className) || x.ClassName.Equals(className)); if (salesforceClass == null) { salesforceClass = new SalesForceClassInfo(className, IsSalesForceApi(className)); salesforceClass.Variables.Add(currentMethod + ":" + variableName); classNameList.Add(salesforceClass); } else { salesforceClass.Variables.Add(currentMethod + ":" + variableName); } }
private static void SimpleMemberAccess(string expressionName, string methodName, List <SalesForceClassInfo> classNameList, string currentMethod) { // For Methods var salesforceClass = classNameList.FirstOrDefault(x => x.Variables.Contains(currentMethod + ":" + expressionName) || x.ClassName.Equals(expressionName)); if (salesforceClass != null) { salesforceClass.MethodList.Add(new SalesForceMethod(methodName)); } else { salesforceClass = new SalesForceClassInfo(expressionName, IsSalesForceApi(expressionName)); salesforceClass.MethodList.Add(new SalesForceMethod(methodName)); classNameList.Add(salesforceClass); } }