-
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
* fixed macro block with ${, fixes #215 * fixed unstable comments after typedef without semicolon, fixes #216 * changed default rules for function signature wrapping, #231 * added testcase for keys value iterator, fixes #232 * Haxe4 build is fixed
- Loading branch information
Showing
16 changed files
with
152 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
-lib hxparse | ||
-lib json2object | ||
-lib hxargs | ||
-lib compiletime | ||
|
||
-cp src | ||
|
||
|
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
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
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
24 changes: 24 additions & 0 deletions
24
test/testcases/lineends/issue_215_macro_with_dollar_block.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,24 @@ | ||
{} | ||
|
||
--- | ||
|
||
class Main { | ||
public static function main() { | ||
macro { $e0; ${loop(el)}}; | ||
macro { | ||
$e0; | ||
${loop(el)}}; | ||
} | ||
} | ||
|
||
--- | ||
|
||
class Main { | ||
public static function main() { | ||
macro {$e0; ${loop(el)}}; | ||
macro { | ||
$e0; | ||
${loop(el)} | ||
}; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
test/testcases/lineends/issue_216_typedef_without_semicolon_unstable_comments.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 @@ | ||
{} | ||
|
||
--- | ||
|
||
typedef Foo = Int | ||
|
||
/** Docs for Bar **/ | ||
typedef Bar = Float | ||
|
||
typedef Foo = Int; | ||
|
||
/** Docs for Bar **/ | ||
typedef Bar = Float | ||
|
||
|
||
--- | ||
|
||
typedef Foo = Int /** Docs for Bar **/ | ||
|
||
typedef Bar = Float | ||
|
||
typedef Foo = Int; | ||
|
||
/** Docs for Bar **/ | ||
typedef Bar = Float |
42 changes: 42 additions & 0 deletions
42
test/testcases/lineends/issue_231_anon_function_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,42 @@ | ||
{ | ||
"wrapping": { | ||
"methodChain": { | ||
"defaultWrap": "keep", | ||
"rules": [] | ||
} | ||
} | ||
} | ||
|
||
--- | ||
|
||
class Main { | ||
function main() { | ||
owner.addEntity(new Entity() | ||
.addComponent(_sprite = FlumpAssets.getMovieSprite("mute_button", LibraryName.INTERFACE)) | ||
.addComponent(new PointerTap(function(e) { | ||
trace("yes"); | ||
}))); | ||
owner.addEntity(new Entity() | ||
.addComponent(_sprite = FlumpAssets.getMovieSprite("mute_button", LibraryName.INTERFACE)) | ||
.addComponent(new PointerTap(function(e:Any) { | ||
trace("yes"); | ||
}))); | ||
} | ||
} | ||
|
||
--- | ||
|
||
class Main { | ||
function main() { | ||
owner.addEntity(new Entity() | ||
.addComponent(_sprite = FlumpAssets.getMovieSprite("mute_button", LibraryName.INTERFACE)) | ||
.addComponent(new PointerTap(function(e) { | ||
trace("yes"); | ||
}))); | ||
owner.addEntity(new Entity() | ||
.addComponent(_sprite = FlumpAssets.getMovieSprite("mute_button", LibraryName.INTERFACE)) | ||
.addComponent(new PointerTap(function(e:Any) { | ||
trace("yes"); | ||
}))); | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
test/testcases/lineends/issue_232_key_value_iterator.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,29 @@ | ||
{} | ||
|
||
--- | ||
|
||
class Main { | ||
public static function main() { | ||
for (key=>value in map) { | ||
trace(key, value); | ||
} | ||
|
||
for (index=> value in array) { | ||
trace(key, value); | ||
} | ||
} | ||
} | ||
|
||
--- | ||
|
||
class Main { | ||
public static function main() { | ||
for (key => value in map) { | ||
trace(key, value); | ||
} | ||
|
||
for (index => value in array) { | ||
trace(key, value); | ||
} | ||
} | ||
} |