Пример #1
0
        public IfVariable GetVariable(string name)
        {
            IfVariable result = null;

            if (mb != null)
            {
            }
            if (result == null && cb != null)
            {
                FieldInfo fi = cb.GetFieldInfo(name.ToUpper());
                if (fi != null)
                {
                    result = new Field(fi);
                }
            }
            return(result);
        }
Пример #2
0
 void value(out Compiler.IfValue value)
 {
     value = null; IfVariable var = null;
     if (la.kind == 1 || la.kind == 2)
     {
         literal(out value);
     }
     else if (la.kind == 3 || la.kind == 4)
     {
         variable(out var);
         value = var;
     }
     else
     {
         SynErr(56);
     }
 }