HaxeFlixel/flixel

View on GitHub
flixel/system/debug/watch/WatchEntryData.hx

Summary

Maintainability
Test Coverage
package flixel.system.debug.watch;

#if hscript
import hscript.Expr;
#end

enum WatchEntryData
{
    /**
     * `object.field` resolved via `Reflect.getProperty()`.
     */
    FIELD(object:Dynamic, field:String);

    /**
     * Manually updated values.
     */
    QUICK(value:String);

    /**
     * Haxe expression evaluated with hscript.
     */
    EXPRESSION(expression:String, parsedExpr:#if hscript Expr #else String #end);
    
    /**
     * A function that returns the value to display.
     */
    FUNCTION(func:()->Dynamic);
}