public override bool Walk(FunctionDefinition functionDefinition) { if (functionDefinition.Body == null) { return false; } IClass c = GetClassBeingWalked(); PythonMethodDefinition methodDefinition = new PythonMethodDefinition(functionDefinition); PythonMethod method = methodDefinition.CreateMethod(c); if (method is PythonConstructor) { FindFields(c, functionDefinition); } return false; }
public override bool Walk(FunctionDefinition functionDefinition) { if (functionDefinition.Body == null) { return(false); } IClass c = GetClassBeingWalked(); PythonMethodDefinition methodDefinition = new PythonMethodDefinition(functionDefinition); PythonMethod method = methodDefinition.CreateMethod(c); if (method is PythonConstructor) { FindFields(c, functionDefinition); } return(false); }