comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/template/ClassElementFactory.java @ 9227:6d92fdf1c999

Fixes several minor issues.
author Christian Humer <christian.humer@gmail.com>
date Mon, 22 Apr 2013 12:52:00 +0200
parents 97ad6d3e7557
children
comparison
equal deleted inserted replaced
9226:e27f125147d6 9227:6d92fdf1c999
73 method.addParameter(new CodeVariableElement(field.asType(), fieldName)); 73 method.addParameter(new CodeVariableElement(field.asType(), fieldName));
74 builder.startStatement(); 74 builder.startStatement();
75 builder.string("this."); 75 builder.string("this.");
76 builder.string(fieldName); 76 builder.string(fieldName);
77 builder.string(" = "); 77 builder.string(" = ");
78 if (isAssignable(field.asType(), getContext().getTruffleTypes().getNode())) { 78 if (isAssignable(getContext(), field.asType(), getContext().getTruffleTypes().getNode())) {
79 builder.string("adoptChild(").string(fieldName).string(")"); 79 builder.string("adoptChild(").string(fieldName).string(")");
80 } else { 80 } else {
81 builder.string(fieldName); 81 builder.string(fieldName);
82 } 82 }
83 builder.end(); // statement 83 builder.end(); // statement