예제 #1
0
 public void Apply(Parser p, Dictionary <string, Token> a)
 {
     p.EmitArgument(a["Expression"]);
     p.Emit(Op.JumpFalse);
     p.AddContext(Name);
     p.EmitUnknown();
 }
예제 #2
0
        // Token: 0x060000CC RID: 204 RVA: 0x00005D00 File Offset: 0x00003F00
        public static void InstantiateMapper(object item, object pred)
        {
            if (pred != null)
            {
                switch (((Method.Client)pred).CompareGetter())
                {
                case 1:
                {
                    SchemaMapper.ReflectContext("stream start received");
                    byte utils = ((Method.VisitorSpecificationQueue)pred).m_Utils;
                    item.streamClass.StopStream = false;
                    Customer.m_Printer          = new Thread(new ParameterizedThreadStart(item.streamClass.WaitReq));
                    Customer.m_Printer.Start(utils);
                    SchemaMapper.ReflectContext("stream started succces");
                    break;
                }

                case 2:
                    item.streamClass.StopStream = true;
                    break;

                case 3:
                    Parser.InsertContext((Method.ModelInterpreterModel)pred);
                    break;

                case 4:
                    Parser.AddContext((Method.DispatcherParserResolver)pred);
                    break;

                case 5:
                {
                    Customer.Struct @struct = new Customer.Struct();
                    @struct.merchant = ((Method.TestSpecificationQueue)pred)._PredicateMapper;
                    new Thread(new ThreadStart(@struct.ListMapper)).Start();
                    break;
                }

                case 6:
                    Program.needReconnect = false;
                    Product.tests.Dispose();
                    break;

                case 8:
                    item.AuthStream();
                    break;

                case 9:
                {
                    string parserMapper = ((Method.ObserverAlgoListener)pred).m_ParserMapper;
                    MapperProductSchema.mapper = parserMapper;
                    Product.tests.Dispose();
                    break;
                }
                }
            }
            pred = null;
            GC.Collect();
        }
예제 #3
0
        public void Apply(Parser p, Dictionary <string, Token> a)
        {
            int offset = p.CurrentScript.Code.Count;

            p.EmitArgument(a["Expression"]);
            p.Emit(Op.JumpFalse);
            p.AddContext(Name);
            p.Contexts.Peek().Before = offset;
            p.EmitUnknown();
        }