
Vector of vectors causing auto-completion to stop working
Hello,
When I have a member variable that is a Vector of Vectors, auto-completion no longer completes for all member variables/methods. Here is the code:
Code:
package
{
import flash.display.Sprite;
import flash.events.Event;
/**
* ...
* @author DefaultUser (Tools -> Custom Arguments...)
*/
public class Main extends Sprite
{
// when you enter the semicolon or press enter after the following
// declaration, FlashDevelop adds extra spaces between the "." and "<"
// this causes a syntax error
private var vector:Vector.< Vector.<int> >;
public function Main():void
{
if (stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(e:Event = null):void
{
var last:int;
removeEventListener(Event.ADDED_TO_STAGE, init);
// entry point
vector = new Vector.<Vector.<int> >;
last = vector.push(new Vector.<int>);
last--;
vector[last].push(1);
vector[last].push(2);
last = vector.push(new Vector.<int>);
last--;
vector[last].push(3);
vector[last].push(4);
vector[last].push(5);
///////////////////////////////////////////////////////
// FlashDevelop does not auto-complete on any of these!
///////////////////////////////////////////////////////
print();
dummyFunction();
}
// auto-Complete doesn't work for this
private function dummyFunction():void
{
}
// auto-Complete doesn't work for this, either
private function print():void
{
var row:Vector.<int>;
var num:int;
for each (row in vector)
{
for each (num in row)
trace(num);
}
}
}
}
As noted above, when I enter "d" or "p," FlashDevelop does not give me a selection of any methods. When I use a simple Vector, auto-completion works fine.
A minor issue, as noted above, is that FlashDevelop adds spaces in Vector declarations, which causes a compilation error.
I am using r217 of 3.0.0, .Net 2.0, Windows 2000 SP 4.
Thanks.