public CefExportFunction(CefType parent, Parser.FunctionNode fd, ApiTypeBuilder api, CefPlatform platform)
 {
     this.Name           = fd.Name;
     this.Comments       = fd.Comments;
     this.Signature      = Signature.Create(SignatureType.LibraryCall, CefName, CefConfig, CallMode, fd.Signature, api);
     this.PrivateWrapper = GeneratorConfig.HasPrivateWrapper(this.Name);
     this.Parent         = parent;
     this.Platform       = platform;
 }
Esempio n. 2
0
        private static FunctionNode Func(ListController <TokenModel> lc)
        {
            if (!lc.TryGetNext(out var funcName))
            {
                throw new ParseException("Function expected", lc.GetPrevious(), true);
            }

            if (!FuncTable.Contains(funcName.Text))
            {
                throw new ParseException("Unknown function", lc.GetPrevious(), true);
            }

            var resNode = new FunctionNode();

            resNode.FuncName = funcName.Text;
            if (!lc.TryGetNext(out var opNest))
            {
                throw new ParseException();
            }
            else
            {
                if (opNest.Text == "(")
                {
                    while (true)
                    {
                        if (lc.TryGetNext(out var next))
                        {
                            if (next.Text == ")")
                            {
                                break;
                            }

                            if ()
                            {
                            }
                        }
                    }
                }
            }

            //todo parse tokens to node
        }
 public CefExportFunction(CefType parent, Parser.FunctionNode fd, ApiTypeBuilder api)
     : this(parent, fd, api, CefPlatform.Independent)
 {
 }