SetLeakedState() private method

private SetLeakedState ( Assignment operand, bool state ) : Assignment
operand TriAxis.RunSharp.Operands.Assignment
state bool
return TriAxis.RunSharp.Operands.Assignment
Beispiel #1
0
 public Operand BitwiseAnd(Operand value)
 {
     return(OperandExtensions.SetLeakedState(new OverloadableOperation(Operator.And, this, value), true));
 }
 protected internal override BindingFlags GetBindingFlags()
 {
     OperandExtensions.SetLeakedState(this, false);
     return(_operand.GetBindingFlags());
 }
 public new ContextualAssignment Assign(Operand value, bool allowExplicitConversion)
 {
     return(OperandExtensions.SetLeakedState(new ContextualAssignment(new Assignment(this, value, allowExplicitConversion), TypeMapper), true));
 }
Beispiel #4
0
 protected override void ResetLeakedStateRecursively()
 {
     base.ResetLeakedStateRecursively();
     OperandExtensions.SetLeakedState(_op, false);
 }
 protected internal override void EmitAddressOf(CodeGen g)
 {
     OperandExtensions.SetLeakedState(this, false);
     _operand.EmitAddressOf(g);
 }
Beispiel #6
0
 public Operand Is(Type type)
 {
     return(OperandExtensions.SetLeakedState(new IsInstanceOf(this, type), true));
 }
Beispiel #7
0
 public ContextualOperand Invoke(MethodInfo method, ITypeMapper typeMapper, params Operand[] args)
 {
     return(OperandExtensions.SetLeakedState(new ContextualOperand(new Invocation(typeMapper.TypeInfo.FindMethod(method), this, args), typeMapper), true));
 }
Beispiel #8
0
 public Operand LogicalNot()
 {
     return(OperandExtensions.SetLeakedState(new OverloadableOperation(Operator.LogicalNot, this), true));
 }
Beispiel #9
0
 public static Operand operator ~(Operand op)
 {
     return(OperandExtensions.SetLeakedState(new OverloadableOperation(Operator.Not, op), true));
 }
Beispiel #10
0
 public Operand RightShift(Operand value)
 {
     return(OperandExtensions.SetLeakedState(new OverloadableOperation(Operator.RightShift, this, value), true));
 }
Beispiel #11
0
 public Operand Negate()
 {
     return(OperandExtensions.SetLeakedState(new OverloadableOperation(Operator.Minus, this), true));
 }
Beispiel #12
0
 public static Operand operator >>(Operand left, int right)
 {
     return(OperandExtensions.SetLeakedState(new OverloadableOperation(Operator.RightShift, left, right), true));
 }
Beispiel #13
0
 public Operand Xor(Operand value)
 {
     return(OperandExtensions.SetLeakedState(new OverloadableOperation(Operator.Xor, this, value), true));
 }
Beispiel #14
0
 public static Operand operator ^(Operand left, Operand right)
 {
     return(OperandExtensions.SetLeakedState(new OverloadableOperation(Operator.Xor, left, right), true));
 }
Beispiel #15
0
 public Operand Conditional(Operand ifTrue, Operand ifFalse)
 {
     return(OperandExtensions.SetLeakedState(new Conditional(this, ifTrue, ifFalse), true));
 }
Beispiel #16
0
 public Operand OnesComplement()
 {
     return(OperandExtensions.SetLeakedState(new OverloadableOperation(Operator.Not, this), true));
 }
Beispiel #17
0
 public Operand As(Type type)
 {
     return(OperandExtensions.SetLeakedState(new SafeCast(this, type), true));
 }
Beispiel #18
0
 public Operand Pow2()
 {
     return(OperandExtensions.SetLeakedState(new SimpleOperation(this, OpCodes.Dup, OpCodes.Mul), true));
 }
Beispiel #19
0
 public ContextualOperand Invoke(string name, ITypeMapper typeMapper, params Operand[] args)
 {
     return(OperandExtensions.SetLeakedState(new ContextualOperand(new Invocation(typeMapper.TypeInfo.FindMethod(GetReturnType(typeMapper), name, args, IsStaticTarget), this, args), typeMapper), true));
 }
Beispiel #20
0
 public Operand LogicalAnd(Operand other)
 {
     return(OperandExtensions.SetLeakedState(Conditional(other, false), true));
 }
Beispiel #21
0
 public Operand LongArrayLength()
 {
     return(OperandExtensions.SetLeakedState(new ArrayLength(this, true), true));
 }
Beispiel #22
0
 public Operand LogicalOr(Operand other)
 {
     return(OperandExtensions.SetLeakedState(Conditional(true, other), true));
 }
 protected internal override void EmitSet(CodeGen g, Operand value, bool allowExplicitConversion)
 {
     OperandExtensions.SetLeakedState(this, false);
     OperandExtensions.SetLeakedState(this, false);
     _operand.EmitSet(g, value, allowExplicitConversion);
 }
Beispiel #24
0
 public Operand PostIncrement()
 {
     return(OperandExtensions.SetLeakedState(new PostfixOperation(Operator.Increment, this), true));
 }
 protected internal override void EmitBranch(CodeGen g, OptionalLabel labelTrue, OptionalLabel labelFalse)
 {
     OperandExtensions.SetLeakedState(this, false);
     _operand.EmitBranch(g, labelTrue, labelFalse);
 }
Beispiel #26
0
 public Operand PreDecrement()
 {
     return(OperandExtensions.SetLeakedState(new PrefixOperation(Operator.Decrement, this), true));
 }
 protected internal override void AssignmentHint(Operand op)
 {
     OperandExtensions.SetLeakedState(this, false);
     _operand.AssignmentHint(op);
 }
Beispiel #28
0
 public Operand IsFalse()
 {
     return(OperandExtensions.SetLeakedState(new OverloadableOperation(Operator.False, this), true));
 }
 public new ContextualOperand Subtract(Operand value)
 {
     return(OperandExtensions.SetLeakedState(new ContextualOperand(base.Subtract(value), TypeMapper), true));
 }
Beispiel #30
0
 public Operand Multiply(Operand value)
 {
     return(OperandExtensions.SetLeakedState(new OverloadableOperation(Operator.Multiply, this, value), true));
 }