minor speedup
This commit is contained in:
@@ -9,7 +9,6 @@ import haxe.macro.Context;
|
||||
|
||||
using haxe.macro.Tools;
|
||||
using bindx.macro.MacroUtils;
|
||||
using Lambda;
|
||||
|
||||
@:access(bindx.macro.BindableMacros)
|
||||
class BindMacros {
|
||||
|
||||
@@ -8,7 +8,6 @@ import bindx.BindSignal;
|
||||
|
||||
using bindx.macro.MacroUtils;
|
||||
using haxe.macro.Tools;
|
||||
using Lambda;
|
||||
|
||||
class BindSignalProvider implements IBindingSignalProvider {
|
||||
|
||||
|
||||
@@ -191,15 +191,15 @@ class BindableMacros {
|
||||
|
||||
static inline function injectBindableMeta(fields:Array<Field>, meta:MetadataEntry):Void {
|
||||
for (f in fields) {
|
||||
if (f.hasBindableMeta()) continue;
|
||||
if (f.access.exists(function (it) return it.equals(APrivate))) continue;
|
||||
if (f.access.indexOf(APrivate) > -1 || f.hasBindableMeta()) continue;
|
||||
|
||||
var forceParam = meta.findParam(FORCE);
|
||||
if (isFieldBindable(f, fields, forceParam.isNotNullAndTrue()))
|
||||
if (isFieldBindable(f, fields, forceParam.isNotNullAndTrue())) {
|
||||
switch (f.kind) {
|
||||
case FFun(_):
|
||||
case _: f.meta.push({name:MetaUtils.BINDABLE_META, pos:f.pos, params:meta.params});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ import haxe.macro.Expr;
|
||||
import haxe.macro.Context;
|
||||
|
||||
using haxe.macro.Tools;
|
||||
using Lambda;
|
||||
|
||||
class MetaUtils {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user