private static void ResolveBaseType(JsType type, JsType currentType) { var baseType = JsTypeHelper.GetType(type.baseTypeName); if (baseType == null) { baseType = JsTypeHelper.GetTypeIgnoreNamespace(type.baseTypeName, true); } if (!baseType.isCompiled) { CompileType(baseType); } currentType.baseType = baseType; baseType.derivedTypes.push(currentType); }
private static void ResolveInterfaces(JsType type, JsType currentType) { if (type.interfaceNames == null) { return; } for (var i = 0; i < type.interfaceNames.length; i++) { var iName = type.interfaceNames[i].As <string>(); var iface = JsTypeHelper.GetType(iName); if (iface == null) { iface = JsTypeHelper.GetTypeIgnoreNamespace(iName, true); } if (!iface.isCompiled) { CompileType(iface); } currentType.interfaces.push(iface); } }