예제 #1
0
파일: Assignment.java 프로젝트: gufanyi/wdp
 public Assignment(Expression lhs, Expression expression, int sourceEnd) {
   // lhs is always a reference by construction ,
   // but is build as an expression ==> the checkcast cannot fail
   this.lhs = lhs;
   lhs.bits |= IsStrictlyAssigned; // tag lhs as assigned
   this.expression = expression;
   this.sourceStart = lhs.sourceStart;
   this.sourceEnd = sourceEnd;
 }
예제 #2
0
 // expression.implicitConversion holds the cast for baseType casting
 public CastExpression(Expression expression, Expression type) {
   this.expression = expression;
   this.type = type;
   type.bits |= ASTNode.IgnoreRawTypeCheck; // no need to worry about raw type usage
 }