Пример #1
0
        public override string VisitScpExpr([NotNull] TesterParser.ScpExprContext context)
        {
            IndentLevel++;
            var temp = VisitChildren(context);

            IndentLevel--;

            return(string.Join(Environment.NewLine,
                               Indent() + "ScpExpr: ",
                               temp));
        }
Пример #2
0
        public override InterpBase VisitScpExpr([NotNull] TesterParser.ScpExprContext context)
        {
            var        conn       = context.GetChild(1).Accept(this);
            var        localFile  = context.GetChild(2).Accept(this);
            InterpBase remoteFile = null;

            if (context.ChildCount > 3)
            {
                remoteFile = context.GetChild(3).Accept(this);
            }

            return(new InterpScp(conn, localFile, remoteFile));
        }