ignore interfaces (TODO: chech interfaces meta)

This commit is contained in:
Dima Granetchi
2014-12-28 15:22:07 +02:00
parent 2b3e0d0ea7
commit 6afcc54a6c
2 changed files with 13 additions and 6 deletions
+9 -3
View File
@@ -31,14 +31,20 @@ class BindMacros {
macro static public function buildIBindable():Array<Field> {
var type = Context.getLocalType();
if (processed.indexOf(type) > -1) {
return null;
return null;
}
processed.push(type);
var classType = type.getClass();
if (classType.isInterface) {
return null;
}
if (bindingSignalProvider == null) {
bindingSignalProvider = new bindx.BindSignal.BindSignalProvider();
}
var classType = type.getClass();
var fields = Context.getBuildFields();
var meta = classType.bindableMeta();
+4 -3
View File
@@ -41,13 +41,14 @@ class InheritanceTest extends BuddySuite {
}
interface IIBindable extends IBindable {
@:bindable
var i(default, set):Int;
}
@:bindable
class BindableParent implements IIBindable {
public function new() {}
@:bindable
public var i:Int;
}