Esempio n. 1
0
 protected NestedEncoderVisitor(EncoderVisitor parentVisitor)
 {
     if (parentVisitor == null)
     {
         throw new ArgumentNullException();
     }
     this._ParentVisitor = parentVisitor;
 }
Esempio n. 2
0
 public MessageVisitor(EncoderVisitor parentVisitor, Expression receiver, bool superSend, bool constantReceiver, bool hasCascadeMessages)
     : base(parentVisitor)
 {
     if (receiver == null)
     {
         throw new ArgumentNullException();
     }
     this.Receiver                = receiver;
     this.IsSuperSend             = superSend;
     this.IsConstantReceiver      = constantReceiver;
     this.CascadeConstantReceiver = false;
     if (hasCascadeMessages)
     {
         this.CascadeReceiver = Expression.Variable(typeof(object), "_cascadeSelf");
     }
     else
     {
         this.CascadeReceiver = null;
     }
     this.CascadeSuperSend = false;
 }
Esempio n. 3
0
 public ExpressionVisitor(EncoderVisitor parentVisitor)
     : base(parentVisitor)
 {
     this.IsConstant = false;
 }
 public LiteralVisitorExpressionValue(EncoderVisitor parentVisitor)
     : base(parentVisitor)
 {
 }
Esempio n. 5
0
 public StatementVisitor(EncoderVisitor parentVisitor)
     : base(parentVisitor)
 {
     this.HasReturned = false;
 }
Esempio n. 6
0
 public LiteralVisitorConstantValue(EncoderVisitor parentVisitor)
     : base(parentVisitor)
 {
 }
Esempio n. 7
0
 public PrimaryVisitor(EncoderVisitor parentVisitor)
     : base(parentVisitor)
 {
     this.IsConstant = false;
 }
 internal abstract Expression CompileLightweightExceptionCheck(EncoderVisitor visitor, Expression expression);
 // Helper for normal send binary messages - because it's used often when inlining
 public Expression CompileDynamicCall(EncoderVisitor visitor, string selector, Expression receiver, Expression argument)
 {
     return(this.CompileLightweightExceptionCheck(visitor,
                                                  this.Compiler.DynamicCallStrategy.CompileDynamicCall(this, selector, selector, false, false, this.SuperLookupScope, receiver, this.ExecutionContextArgument, argument)));
 }
Esempio n. 10
0
 public Expression CompileDynamicCall(EncoderVisitor visitor, string selector, string nativeName, int argumentCount, bool isSuperSend, bool isConstantReceiver, Expression receiver, IEnumerable <Expression> arguments)
 {
     return(this.CompileLightweightExceptionCheck(visitor,
                                                  this.Compiler.DynamicCallStrategy.CompileDynamicCall(this, selector, nativeName, argumentCount, isSuperSend, isConstantReceiver, this.SuperLookupScope, receiver, this.ExecutionContextArgument, arguments)));
 }
Esempio n. 11
0
 public BlockVisitorBase(EncoderVisitor parentVisitor)
     : base(parentVisitor)
 {
 }
Esempio n. 12
0
 public InlineBlockVisitor(EncoderVisitor parentVisitor)
     : base(parentVisitor)
 {
     this._Context = new InlineBlockCompilationContext(this.ParentVisitor.Context);
 }