예제 #1
0
        public override Task <ICompletion <INative> > ExecuteAsync(Scope scope)
        {
            var function = new Function(Id.Text, Args.AsReadOnly(), Body.AsReadOnly());
            ICompletion <INative> res = new Completion(function);

            scope.DeclareVariable(Id).Set(function);
            return(Task.FromResult(res));
        }