@:noCompletion

200 views
Skip to first unread message

Gang Sun

unread,
Nov 6, 2013, 12:02:37 AM11/6/13
to haxe...@googlegroups.com
I found there are many @:noCompletion in the source code, and the official description is
@:noCompletion
: does not list the field as part of compiler completion results (since 3.0).

What it means?

thanks.

Juraj Kirchheim

unread,
Nov 6, 2013, 4:00:44 AM11/6/13
to haxe...@googlegroups.com
It means that the field will not show up during completion. There is
also @:noUsing, which makes a static field non-eligible for
`using`-extensions.

Regards,
Juraj
> --
> To post to this group haxe...@googlegroups.com
> http://groups.google.com/group/haxelang?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Haxe" group.
> For more options, visit https://groups.google.com/groups/opt_out.

孙刚

unread,
Nov 8, 2013, 12:31:20 AM11/8/13
to haxe...@googlegroups.com
I am not sure about the effect of "the field will not show up during completion".

what scenario we use this metadata? remove the definition? or just don't let other modules to use it.

I am lack of some basic concept. what means the completion, which means "compling or link to the target"?

thanks.


> Date: Wed, 6 Nov 2013 10:00:44 +0100
> Subject: Re: [haxe] @:noCompletion
> From: back...@gmail.com
> To: haxe...@googlegroups.com

Luca

unread,
Nov 8, 2013, 4:08:40 AM11/8/13
to haxe...@googlegroups.com
If an editor is making use of Haxe completion, then when you type things like object. you will get a list of its fields and methods etc, @:noCompletion will hide that particular field/method from appearing in the list. It does not mean you cannot 'use' it, only that you will not be told of its existance by completion.

SunGang

unread,
Nov 8, 2013, 4:17:48 AM11/8/13
to haxe...@googlegroups.com
thank you very much.


Date: Fri, 8 Nov 2013 01:08:40 -0800
From: delta...@hotmail.com
To: haxe...@googlegroups.com

Subject: Re: [haxe] @:noCompletion

If an editor is making use of Haxe completion, then when you type things like object. you will get a list of its fields and methods etc, @:noCompletion will hide that particular field/method from appearing in the list. It does not mean you cannot 'use' it, only that you will not be told of its existance by completion.

Reply all
Reply to author
Forward
0 new messages