Exemple #1
0
        public FunctionScopeImpl Create(CodeWorkspaceImpl ws, IFunctionDefinerScope h, Action <IFunctionScope> header)
        {
            if (header == null)
            {
                throw new ArgumentNullException(nameof(header));
            }
            FunctionScopeImpl f = new FunctionScopeImpl(ws, h);

            header(f);
            f.Initialize();
            _funcs.Add(f.Name, f);
            ws.OnFunctionCreated(f);
            return(f);
        }