private ILAssignmentGenerator GetAssignmentGenerator(LHSExpressionAST assignExpression) { if (assignExpression is ArrayAccessAST) { return(new ILGeneratorArrayAssignment(this, (ArrayAccessAST)assignExpression)); } if (assignExpression is RecordAccessAST) { return(new ILGeneratorRecordFieldAssignment(this, (RecordAccessAST)assignExpression)); } if (assignExpression is VarAST) { return(new ILGeneratorVarAssignment(this, (VarAST)assignExpression)); } throw new NotImplementedException(); }
protected AssignExpressionAST Assign(LHSExpressionAST left, ExpressionAst right) { return(new AssignExpressionAST(left, right)); }