Skip to content

Commit

Permalink
Merge pull request #334 from BalticAmadeus/312-class-statements-with-…
Browse files Browse the repository at this point in the history
…several-whitespaces-before-the-colon-are-formatted-incorrectly

Test 312 Class statements with several whitespaces before the colon are formatted incorrectly
  • Loading branch information
PauliusKu authored Mar 5, 2025
2 parents 9597f17 + ab106d8 commit f2eea5a
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 0 deletions.
13 changes: 13 additions & 0 deletions resources/functionalTests/block/61-class/input.p
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* formatterSettingsOverride */
/* { "AblFormatter.blockFormatting": true}*/
class Cosmos.DataAdmin.DataSource.GalaxyUserPermissionDataSource inherits GalaxyUserDataSource :

define variable cometSave as logical no-undo.
define private property NebulaTenantURL as character no-undo get. set.

define public property StarExternalIDValue as character no-undo get. private set.

define private variable constellationMapping as char
init "NebulaConstellation".
no-undo.
end class.
15 changes: 15 additions & 0 deletions resources/functionalTests/block/61-class/target.p
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* formatterSettingsOverride */
/* { "AblFormatter.blockFormatting": true}*/
class Cosmos.DataAdmin.DataSource.GalaxyUserPermissionDataSource inherits GalaxyUserDataSource :

define variable cometSave as logical no-undo.
define private property NebulaTenantURL as character no-undo
get.
set.

define public property StarExternalIDValue as character no-undo
get.
private set.

define private variable constellationMapping as char init "NebulaConstellation". no-undo.
end class.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* formatterSettingsOverride */
/* { "AblFormatter.blockFormatting": true}*/
CLASS Nebula.Galactic.ModelFilter.StarModelFilter
ABSTRACT USE-WIDGET-POOL: DEFINE VARIABLE oStarModel AS StarModel NO-UNDO .


CONSTRUCTOR PUBLIC StarModelFilter (poStarModel AS StarModel):
SUPER ().

ASSIGN oStarModel = poStarModel .

END CONSTRUCTOR.
END CLASS.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* formatterSettingsOverride */
/* { "AblFormatter.blockFormatting": true}*/
CLASS Nebula.Galactic.ModelFilter.StarModelFilter
ABSTRACT USE-WIDGET-POOL:
DEFINE VARIABLE oStarModel AS StarModel NO-UNDO.


CONSTRUCTOR PUBLIC StarModelFilter(poStarModel AS StarModel):
SUPER ().

ASSIGN
oStarModel = poStarModel
.

END CONSTRUCTOR.
END CLASS.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* formatterSettingsOverride */
/* { "AblFormatter.blockFormatting": true}*/
CLASS Nebula.Galactic.CosmicService.StarHandler.GalaxyMethodNotAllowedException
INHERITS Supernova
IMPLEMENTS IAstro405Error
SERIALIZABLE :

/** Default constructor
*/
CONSTRUCTOR PUBLIC GalaxyMethodNotAllowedException():
SUPER("Did you know? A day on Venus is longer than a year on Venus!":u, 0).
END CONSTRUCTOR.

END CLASS.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* formatterSettingsOverride */
/* { "AblFormatter.blockFormatting": true}*/
CLASS Nebula.Galactic.CosmicService.StarHandler.GalaxyMethodNotAllowedException
INHERITS Supernova
IMPLEMENTS IAstro405Error
SERIALIZABLE :

/** Default constructor
*/
CONSTRUCTOR PUBLIC GalaxyMethodNotAllowedException():
SUPER("Did you know? A day on Venus is longer than a year on Venus!":u, 0).
END CONSTRUCTOR.

END CLASS.

0 comments on commit f2eea5a

Please sign in to comment.