private JField createField(FieldBinding binding) {
JDeclaredType enclosingType = (JDeclaredType) get(binding.declaringClass);
JField field =
new JField(SourceOrigin.UNKNOWN, intern(binding.name), enclosingType, get(binding.type),
binding.isStatic(), GwtAstBuilder.getFieldDisposition(binding));
enclosingType.addField(field);
return field;
}
private JParameter createParameter(SourceInfo info, TypeBinding paramType,
JMethod enclosingMethod, int argPosition) {