public bool Identify(SourceCode aSourceCode, string aCurrentCodeLine, int aLinePosition) { // TODO: We need to also cater for C# properties later on bool result = false; if (aSourceCode.CountTokens(aCurrentCodeLine, '(') == 1 && aSourceCode.CountTokens(aCurrentCodeLine, ')') == 1 && aCurrentCodeLine.IndexOf(aSourceCode.GetFileName()) == -1 && !aSourceCode.ContainKeyword(aCurrentCodeLine, "class") && aCurrentCodeLine.Split(' ').Length > 2 && !MainMethodComp.IdentifyMainMethod(aSourceCode, aCurrentCodeLine, aLinePosition) && (aCurrentCodeLine.EndsWith("{") || aSourceCode.GetNextLine(aLinePosition).StartsWith("{"))) result = true; return result; }