HaxeFoundation / HaxeFoundation/haxe

[display] support toplevel completion after abstract from / to

Open
#7,137 6 comments 0 reactions 1 assignee Claimed by @Simn View on GitHub
feature-ide
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

Similar to completion after `extends` and `implements` for classes, completion on `from |` and `to |` should be allowed. However, right now that fails with "no completion point found".

```haxe
package cases;

class Issue7137 extends DisplayTestCase {
/**
abstract Foo1(Int) from {-1-} {}
abstract Foo2(Int) to {-2-} {}

class Main {
static function main() {}
}
**/
function test() {
eq(true, hasToplevel(toplevel(pos(1)), "Type", "Float"));
eq(true, hasToplevel(toplevel(pos(2)), "Type", "Float"));
}
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.