[Parser] Added typeDef printing for functions