Exemplo n.º 1
0
        public static OrderedDictionary GetLocalsDictionary(ParseTreeNode node)
        {
            var sigArgs1ParseTreeNode = node.GetFirstChildWithGrammarName(GrammarNames.sigArgs1);

            if (sigArgs1ParseTreeNode != null)
            {
                var result = SigArgs1ParseTreeNodeHelper.GetLocalsDictionary(sigArgs1ParseTreeNode);
                return(result);
            }

            return(new OrderedDictionary());
        }
Exemplo n.º 2
0
        public static List <string> GetNames(ParseTreeNode node)
        {
            var sigArgs1ParseTreeNode = node.GetFirstChildWithGrammarName(GrammarNames.sigArgs1);

            if (sigArgs1ParseTreeNode != null)
            {
                var result = SigArgs1ParseTreeNodeHelper.GetNames(sigArgs1ParseTreeNode);
                return(result);
            }

            return(new List <string>());
        }