-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
6 changed files
with
94 additions
and
1 deletion.
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
25 changes: 25 additions & 0 deletions
25
test/testcases/emptylines/issue_240_class_empty_lines.hxtest
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,25 @@ | ||
{ | ||
"emptyLines": { | ||
"classEmptyLines": { | ||
"beginType": 1 | ||
}, | ||
"afterLeftCurly": "keep" | ||
} | ||
} | ||
|
||
--- | ||
|
||
class Main { | ||
static function main() { | ||
doSomething(""); | ||
} | ||
} | ||
|
||
--- | ||
|
||
class Main { | ||
|
||
static function main() { | ||
doSomething(""); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
test/testcases/whitespace/issue_241_metadata_with_parameter.hxtest
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,22 @@ | ||
{} | ||
|
||
|
||
--- | ||
|
||
|
||
class Main { | ||
@:overload(function()) | ||
static function main() { | ||
trace(@:privateAccess (X).object); | ||
} | ||
} | ||
|
||
|
||
--- | ||
|
||
class Main { | ||
@:overload(function()) | ||
static function main() { | ||
trace(@:privateAccess (X).object); | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
test/testcases/whitespace/issue_241_metadata_with_parameter_with_popen_before.hxtest
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,25 @@ | ||
{ | ||
"whitespace": { | ||
"openingParenPolicy": "before" | ||
} | ||
} | ||
|
||
--- | ||
|
||
|
||
class Main { | ||
@:overload(function()) | ||
static function main() { | ||
trace(@:privateAccess (X).object); | ||
} | ||
} | ||
|
||
|
||
--- | ||
|
||
class Main { | ||
@:overload(function ()) | ||
static function main () { | ||
trace (@:privateAccess (X).object); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
test/testcases/whitespace/whitespace_after_type_parameter.hxtest
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,19 @@ | ||
{ | ||
"whitespace": { | ||
"openingParenPolicy": "before" | ||
} | ||
} | ||
|
||
|
||
--- | ||
|
||
|
||
class Main { | ||
static function main<T>():Array<T> {} | ||
} | ||
|
||
--- | ||
|
||
class Main { | ||
static function main<T> ():Array<T> {} | ||
} |