File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
NativeScript/runtime/modules/module
metadata-generator/src/IR Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -328,8 +328,14 @@ std::string ModuleInternal::ResolvePathFromPackageJson(
328
328
std::string ModuleInternal::ResolvePath (napi_env env,
329
329
const std::string& baseDir,
330
330
const std::string& moduleName) {
331
+ std::string moduleNameCopy = moduleName;
332
+
333
+ if (moduleName.starts_with (" ~" )) {
334
+ moduleNameCopy = RuntimeConfig.ApplicationPath + moduleNameCopy.substr (1 );
335
+ }
336
+
331
337
std::filesystem::path baseDirPath (baseDir);
332
- std::filesystem::path moduleNamePath (moduleName );
338
+ std::filesystem::path moduleNamePath (moduleNameCopy );
333
339
std::filesystem::path fullPath = baseDirPath / moduleNamePath;
334
340
335
341
bool isDirectory = false ;
Original file line number Diff line number Diff line change @@ -89,8 +89,11 @@ MemberDecl::MemberDecl(CXCursor cursor,
89
89
90
90
CXString cxname = clang_Cursor_getObjCPropertyGetterName (cursor);
91
91
getterSelector = clang_getCString (cxname);
92
- name = jsifySelector (getterSelector);
92
+ CXString cxPropertyName = clang_getCursorSpelling (cursor);
93
+ std::string propertyName = clang_getCString (cxPropertyName);
94
+ name = jsifyName (propertyName);
93
95
clang_disposeString (cxname);
96
+ clang_disposeString (cxPropertyName);
94
97
95
98
cxname = clang_Cursor_getObjCPropertySetterName (cursor);
96
99
setterSelector = clang_getCString (cxname);
You can’t perform that action at this time.
0 commit comments