示例#1
0
        public override bool test(ITokenCollection semi)
        {
            int    index;
            string type = String.Empty;

            semi.find("using", out index);
            if (index != -1 && semi.size() > index + 1 && (!(semi[index + 1].ToString().ToLower().Equals("system"))))
            {
                ITokenCollection local = Factory.create();
                if ((semi.contains("=") && semi.Count() > 3) || semi[index + 1].Contains("("))
                {
                    ;
                }
                else
                {
                    type = "using";
                    local.add(semi[index]).add(semi[index + 1]);
                    doActions(local);
                }
                return(true);
            }
            return(false);
        }