Exemple #1
0
        private void GetArguments(ParserRuleContext tree, List <ArgumentSyntax> argList)
        {
            for (int i = 0; i < tree.getChildCount(); i++)
            {
                var child = tree.getChild(i);

                if (child is VisualBasic6Parser.ArgsCallContext)
                {
                    for (int j = 0; j < child.getChildCount(); j++)
                    {
                        var argChild = child.getChild(j);
                        if (argChild != null)
                        {
                            var expr = GetExpression(argChild);
                            if (expr != null)
                            {
                                argList.Add(SyntaxFactory.Argument(expr));
                            }
                        }
                    }
                }
            }
        }