private static WatcherIssuer CallClass(TagTestItem first, CodeIteratorMapping reg, IdentifierClientBridge util, ConfigurationIssuer col2)
        {
            //Discarded unreachable code: IL_0002
            //IL_0003: Incompatible stack heights: 0 vs 1
            ColorMatrixFlag       colorMatrixFlag = reg?._0001() ?? ((ColorMatrixFlag)0);
            DecoratorReaderMapper obj             = (DecoratorReaderMapper)col2;
            string        text          = first._0001().ToString();
            WatcherIssuer watcherIssuer = obj.DisableRequest(text, StringComparison.Ordinal);

            if (watcherIssuer != null)
            {
                switch (colorMatrixFlag)
                {
                case (ColorMatrixFlag)1:
                    return(null);

                case (ColorMatrixFlag)2:
                    throw ContextError.CheckComposer(first, "Property with the name '{0}' already exists in the current JSON object.".ListReader(CultureInfo.InvariantCulture, text));
                }
            }
            WatcherIssuer watcherIssuer2 = new WatcherIssuer(text);

            watcherIssuer2.TestClass(util, reg);
            if (watcherIssuer == null)
            {
                col2.Add(watcherIssuer2);
            }
            else
            {
                watcherIssuer.DestroyClass(watcherIssuer2);
            }
            return(watcherIssuer2);
        }
        internal void CollectClass(TagTestItem asset, CodeIteratorMapping selection)
        {
            //Discarded unreachable code: IL_0002
            //IL_0003: Incompatible stack heights: 0 vs 1
            int num = asset._0003();

            if (!asset._0001())
            {
                throw ContextError.CheckComposer(asset, "Error reading {0} from JsonReader.".ListReader(CultureInfo.InvariantCulture, GetType().Name));
            }
            SortClass(asset, selection);
            if (asset._0003() > num)
            {
                throw ContextError.CheckComposer(asset, "Unexpected end of content while loading {0}.".ListReader(CultureInfo.InvariantCulture, GetType().Name));
            }
        }
Пример #3
0
        public static InstanceClassDispatcher AssetClass(TagTestItem item, CodeIteratorMapping ivk)
        {
            //Discarded unreachable code: IL_0002
            //IL_0003: Incompatible stack heights: 0 vs 1
            if (item._0001() == WatcherComposer.None && !item._0001())
            {
                throw ContextError.CheckComposer(item, "Error reading JArray from JsonReader.");
            }
            item.RevertError();
            if (item._0001() != WatcherComposer.StartArray)
            {
                throw ContextError.CheckComposer(item, "Error reading JArray from JsonReader. Current JsonReader item is not an array: {0}".ListReader(CultureInfo.InvariantCulture, item._0001()));
            }
            InstanceClassDispatcher instanceClassDispatcher = new InstanceClassDispatcher();

            instanceClassDispatcher.TestClass(item as IdentifierClientBridge, ivk);
            instanceClassDispatcher.CollectClass(item, ivk);
            return(instanceClassDispatcher);
        }
Пример #4
0
        public static WatcherIssuer OrderRequest(TagTestItem info, CodeIteratorMapping selection)
        {
            //Discarded unreachable code: IL_0002
            //IL_0003: Incompatible stack heights: 0 vs 1
            if (info._0001() == WatcherComposer.None && !info._0001())
            {
                throw ContextError.CheckComposer(info, "Error reading JProperty from JsonReader.");
            }
            info.RevertError();
            if (info._0001() != WatcherComposer.PropertyName)
            {
                throw ContextError.CheckComposer(info, "Error reading JProperty from JsonReader. Current JsonReader item is not a property: {0}".ListReader(CultureInfo.InvariantCulture, info._0001()));
            }
            WatcherIssuer watcherIssuer = new WatcherIssuer((string)info._0001());

            watcherIssuer.TestClass(info as IdentifierClientBridge, selection);
            watcherIssuer.CollectClass(info, selection);
            return(watcherIssuer);
        }
Пример #5
0
        public static IndexerReaderMapper WriteClass(TagTestItem setup, CodeIteratorMapping reg)
        {
            //Discarded unreachable code: IL_0002
            //IL_0003: Incompatible stack heights: 0 vs 1
            if (setup._0001() == WatcherComposer.None && !setup._0001())
            {
                throw ContextError.CheckComposer(setup, "Error reading JConstructor from JsonReader.");
            }
            setup.RevertError();
            if (setup._0001() != WatcherComposer.StartConstructor)
            {
                throw ContextError.CheckComposer(setup, "Error reading JConstructor from JsonReader. Current JsonReader item is not a constructor: {0}".ListReader(CultureInfo.InvariantCulture, setup._0001()));
            }
            IndexerReaderMapper indexerReaderMapper = new IndexerReaderMapper((string)setup._0001());

            indexerReaderMapper.TestClass(setup as IdentifierClientBridge, reg);
            indexerReaderMapper.CollectClass(setup, reg);
            return(indexerReaderMapper);
        }
Пример #6
0
        public static DecoratorReaderMapper VerifyRequest(TagTestItem config, CodeIteratorMapping col)
        {
            //Discarded unreachable code: IL_0002
            //IL_0003: Incompatible stack heights: 0 vs 1
            ContextClientBridge.RunClient(config, "reader");
            if (config._0001() == WatcherComposer.None && !config._0001())
            {
                throw ContextError.CheckComposer(config, "Error reading JObject from JsonReader.");
            }
            config.RevertError();
            if (config._0001() != WatcherComposer.StartObject)
            {
                throw ContextError.CheckComposer(config, "Error reading JObject from JsonReader. Current JsonReader item is not an object: {0}".ListReader(CultureInfo.InvariantCulture, config._0001()));
            }
            DecoratorReaderMapper decoratorReaderMapper = new DecoratorReaderMapper();

            decoratorReaderMapper.TestClass(config as IdentifierClientBridge, col);
            decoratorReaderMapper.CollectClass(config, col);
            return(decoratorReaderMapper);
        }