Ref<Type> typeRef = new Ref<Type>();
for (String fieldName : g.getFieldNames()) {
resolveIdentifier(fieldsSymTab, fieldName, symRef, typeRef);
Type fieldType = typeRef.item;
AssignedSymbol fieldSym = symRef.item;
typedFields.add(new TypedField(fieldSym.getAssignedName(), fieldType));
}
g.setFieldTypes(typedFields);
}