You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importhaxe.macro.Context;
usingLambda;
classBuilder
{
publicstaticfunctionbuild() {
varfields=Context.getBuildFields();
varstartField=fields.find(function(f) returnf.name=="start");
// Commenting out this line makes it work:startField.meta.push({name: ":noCompletion", params: [], pos: Context.currentPos()});
returnfields;
}
}
haxe --display Main.hx@0 returns <list></list>, so that seems to work.
The text was updated successfully, but these errors were encountered:
Yes, it seems to work, I got it confused with the same issue for Haxedevelop. But I see now that there is no autocompletion for startField inside Builder.hx.
importhaxe.macro.Context;
usingLambda;
classBuilder
{
publicstaticfunctionbuild() {
varfields=Context.getBuildFields();
fields.|// autocompletion for array works finevarstartField=fields.find(function(f) returnf.name=="start");
startField.meta.push({name: ":noCompletion", params: [], pos: Context.currentPos()});
startField.|// no autocompletion, no errorreturnfields;
}
}
With Haxe 3.4, adding
@:noCompletion
to a class created with a build macro prevents autocompletion.Main.hx
Builder.hx
haxe --display Main.hx@0
returns<list></list>
, so that seems to work.The text was updated successfully, but these errors were encountered: