issues
search
DavidFeldhoff
/
al-codeactions
MIT License
17
stars
8
forks
source link
v0.2.2
#34
Closed
DavidFeldhoff
closed
4 years ago
DavidFeldhoff
commented
4 years ago
Create Procedure Code Action
supports creation of procedure in Test-Methods
supports various more statements where procedures could be created and the return type is identified correctly, e.g.:
As parameter of another procedure call: The procedure takes the type of the appropriate parameter as return value.
If Statement: created procedure returns boolean
Assignment statement: created procedure returns the type of the variable which will be assigned
Mathematical statements like add, subtract, multiply: created procedure returns Decimal or Integer
Logical Statements like "true && notexistingprocedure()" returns boolean
...
supports creation of multiline procedures
temporary variables will be declared as var-Parameters
Extract to procedure Code Action
Remove "Preferred Fix"-Property as it isn't working and does not make much sense.
hand over the return value of a procedure if it is used inside the selection
Technical rebuild of extension