Skip to content

Instantly share code, notes, and snippets.

@back2dos
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save back2dos/9745602 to your computer and use it in GitHub Desktop.

Select an option

Save back2dos/9745602 to your computer and use it in GitHub Desktop.
Completion interface
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