Support for Haxe dependencies

This commit is contained in:
Alan Hamlett 2018-03-14 23:35:14 -07:00
parent fcdc60afa1
commit 882dc7e4b2
3 changed files with 80 additions and 0 deletions

View file

@ -0,0 +1,18 @@
import alpha.ds.StringMap;
import bravo.macro.*;
import Math.random;
#if js
js.Browser.alert("Hello");
#elseif sys
Sys.println("Hello");
#end
import charlie.fromCharCode in f;
import delta.something;
import delta.another.thing;
class Main {
static public function main() {
// instead of: new haxe.ds.StringMap();
new StringMap();
}
}

View file

@ -462,3 +462,17 @@ class DependenciesTestCase(TestCase):
expected_lines=24,
entity='kotlin.kt',
)
def test_haxe_dependencies_detected(self):
self.shared(
expected_dependencies=[
'alpha',
'bravo',
'Math',
'charlie',
'delta',
],
expected_language='Haxe',
expected_lines=18,
entity='haxe.hx',
)