FeathersUI backend for coconut.ui

The safest path is via the typed AST:

switch Context.typeExpr(e).expr {
  case TField(_, FStatic(_.get() => cl, _.get() => f)):
    trace(cl.pack.concat([cl.name]).join('.') + '.' + f.name + '=' + TypedExprTools.toString(f.expr()));
  default:
}

In this case you’ll find that f.expr().expr is TConst(TString(v)) where v is the value you’re after.

1 Like