public void AddTypeReference(string moduleName, TypeBindingInfo typeBindingInfo, string[] elements, string jsName) { var ns = CodeGenUtils.NormalizeEx(elements, jsName); var type = typeBindingInfo.type; _runtime.AddTypeReference(_moduleReg, type, register => typeBindingInfo.DoReflectBind(register), ns); }
public void AddTypeReference(string moduleName, TypeBindingInfo typeBindingInfo, string[] elements, string jsName) { var typeDB = _runtime.GetTypeDB(); var ns = CodeGenUtils.NormalizeEx(elements, jsName); var type = typeBindingInfo.type; var crossbind = typeBindingInfo.crossbind; _runtime.AddTypeReference(_moduleReg, type, typeDB.GetDynamicTypeBind(type, crossbind), ns); }
public void AddTypeReference(string moduleName, TypeBindingInfo typeBindingInfo) { _runtime.AddTypeReference(_moduleReg, typeBindingInfo.type, register => typeBindingInfo.DoReflectBind(register, _moduleReg), typeBindingInfo.tsTypeNaming.jsFullNameForReflectBind); }