Last active
August 29, 2015 13:57
-
-
Save back2dos/9745602 to your computer and use it in GitHub Desktop.
Completion interface
This file contains hidden or 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
| typedef CompletionPoint = { | |
| file:String, | |
| offset:Int | |
| } | |
| interface HaxeCompletion { | |
| function field(at:CompletionPoint):Array<haxe.macro.ClassField>; | |
| function usage(at:CompletionPoint):Array<haxe.macro.Position>; | |
| function toplevel(at:CompletionPoint):Array<TopLevel>; | |
| } | |
| typedef TopLevel = { | |
| name:String, | |
| ?pos:haxe.macro.Position, | |
| kind:TopLevelKind, | |
| } | |
| enum TopLevelKind { | |
| Member; | |
| Static; | |
| Local; | |
| Enum; | |
| Global; | |
| Type(path:haxe.macro.TypePath);//if I understood the documentation correctly | |
| Package; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment