public override Node ExitFieldPropertyExpression(Production node)
        {
            string            name = (string)node.GetChildAt(0).GetValue(0);
            IdentifierElement elem = new IdentifierElement(name);

            node.AddValue(elem);
            return(node);
        }
Exemplo n.º 2
0
        private static string GetName(IList elements)
        {
            if (elements.Count == 0)
            {
                return(null);
            }

            // Is the first member a field/property element?
            IdentifierElement fpe = elements[0] as IdentifierElement;

            if (fpe == null)
            {
                return(null);
            }
            else
            {
                return(fpe.MemberName);
            }
        }