Exemplo 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));
        }
Exemplo n.º 2
0
        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)));
        }
Exemplo n.º 3
0
        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)));
        }