Esempio n. 1
0
        public override bool test(CSsemi.CSemiExp semi)
        {
            List <string> variablecountlist = null;
            Repository    repo_             = Repository.getInstance();

            if (semi.count >= 2)
            {
                variablecountlist = semi.FindVariablesList();
            }

            if (variablecountlist != null && variablecountlist.Count == 2)
            {
                string currclassName = DetectParentClass.getClassName(repo_.semi.lineCount);
                //if (currclassName != "")
                {
                    CSsemi.CSemiExp local = new CSsemi.CSemiExp();
                    local.displayNewLines = false;
                    local.Add(variablecountlist[0]).Add(variablecountlist[1]).Add(currclassName);
                    doActionsComposition(local);
                    return(true);
                }
            }

            return(false);
        }