public override void Process(IReflector reflector, Type type, IMethodRemover methodRemover, ISpecificationBuilder specification)
 {
     if (ShortValueSemanticsProvider.IsAdaptedType(type))
     {
         IObjectSpecBuilder spec = reflector.LoadSpecification(ShortValueSemanticsProvider.AdaptedType);
         AddValueFacets(new ShortValueSemanticsProvider(spec, specification), specification);
     }
 }
        public override IImmutableDictionary <string, ITypeSpecBuilder> Process(IReflector reflector, Type type, IMethodRemover methodRemover, ISpecificationBuilder specification, IImmutableDictionary <string, ITypeSpecBuilder> metamodel)
        {
            if (!ShortValueSemanticsProvider.IsAdaptedType(type))
            {
                return(metamodel);
            }

            var(oSpec, mm) = reflector.LoadSpecification <IObjectSpecImmutable>(ShortValueSemanticsProvider.AdaptedType, metamodel);
            AddValueFacets(new ShortValueSemanticsProvider(oSpec, specification), specification);
            return(mm);
        }
        public override IImmutableDictionary <string, ITypeSpecBuilder> Process(IReflector reflector, Type type, IMethodRemover methodRemover, ISpecificationBuilder specification, IImmutableDictionary <string, ITypeSpecBuilder> metamodel)
        {
            if (ShortValueSemanticsProvider.IsAdaptedType(type))
            {
                var result = reflector.LoadSpecification(ShortValueSemanticsProvider.AdaptedType, metamodel);

                metamodel = result.Item2;
                var spec = result.Item1 as IObjectSpecImmutable;
                AddValueFacets(new ShortValueSemanticsProvider(spec, specification), specification);
            }
            return(metamodel);
        }