Esempio n. 1
0
        public IInterpetedResult <IInterpetedMember <T> > Interpet(InterpetedContext interpetedContext)
        {
            var member = TypeManager.Member <T>(Type);

            if (!interpetedContext.TryAddMember(Key, member))
            {
                throw new Exception("bad, shit");
            }

            return(InterpetedResult.Create(member));
        }
        public IInterpetedResult <IInterpetedMember <IInterpetedScope> > Interpet(InterpetedContext interpetedContext)
        {
            var scope = ScopeTemplate.Create();

            var context = interpetedContext.Child(scope);

            foreach (var line in StaticInitialization)
            {
                line.Interpet(context);
            }

            return(InterpetedResult.Create(TypeManager.Member(scope.Convert(TransformerExtensions.NewConversionContext()), scope)));
        }
        public IInterpetedResult <IInterpetedMember <IInterpetedMethod <TIn, TOut> > > Interpet(InterpetedContext interpetedContext)
        {
            var thing = TypeManager.InternalMethod <TIn, TOut>(
                ParameterDefinition,
                Body,
                interpetedContext,
                Scope,
                MethodType);

            return(InterpetedResult.Create(
                       TypeManager.Member(
                           thing.Convert(TransformerExtensions.NewConversionContext()),
                           thing)));
        }