protected override Expression VisitNameExpression(NameExpression expression)
            {
                if (KEYWORDS.Contains(expression.Name))
                {
                    return(expression);
                }

                // TODO Real resolve ignore list
                var nm = Utility.PascalCase(expression.Name);

                return(Expression.MemberAccess(Expression.Name("__closure"), nm));
            }
Esempio n. 2
0
        static void Main(string[] args)
        {
            int i = 0;

            string [] s = { "HELLO", "HI",
                            "THERE" };
            KEYWORDS  keyss = new KEYWORDS(s);

            keyss.list();
            for (i = s.Length - 1; i > -1; i--)
            {
                Console.WriteLine("{0},{1}", s[i], keyss.finds(s[i]));
            }
        }