cc @killercup this implements default parameter parsing for both flow-annotated and unannotated methods