Exemplo n.º 1
0
        public static bool IsIsInst(E expr, out TypeNode type, out E arg, FullExpressionDecoder <V, E> decoder)
        {
            VisitorForIsInst <V, E> v = decoder.IsInstVisitor;
            bool res = Decode(expr, v, decoder);

            arg  = v.argument;
            type = v.type;
            return(res);
        }
Exemplo n.º 2
0
 public FullExpressionDecoder(IMetaDataProvider metaDataProvider, IExpressionContextProvider <E, V> contextProvider)
 {
     ContextProvider                = contextProvider;
     this.MetaDataProvider          = metaDataProvider;
     this.VariableVisitor           = new VisitorForVariable <V, E> ();
     this.UnderlyingVariableVisitor = new VisitorForUnderlyingVariable <V, E> ();
     this.UnaryExpressionVisitor    = new VisitorForIsUnaryExpression <V, E> ();
     this.BinaryExpressionVisitor   = new VisitorForIsBinaryExpression <V, E> ();
     this.VariablesInVisitor        = new VisitorForVariablesIn <V, E> (contextProvider);
     this.ValueOfVisitor            = new VisitorForValueOf <V, E> ();
     this.SizeOfVisitor             = new VisitorForSizeOf <V, E> ();
     this.IsInstVisitor             = new VisitorForIsInst <V, E> ();
     this.IsNullVisitor             = new VisitorForIsNull <V, E> ();
 }
Exemplo n.º 3
0
 public bool IsIsinst(E expr, out E arg, out TypeNode type)
 {
     return(VisitorForIsInst <V, E> .IsIsInst(expr, out type, out arg, this));
 }