View unanswered posts | View active topics


Reply to topic  [ 5 posts ] 
Inherited properties don't appear in the intellisense? 
Author Message
Member

Joined: Thu Apr 12, 2012 5:02 am
Posts: 8
Post Inherited properties don't appear in the intellisense?
Pretty much what the title says. I have created a class called Human, which extends the superclass Avatar. Inside Avatar there is a protected property called _species and a getter called species. Now if I start typing this._s inside the Human class, _species doesn't show on the intellisense. Likewise if I create a Human object called human and start typing human.s, the getter property doesn't show in the intellisense. This is really annoying and makes using inheritance pointless from the stress this will cause, I hope it's a bug or some setting has been disabled etc.

Currently on FlashDevelop 4.0.1 RTM.


Thanks to any that help me and the Google searchers that come across this thread.


Thu Apr 12, 2012 5:15 am
Profile
Member

Joined: Thu Apr 12, 2012 5:02 am
Posts: 8
Post Re: Inherited properties don't appear in the intellisense?
Also noticed another issue possibly related, if you create a local variable inside the class you're creating an object of, the intellisense lists the private properties of the class even though I'm accessing it from a public point of view. This happens in a complicated scenario involving the static keyword, example below.

Example:
Code:
public class Example
{
    private static var _noAccess:Array;

    public static function test():void
    {
        for each(var example:Example in _noAccess)
        {
            // typing "example." would show "_noAccess" in the intellisense even though I'm accessing it from the outside
        }
    }
}


Pretty complicated scenario but for factory classes/keeping track of instances, this can be pretty common.


Thu Apr 12, 2012 9:45 am
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 10749
Location: Paris, France
Post Re: Inherited properties don't appear in the intellisense?
Strange, will check that.


Sun Apr 15, 2012 8:36 pm
Profile WWW
Member

Joined: Thu Apr 12, 2012 5:02 am
Posts: 8
Post Re: Inherited properties don't appear in the intellisense?
Much appreciated, thank you! Loving the software btw haha :D


Mon Apr 16, 2012 12:14 am
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 10749
Location: Paris, France
Post Re: Inherited properties don't appear in the intellisense?
I can't reproduce the first problems (protected members not in completion). Maybe it happens under specific circumstances so I invite you to provide a sample project where this happens.

Second report (protected members of instance) is actually valid for the compiler.


Thu Apr 19, 2012 7:42 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.