diff --git a/koala-wrapper/native/src/bridges.cc b/koala-wrapper/native/src/bridges.cc index 31984c2ddffda64a64b6894e1f4807b6413e77ca..1f47a0433f5997edfff998af058b71bbb739854c 100644 --- a/koala-wrapper/native/src/bridges.cc +++ b/koala-wrapper/native/src/bridges.cc @@ -70,7 +70,7 @@ KNativePointer impl_AnnotationAllowedAnnotations(KNativePointer contextPtr, KNat auto context = reinterpret_cast(contextPtr); auto node = reinterpret_cast(nodePtr); std::size_t params_len = 0; - auto annotations = GetImpl()->AnnotationAllowedAnnotations(context, node, ¶ms_len); + auto annotations = GetImpl()->AnnotationAllowedAnnotationsMutable(context, node, ¶ms_len); return new std::vector(annotations, annotations + params_len); } KOALA_INTEROP_3(AnnotationAllowedAnnotations, KNativePointer, KNativePointer, KNativePointer, KNativePointer) diff --git a/koala-wrapper/native/src/generated/bridges.cc b/koala-wrapper/native/src/generated/bridges.cc index e1de4b1a1b14d16fe69ec41845aedd757f068cdf..6488c1aa3cf311cbb7f565a0b68a8974f8fa885e 100644 --- a/koala-wrapper/native/src/generated/bridges.cc +++ b/koala-wrapper/native/src/generated/bridges.cc @@ -151,7 +151,7 @@ KNativePointer impl_ClassPropertyAnnotations(KNativePointer context, KNativePoin const auto _context = reinterpret_cast(context); const auto _receiver = reinterpret_cast(receiver); std::size_t length; - auto result = GetImpl()->ClassPropertyAnnotations(_context, _receiver, &length); + auto result = GetImpl()->ClassPropertyAnnotationsMutable(_context, _receiver, &length); return new std::vector(result, result + length); } KOALA_INTEROP_2(ClassPropertyAnnotations, KNativePointer, KNativePointer, KNativePointer); @@ -293,7 +293,7 @@ KInt impl_ETSFunctionTypeIrFlags(KNativePointer context, KNativePointer receiver { const auto _context = reinterpret_cast(context); const auto _receiver = reinterpret_cast(receiver); - auto result = GetImpl()->ETSFunctionTypeIrFlags(_context, _receiver); + auto result = GetImpl()->ETSFunctionTypeIrFlagsConst(_context, _receiver); return result; } KOALA_INTEROP_2(ETSFunctionTypeIrFlags, KInt, KNativePointer, KNativePointer); @@ -1517,7 +1517,7 @@ KNativePointer impl_FunctionDeclarationAnnotations(KNativePointer context, KNati const auto _context = reinterpret_cast(context); const auto _receiver = reinterpret_cast(receiver); std::size_t length; - auto result = GetImpl()->FunctionDeclarationAnnotations(_context, _receiver, &length); + auto result = GetImpl()->FunctionDeclarationAnnotationsMutable(_context, _receiver, &length); return new std::vector(result, result + length); } KOALA_INTEROP_2(FunctionDeclarationAnnotations, KNativePointer, KNativePointer, KNativePointer); @@ -1971,7 +1971,7 @@ KNativePointer impl_TSInterfaceDeclarationExtends(KNativePointer context, KNativ const auto _context = reinterpret_cast(context); const auto _receiver = reinterpret_cast(receiver); std::size_t length; - auto result = GetImpl()->TSInterfaceDeclarationExtends(_context, _receiver, &length); + auto result = GetImpl()->TSInterfaceDeclarationExtendsMutable(_context, _receiver, &length); return new std::vector(result, result + length); } KOALA_INTEROP_2(TSInterfaceDeclarationExtends, KNativePointer, KNativePointer, KNativePointer); @@ -2029,7 +2029,7 @@ KNativePointer impl_TSInterfaceDeclarationAnnotations(KNativePointer context, KN const auto _context = reinterpret_cast(context); const auto _receiver = reinterpret_cast(receiver); std::size_t length; - auto result = GetImpl()->TSInterfaceDeclarationAnnotations(_context, _receiver, &length); + auto result = GetImpl()->TSInterfaceDeclarationAnnotationsMutable(_context, _receiver, &length); return new std::vector(result, result + length); } KOALA_INTEROP_2(TSInterfaceDeclarationAnnotations, KNativePointer, KNativePointer, KNativePointer); @@ -2122,7 +2122,7 @@ KNativePointer impl_VariableDeclarationAnnotations(KNativePointer context, KNati const auto _context = reinterpret_cast(context); const auto _receiver = reinterpret_cast(receiver); std::size_t length; - auto result = GetImpl()->VariableDeclarationAnnotations(_context, _receiver, &length); + auto result = GetImpl()->VariableDeclarationAnnotationsMutable(_context, _receiver, &length); return new std::vector(result, result + length); } KOALA_INTEROP_2(VariableDeclarationAnnotations, KNativePointer, KNativePointer, KNativePointer); @@ -2712,7 +2712,7 @@ KNativePointer impl_TSTypeAliasDeclarationAnnotations(KNativePointer context, KN const auto _context = reinterpret_cast(context); const auto _receiver = reinterpret_cast(receiver); std::size_t length; - auto result = GetImpl()->TSTypeAliasDeclarationAnnotations(_context, _receiver, &length); + auto result = GetImpl()->TSTypeAliasDeclarationAnnotationsMutable(_context, _receiver, &length); return new std::vector(result, result + length); } KOALA_INTEROP_2(TSTypeAliasDeclarationAnnotations, KNativePointer, KNativePointer, KNativePointer); @@ -2944,7 +2944,7 @@ KNativePointer impl_ScriptFunctionParams(KNativePointer context, KNativePointer const auto _context = reinterpret_cast(context); const auto _receiver = reinterpret_cast(receiver); std::size_t length; - auto result = GetImpl()->ScriptFunctionParams(_context, _receiver, &length); + auto result = GetImpl()->ScriptFunctionParamsMutable(_context, _receiver, &length); return new std::vector(result, result + length); } KOALA_INTEROP_2(ScriptFunctionParams, KNativePointer, KNativePointer, KNativePointer); @@ -2964,7 +2964,7 @@ KNativePointer impl_ScriptFunctionReturnStatements(KNativePointer context, KNati const auto _context = reinterpret_cast(context); const auto _receiver = reinterpret_cast(receiver); std::size_t length; - auto result = GetImpl()->ScriptFunctionReturnStatements(_context, _receiver, &length); + auto result = GetImpl()->ScriptFunctionReturnStatementsMutable(_context, _receiver, &length); return new std::vector(result, result + length); } KOALA_INTEROP_2(ScriptFunctionReturnStatements, KNativePointer, KNativePointer, KNativePointer); @@ -3349,7 +3349,7 @@ KNativePointer impl_ScriptFunctionAnnotations(KNativePointer context, KNativePoi const auto _context = reinterpret_cast(context); const auto _receiver = reinterpret_cast(receiver); std::size_t length; - auto result = GetImpl()->ScriptFunctionAnnotations(_context, _receiver, &length); + auto result = GetImpl()->ScriptFunctionAnnotationsMutable(_context, _receiver, &length); return new std::vector(result, result + length); } KOALA_INTEROP_2(ScriptFunctionAnnotations, KNativePointer, KNativePointer, KNativePointer); @@ -3709,7 +3709,7 @@ KNativePointer impl_ClassDefinitionBody(KNativePointer context, KNativePointer r const auto _context = reinterpret_cast(context); const auto _receiver = reinterpret_cast(receiver); std::size_t length; - auto result = GetImpl()->ClassDefinitionBody(_context, _receiver, &length); + auto result = GetImpl()->ClassDefinitionBodyMutable(_context, _receiver, &length); return new std::vector(result, result + length); } KOALA_INTEROP_2(ClassDefinitionBody, KNativePointer, KNativePointer, KNativePointer); @@ -3748,7 +3748,7 @@ KNativePointer impl_ClassDefinitionImplements(KNativePointer context, KNativePoi const auto _context = reinterpret_cast(context); const auto _receiver = reinterpret_cast(receiver); std::size_t length; - auto result = GetImpl()->ClassDefinitionImplements(_context, _receiver, &length); + auto result = GetImpl()->ClassDefinitionImplementsMutable(_context, _receiver, &length); return new std::vector(result, result + length); } KOALA_INTEROP_2(ClassDefinitionImplements, KNativePointer, KNativePointer, KNativePointer); @@ -3916,7 +3916,7 @@ KNativePointer impl_ClassDefinitionAnnotations(KNativePointer context, KNativePo const auto _context = reinterpret_cast(context); const auto _receiver = reinterpret_cast(receiver); std::size_t length; - auto result = GetImpl()->ClassDefinitionAnnotations(_context, _receiver, &length); + auto result = GetImpl()->ClassDefinitionAnnotationsMutable(_context, _receiver, &length); return new std::vector(result, result + length); } KOALA_INTEROP_2(ClassDefinitionAnnotations, KNativePointer, KNativePointer, KNativePointer); @@ -6123,7 +6123,7 @@ KNativePointer impl_ETSModuleAnnotations(KNativePointer context, KNativePointer const auto _context = reinterpret_cast(context); const auto _receiver = reinterpret_cast(receiver); std::size_t length; - auto result = GetImpl()->ETSModuleAnnotations(_context, _receiver, &length); + auto result = GetImpl()->ETSModuleAnnotationsMutable(_context, _receiver, &length); return new std::vector(result, result + length); } KOALA_INTEROP_2(ETSModuleAnnotations, KNativePointer, KNativePointer, KNativePointer); @@ -6644,7 +6644,7 @@ KNativePointer impl_ImportDeclarationSpecifiers(KNativePointer context, KNativeP const auto _context = reinterpret_cast(context); const auto _receiver = reinterpret_cast(receiver); std::size_t length; - auto result = GetImpl()->ImportDeclarationSpecifiers(_context, _receiver, &length); + auto result = GetImpl()->ImportDeclarationSpecifiersMutable(_context, _receiver, &length); return new std::vector(result, result + length); } KOALA_INTEROP_2(ImportDeclarationSpecifiers, KNativePointer, KNativePointer, KNativePointer); @@ -6963,7 +6963,7 @@ KNativePointer impl_AnnotationDeclarationProperties(KNativePointer context, KNat const auto _context = reinterpret_cast(context); const auto _receiver = reinterpret_cast(receiver); std::size_t length; - auto result = GetImpl()->AnnotationDeclarationProperties(_context, _receiver, &length); + auto result = GetImpl()->AnnotationDeclarationPropertiesMutable(_context, _receiver, &length); return new std::vector(result, result + length); } KOALA_INTEROP_2(AnnotationDeclarationProperties, KNativePointer, KNativePointer, KNativePointer); @@ -7067,7 +7067,7 @@ KNativePointer impl_AnnotationDeclarationAnnotations(KNativePointer context, KNa const auto _context = reinterpret_cast(context); const auto _receiver = reinterpret_cast(receiver); std::size_t length; - auto result = GetImpl()->AnnotationDeclarationAnnotations(_context, _receiver, &length); + auto result = GetImpl()->AnnotationDeclarationAnnotationsMutable(_context, _receiver, &length); return new std::vector(result, result + length); } KOALA_INTEROP_2(AnnotationDeclarationAnnotations, KNativePointer, KNativePointer, KNativePointer); @@ -7713,7 +7713,7 @@ KNativePointer impl_TSTypeParameterAnnotations(KNativePointer context, KNativePo const auto _context = reinterpret_cast(context); const auto _receiver = reinterpret_cast(receiver); std::size_t length; - auto result = GetImpl()->TSTypeParameterAnnotations(_context, _receiver, &length); + auto result = GetImpl()->TSTypeParameterAnnotationsMutable(_context, _receiver, &length); return new std::vector(result, result + length); } KOALA_INTEROP_2(TSTypeParameterAnnotations, KNativePointer, KNativePointer, KNativePointer); @@ -8267,7 +8267,7 @@ KNativePointer impl_ETSParameterExpressionAnnotations(KNativePointer context, KN const auto _context = reinterpret_cast(context); const auto _receiver = reinterpret_cast(receiver); std::size_t length; - auto result = GetImpl()->ETSParameterExpressionAnnotations(_context, _receiver, &length); + auto result = GetImpl()->ETSParameterExpressionAnnotationsMutable(_context, _receiver, &length); return new std::vector(result, result + length); } KOALA_INTEROP_2(ETSParameterExpressionAnnotations, KNativePointer, KNativePointer, KNativePointer); @@ -9265,7 +9265,7 @@ KNativePointer impl_BlockStatementStatements(KNativePointer context, KNativePoin const auto _context = reinterpret_cast(context); const auto _receiver = reinterpret_cast(receiver); std::size_t length; - auto result = GetImpl()->BlockStatementStatements(_context, _receiver, &length); + auto result = GetImpl()->BlockStatementStatementsMutable(_context, _receiver, &length); return new std::vector(result, result + length); } KOALA_INTEROP_2(BlockStatementStatements, KNativePointer, KNativePointer, KNativePointer); @@ -11033,7 +11033,7 @@ KNativePointer impl_ArrowFunctionExpressionAnnotations(KNativePointer context, K const auto _context = reinterpret_cast(context); const auto _receiver = reinterpret_cast(receiver); std::size_t length; - auto result = GetImpl()->ArrowFunctionExpressionAnnotations(_context, _receiver, &length); + auto result = GetImpl()->ArrowFunctionExpressionAnnotationsMutable(_context, _receiver, &length); return new std::vector(result, result + length); } KOALA_INTEROP_2(ArrowFunctionExpressionAnnotations, KNativePointer, KNativePointer, KNativePointer); @@ -11479,7 +11479,7 @@ KNativePointer impl_TypeNodeAnnotations(KNativePointer context, KNativePointer r const auto _context = reinterpret_cast(context); const auto _receiver = reinterpret_cast(receiver); std::size_t length; - auto result = GetImpl()->TypeNodeAnnotations(_context, _receiver, &length); + auto result = GetImpl()->TypeNodeAnnotationsMutable(_context, _receiver, &length); return new std::vector(result, result + length); } KOALA_INTEROP_2(TypeNodeAnnotations, KNativePointer, KNativePointer, KNativePointer);