Esempio n. 1
0
        internal JSFunctionExpression Create(
            MethodInfo info, MethodDefinition methodDef, MethodReference method,
            QualifiedMemberIdentifier identifier, ILBlockTranslator translator,
            JSVariable[] parameters, JSBlockStatement body
            )
        {
            var args = new PopulatedCacheEntryArgs {
                Info       = info,
                Method     = method,
                Translator = translator,
                Parameters = parameters,
                Body       = body,
            };

            return(Cache.GetOrCreate(identifier, args, MakePopulatedCacheEntry).Expression);
        }
Esempio n. 2
0
        internal JSFunctionExpression Create (
            MethodInfo info, MethodDefinition methodDef, MethodReference method, 
            QualifiedMemberIdentifier identifier, ILBlockTranslator translator, 
            JSVariable[] parameters, JSBlockStatement body
        ) {
            var args = new PopulatedCacheEntryArgs {
                Info = info,
                Method = method,
                Translator = translator,
                Parameters = parameters,
                Body = body,
            };

            return Cache.GetOrCreate(identifier, args, MakePopulatedCacheEntry).Expression;
        }