jgranick / md-haxebinding

Adds haxe and NME support to MonoDevelop
89 stars 16 forks source link

Code completion does not work for some case #18

Open andyli opened 12 years ago

andyli commented 12 years ago

Code completion does not work for me with the following setup:

And it only does not work in some very specific cases... For example:

Using casalib haxelib (haxelib install casalib) Replace org/casalib/util/NumberUtil.hx with:

package org.casalib.util;
    class NumberUtil  {
        /**
            Evaluates <code>val1</code> and <code>val2</code> and returns the smaller value. Unlike <code>Math.min</code> this method will return the defined value if the other value is <code>null</code> or not a number.

            @param val1: A value to compare.
            @param val2: A value to compare.
            @return Returns the smallest value, or the value out of the two that is defined and valid.
            @example
                <code>
                    trace(NumberUtil.min(5, null)); // Traces 5
                    trace(NumberUtil.min(5, "CASA")); // Traces 5
                    trace(NumberUtil.min(5, 13)); // Traces 5
                </code>
        */
        public static function min(val1:Dynamic):Float {
            return 0;
        }

    }

No code completion with:

using org.casalib.util.NumberUtil;

class TestHaxe {
    static function main() {
        "".
    }
}

Interesting that code completion works if I put NumberUtil into TestHaxe.hx ... And the example also work in eclihx...