-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #274 from BalticAmadeus/261-format-functionmethod-…
…arguments-over-multiple-lines 261 format function method arguments over multiple lines
- Loading branch information
Showing
29 changed files
with
499 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 4 additions & 5 deletions
9
resources/functionalTests/block/20function-block-end3/input.p
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.blockFormatting": true}*/ | ||
|
||
function fun returns integer (input p1 as integer, | ||
input-output p2 as logical, | ||
output p3 as character): | ||
return p1. | ||
end function. | ||
function GetDLC returns character | ||
(): | ||
define variable cValue as character no-undo. | ||
end function. |
7 changes: 3 additions & 4 deletions
7
resources/functionalTests/block/20function-block-end3/target.p
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.blockFormatting": true}*/ | ||
|
||
function fun returns integer (input p1 as integer, | ||
input-output p2 as logical, | ||
output p3 as character): | ||
return p1. | ||
function GetDLC returns character | ||
(): | ||
define variable cValue as character no-undo. | ||
end function. |
4 changes: 2 additions & 2 deletions
4
resources/functionalTests/block/25function-block-inner5/target.p
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.blockFormatting": true}*/ | ||
|
||
function fun returns integer (input p1 as integer, | ||
function fun returns integer (input p1 as integer, | ||
input-output p2 as logical, | ||
output p3 as character): | ||
output p3 as character): | ||
return p1. | ||
end function. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.functionParameterFormatting": true, | ||
"AblFormatter.functionParameterFormattingAlignParameterTypes": "No"}*/ | ||
|
||
class FunClass: | ||
method public Table fill(poQuery as Query, poOnNotAvailable as QueryNotAvailable): | ||
end end method. | ||
end class. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.functionParameterFormatting": true, | ||
"AblFormatter.functionParameterFormattingAlignParameterTypes": "No"}*/ | ||
|
||
class FunClass: | ||
method public Table fill(poQuery as Query, | ||
poOnNotAvailable as QueryNotAvailable): | ||
end end method. | ||
end class. |
7 changes: 7 additions & 0 deletions
7
resources/functionalTests/functionParameter/2function/input.p
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.functionParameterFormatting": true, | ||
"AblFormatter.functionParameterFormattingAlignParameterTypes": "Yes"}*/ | ||
|
||
FUNCTION doubler RETURNS INTEGER(INPUT parm1 AS INTEGER): | ||
RETURN (2 * parm1). | ||
END FUNCTION. |
7 changes: 7 additions & 0 deletions
7
resources/functionalTests/functionParameter/2function/target.p
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.functionParameterFormatting": true, | ||
"AblFormatter.functionParameterFormattingAlignParameterTypes": "Yes"}*/ | ||
|
||
FUNCTION doubler RETURNS INTEGER(INPUT parm1 AS INTEGER): | ||
RETURN (2 * parm1). | ||
END FUNCTION. |
11 changes: 11 additions & 0 deletions
11
resources/functionalTests/functionParameter/3dataset-align-types/input.p
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.functionParameterFormatting": true, | ||
"AblFormatter.functionParameterFormattingAlignParameterTypes": "Yes"}*/ | ||
|
||
class MyEntityClass: | ||
method public void Fetch( input-output dataset dsMyDataset,poParameter2 as integer, | ||
piParameterInteger as myParameter): | ||
|
||
end method. | ||
end class. | ||
|
12 changes: 12 additions & 0 deletions
12
resources/functionalTests/functionParameter/3dataset-align-types/target.p
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.functionParameterFormatting": true, | ||
"AblFormatter.functionParameterFormattingAlignParameterTypes": "Yes"}*/ | ||
|
||
class MyEntityClass: | ||
method public void Fetch(input-output dataset dsMyDataset, | ||
poParameter2 as integer, | ||
piParameterInteger as myParameter): | ||
|
||
end method. | ||
end class. | ||
|
9 changes: 9 additions & 0 deletions
9
resources/functionalTests/functionParameter/3dataset-handle/input.p
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.functionParameterFormatting": true, | ||
"AblFormatter.functionParameterFormattingAlignParameterTypes": "Yes"}*/ | ||
|
||
class FunkyWorld.Util.KittyLogHelper: | ||
method private void SnuggleDataset(dataset-handle dsCuddlePuddle bind): | ||
/* PURR */ | ||
end method. | ||
end class. |
9 changes: 9 additions & 0 deletions
9
resources/functionalTests/functionParameter/3dataset-handle/target.p
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.functionParameterFormatting": true, | ||
"AblFormatter.functionParameterFormattingAlignParameterTypes": "Yes"}*/ | ||
|
||
class FunkyWorld.Util.KittyLogHelper: | ||
method private void SnuggleDataset(dataset-handle dsCuddlePuddle bind): | ||
/* PURR */ | ||
end method. | ||
end class. |
16 changes: 16 additions & 0 deletions
16
resources/functionalTests/functionParameter/3table-handle/input.p
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.functionParameterFormatting": true, | ||
"AblFormatter.functionParameterFormattingAlignParameterTypes": "Yes"}*/ | ||
|
||
class Olympus.Util.HermesHelper: | ||
method public static void ExecuteOracleQuery(pcOracleString as character, | ||
pcOlympianFields as character, | ||
piNumProphecies as integer, | ||
output table-handle phOracleTable): | ||
|
||
ZeusCollectorHelper:SmiteObject(hHermesQuery). | ||
ZeusCollectorHelper:SmiteObject(hDionysusBuffer). | ||
|
||
end method. | ||
|
||
end class. |
16 changes: 16 additions & 0 deletions
16
resources/functionalTests/functionParameter/3table-handle/target.p
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.functionParameterFormatting": true, | ||
"AblFormatter.functionParameterFormattingAlignParameterTypes": "Yes"}*/ | ||
|
||
class Olympus.Util.HermesHelper: | ||
method public static void ExecuteOracleQuery(pcOracleString as character, | ||
pcOlympianFields as character, | ||
piNumProphecies as integer, | ||
output table-handle phOracleTable): | ||
|
||
ZeusCollectorHelper:SmiteObject(hHermesQuery). | ||
ZeusCollectorHelper:SmiteObject(hDionysusBuffer). | ||
|
||
end method. | ||
|
||
end class. |
7 changes: 7 additions & 0 deletions
7
resources/functionalTests/functionParameter/4function-align/input.p
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.functionParameterFormatting": true, | ||
"AblFormatter.functionParameterFormattingAlignParameterTypes": "Yes"}*/ | ||
|
||
function finalShot returns character (input myDribbleShot as character, output tipOffAll as TipOff): | ||
|
||
end function. |
8 changes: 8 additions & 0 deletions
8
resources/functionalTests/functionParameter/4function-align/target.p
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.functionParameterFormatting": true, | ||
"AblFormatter.functionParameterFormattingAlignParameterTypes": "Yes"}*/ | ||
|
||
function finalShot returns character (input myDribbleShot as character, | ||
output tipOffAll as TipOff): | ||
|
||
end function. |
8 changes: 8 additions & 0 deletions
8
resources/functionalTests/functionParameter/4function/input.p
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.functionParameterFormatting": true, | ||
"AblFormatter.functionParameterFormattingAlignParameterTypes": "No"}*/ | ||
|
||
function finalShot returns character (input myDribble as character, output tipOff as character): | ||
|
||
end function. | ||
|
9 changes: 9 additions & 0 deletions
9
resources/functionalTests/functionParameter/4function/target.p
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* formatterSettingsOverride */ | ||
/* { "AblFormatter.functionParameterFormatting": true, | ||
"AblFormatter.functionParameterFormattingAlignParameterTypes": "No"}*/ | ||
|
||
function finalShot returns character (input myDribble as character, | ||
output tipOff as character): | ||
|
||
end function. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.