示例#1
0
        public override object VisitCallAwait([NotNull] CallAwaitContext context)
        {
            var r    = new Result();
            var expr = (Result)Visit(context.expression());

            r.data = "var";
            r.text = "await " + expr.text;
            return(r);
        }
示例#2
0
文件: Call.cs 项目: hwdef/feel-csharp
        public override object VisitCallAwait(CallAwaitContext context)
        {
            var r = (new Result()
            {
                data = "var"
            });

            if (context.tuple() != null)
            {
                r.text += ((Result)(Visit(context.tuple()))).text;
            }
            else
            {
                r.text += (new System.Text.StringBuilder().Append("(").Append(((Result)(Visit(context.lambda()))).text).Append(")")).to_str();
            }
            return(r);
        }