-
-
Notifications
You must be signed in to change notification settings - Fork 670
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[display] do not consider import.hx as current module when it's not (#…
…12018) * [display] do not consider import.hx as current module when it's not * [tests] add test * [tests] 12017 was open in the meantime.. * Invert check order
- Loading branch information
Showing
4 changed files
with
28 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package cases.issues; | ||
|
||
class Issue12018 extends TestCase { | ||
function test(_) { | ||
var content = getTemplate("issues/Issue12018/Main.hx"); | ||
var transform = Markers.parse(content); | ||
|
||
vfs.putContent("Main.hx", transform.source); | ||
vfs.putContent("import.hx", getTemplate("issues/Issue12018/import.hx")); | ||
var args = ["-main", "Main"]; | ||
runHaxe(args); | ||
assertSuccess(); | ||
|
||
runHaxeJsonCb(args, DisplayMethods.Hover, {file: new FsPath("Main.hx"), offset: transform.offset(1)}, (res) -> { | ||
Assert.equals(res.item.args.path.typeName, "Main"); | ||
}); | ||
} | ||
} |
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,6 @@ | ||
// don't remove | ||
class Ma{-1-}in { | ||
static function main() { | ||
HaxeJson.parse("{}"); | ||
} | ||
} |
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 @@ | ||
import haxe.Json as HaxeJson; |