Skip to content

Extract procedure does not handling Exit correctly #152

@PeterBizz

Description

@PeterBizz

When using the extract procedure function, in some cases the exit handling is not handled properly.
The follwing situation is a over simplified example (pseudo code)


procedure x (y:integer;z:integer):boolean;
begin
  _if y>z then exit(true);_
  exit(false);
end;

replace the if line with procedure results in :


procedure x (y:integer;z:integer):boolean;
begin
     newProcedure(y, z);
      exit(false);
end;

Solutioin: Since the line(s) selected for extraction do not all end in a return value the extract procedure request should fail

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions