Lines Matching full:reinterpret_cast
97 char *res = reinterpret_cast<char *>(allocator->Alloc(utf8.size() + 1)); in StringViewToCString()
115 char *res = reinterpret_cast<char *>(allocator->Alloc(str.length() + 1)); in StdStringToCString()
155 auto import = reinterpret_cast<const es2panda_AstNode *>(dynamicImportData->import); in DynamicImportDataToE2pPtr()
156 auto specifier = reinterpret_cast<const es2panda_AstNode *>(dynamicImportData->specifier); in DynamicImportDataToE2pPtr()
157 auto variable = reinterpret_cast<es2panda_Variable *>(dynamicImportData->variable); in DynamicImportDataToE2pPtr()
168 auto import = reinterpret_cast<const es2panda_AstNode *>(dynamicImportData.import); in DynamicImportDataToE2p()
169 auto specifier = reinterpret_cast<const es2panda_AstNode *>(dynamicImportData.specifier); in DynamicImportDataToE2p()
170 auto variable = reinterpret_cast<es2panda_Variable *>(dynamicImportData.variable); in DynamicImportDataToE2p()
237 char *res = reinterpret_cast<char *>(allocator->Alloc(len + 1)); in ArenaStrdup()
262 return reinterpret_cast<es2panda_Config *>(res); in CreateConfig()
270 auto *cfg = reinterpret_cast<ConfigImpl *>(config); in DestroyConfig()
283 auto *ctx = reinterpret_cast<Context *>(context); in GetAllErrorMessages()
287 auto *cfg = reinterpret_cast<ConfigImpl *>(ctx->config); in GetAllErrorMessages()
292 char *cStringMessages = reinterpret_cast<char *>(ctx->allocator->Alloc(bufferSize)); in GetAllErrorMessages()
300 auto options = reinterpret_cast<ConfigImpl *>(config)->options; in ConfigGetOptions()
301 return reinterpret_cast<const es2panda_Options *>(options); in ConfigGetOptions()
340 auto *cfg = reinterpret_cast<ConfigImpl *>(config); in InitContext()
366 return reinterpret_cast<es2panda_Context *>(res); in CreateContext()
368 auto *cfg = reinterpret_cast<ConfigImpl *>(config); in CreateContext()
395 return reinterpret_cast<es2panda_Context *>(res); in CreateContext()
407 return reinterpret_cast<es2panda_Context *>(res); in CreateContextFromFile()
415 return reinterpret_cast<es2panda_Context *>(res); in CreateContextFromFile()
438 return reinterpret_cast<es2panda_Context *>(res); in CreateContextGenerateAbcForExternalSourceFiles()
440 auto *cfg = reinterpret_cast<ConfigImpl *>(config); in CreateContextGenerateAbcForExternalSourceFiles()
455 return reinterpret_cast<es2panda_Context *>(res); in CreateContextGenerateAbcForExternalSourceFiles()
481 public_lib::Context *context = reinterpret_cast<public_lib::Context *>(ctx); in SetProgramGenAbc()
610 auto *ctx = reinterpret_cast<Context *>(context); in ProceedToState()
637 return reinterpret_cast<es2panda_Context *>(ctx); in ProceedToState()
642 auto *ctx = reinterpret_cast<Context *>(context); in DestroyContext()
658 auto *s = reinterpret_cast<Context *>(context); in ContextState()
664 auto *s = reinterpret_cast<Context *>(context); in ContextErrorMessage()
670 auto *ctx = reinterpret_cast<Context *>(context); in ContextProgram()
671 return reinterpret_cast<es2panda_Program *>(ctx->parserProgram); in ContextProgram()
687 return reinterpret_cast<es2panda_ExternalSource **>(vec->data()); in ExternalSourcesToE2p()
692 auto *entry = reinterpret_cast<ExternalSourceEntry *>(eSource); in ExternalSourceName()
699 auto *entry = reinterpret_cast<ExternalSourceEntry *>(eSource); in ExternalSourcePrograms()
701 return reinterpret_cast<es2panda_Program **>(entry->second->data()); in ExternalSourcePrograms()
706 auto *node = reinterpret_cast<ir::AstNode *>(ast); in AstNodeForEach()
708 …node->IterateRecursively([=](ir::AstNode *child) { func(reinterpret_cast<es2panda_AstNode *>(child… in AstNodeForEach()
714 auto &n = reinterpret_cast<ir::NumberLiteral *>(node)->Number(); \
735 auto allocator = reinterpret_cast<Context *>(ctx)->allocator; in SET_NUMBER_LITERAL_IMPL()
737 return reinterpret_cast<es2panda_AstNode *>(node); in SET_NUMBER_LITERAL_IMPL()
744 auto allocator = reinterpret_cast<Context *>(ctx)->allocator; in UpdateNumberLiteral()
746 auto *e2pOriginal = reinterpret_cast<ir::AstNode *>(original); in UpdateNumberLiteral()
750 return reinterpret_cast<es2panda_AstNode *>(node); in UpdateNumberLiteral()
755 auto str = reinterpret_cast<const ir::NumberLiteral *>(classInstance)->Str(); in NumberLiteralStrConst()
756 return StringViewToCString(reinterpret_cast<Context *>(context)->allocator, str); in NumberLiteralStrConst()
761 auto *allocator = reinterpret_cast<Context *>(context)->allocator; in AllocMemory()
768 auto *allocator = reinterpret_cast<Context *>(context)->allocator; in CreateSourcePosition()
769 return reinterpret_cast<es2panda_SourcePosition *>( in CreateSourcePosition()
770 …allocator->New<lexer::SourcePosition>(index, line, reinterpret_cast<Context *>(context)->parserPro… in CreateSourcePosition()
776 auto *allocator = reinterpret_cast<Context *>(context)->allocator; in CreateSourceRange()
777 auto startE2p = *(reinterpret_cast<lexer::SourcePosition *>(start)); in CreateSourceRange()
778 auto endE2p = *(reinterpret_cast<lexer::SourcePosition *>(end)); in CreateSourceRange()
779 …return reinterpret_cast<es2panda_SourceRange *>(allocator->New<lexer::SourceRange>(startE2p, endE2… in CreateSourceRange()
785 auto ctx = reinterpret_cast<Context *>(context); in CreateDiagnosticKind()
794 …return reinterpret_cast<const es2panda_DiagnosticKind *>(&ctx->config->diagnosticKindStorage.back(… in CreateDiagnosticKind()
800 auto *allocator = reinterpret_cast<Context *>(context)->allocator; in CreateDiagnosticInfo()
811 auto *allocator = reinterpret_cast<Context *>(context)->allocator; in CreateSuggestionInfo()
823 auto ctx = reinterpret_cast<Context *>(context); in LogDiagnosticWithSuggestion()
824 … auto diagnostickind = reinterpret_cast<const diagnostic::DiagnosticKind *>(diagnosticInfo->kind); in LogDiagnosticWithSuggestion()
825 … auto suggestionkind = reinterpret_cast<const diagnostic::DiagnosticKind *>(suggestionInfo->kind); in LogDiagnosticWithSuggestion()
837 auto *allocator = reinterpret_cast<Context *>(context)->allocator; in LogDiagnosticWithSuggestion()
838 auto E2pRange = reinterpret_cast<lexer::SourceRange *>(range); in LogDiagnosticWithSuggestion()
848 auto ctx = reinterpret_cast<Context *>(context); in LogDiagnostic()
849 auto kind = reinterpret_cast<const diagnostic::DiagnosticKind *>(ekind); in LogDiagnostic()
854 auto posE2p = reinterpret_cast<lexer::SourcePosition *>(pos); in LogDiagnostic()
860 auto ctx = reinterpret_cast<Context *>(context); in GetDiagnostics()
862 …return reinterpret_cast<const es2panda_DiagnosticStorage *>(&ctx->diagnosticEngine->GetDiagnosticS… in GetDiagnostics()
892 return reinterpret_cast<Context *>(context)->diagnosticEngine->IsAnyError(); in IsAnyError()
897 return reinterpret_cast<lexer::SourcePosition *>(position)->index; in SourcePositionIndex()
902 return reinterpret_cast<lexer::SourcePosition *>(position)->line; in SourcePositionLine()
908 auto *allocator = reinterpret_cast<Context *>(context)->allocator; in SourceRangeStart()
909 auto E2pRange = reinterpret_cast<lexer::SourceRange *>(range); in SourceRangeStart()
910 …return reinterpret_cast<es2panda_SourcePosition *>(allocator->New<lexer::SourcePosition>(E2pRange-… in SourceRangeStart()
916 auto *allocator = reinterpret_cast<Context *>(context)->allocator; in SourceRangeEnd()
917 auto E2pRange = reinterpret_cast<lexer::SourceRange *>(range); in SourceRangeEnd()
918 …return reinterpret_cast<es2panda_SourcePosition *>(allocator->New<lexer::SourcePosition>(E2pRange-… in SourceRangeEnd()
923 auto E2pNode = reinterpret_cast<ir::AstNode *>(node); in AstNodeFindNearestScope()
924 return reinterpret_cast<es2panda_Scope *>(compiler::NearestScope(E2pNode)); in AstNodeFindNearestScope()
929 auto E2pNode = reinterpret_cast<ir::AstNode *>(node); in AstNodeRebind()
930 auto context = reinterpret_cast<Context *>(ctx); in AstNodeRebind()
939 return reinterpret_cast<es2panda_Scope *>(compiler::Rebind(phaseManager, varbinder, E2pNode)); in AstNodeRebind()
944 auto E2pNode = reinterpret_cast<ir::AstNode *>(node); in AstNodeRecheck()
945 auto context = reinterpret_cast<Context *>(ctx); in AstNodeRecheck()
969 auto *allocator = reinterpret_cast<Context *>(ctx)->allocator; in Es2pandaEnumToString()
975 auto E2pNode = reinterpret_cast<ir::Identifier *>(node); in DeclarationFromIdentifier()
976 return reinterpret_cast<es2panda_AstNode *>(compiler::DeclarationFromIdentifier(E2pNode)); in DeclarationFromIdentifier()
987 …ir::AstNode *res = reinterpret_cast<const ir::AstNode *>(node)->FindChild([&nameE2p](const ir::Ast… in FirstDeclarationByNameFromNode()
997 return reinterpret_cast<es2panda_AstNode *>(res); in FirstDeclarationByNameFromNode()
1007 auto programE2p = reinterpret_cast<const parser::Program *>(program); in FirstDeclarationByNameFromProgram()
1009 …FirstDeclarationByNameFromNode(ctx, reinterpret_cast<const es2panda_AstNode *>(programE2p->Ast()),… in FirstDeclarationByNameFromProgram()
1018 ctx, reinterpret_cast<const es2panda_AstNode *>(ext_program->Ast()), name); in FirstDeclarationByNameFromProgram()
1055 auto nodeE2p = reinterpret_cast<const ir::AstNode *>(node); in AllDeclarationsByNameFromNode()
1056 auto allocator = reinterpret_cast<Context *>(ctx)->allocator; in AllDeclarationsByNameFromNode()
1062 auto toPush = reinterpret_cast<es2panda_AstNode *>(elem); in AllDeclarationsByNameFromNode()
1072 auto allocator = reinterpret_cast<Context *>(ctx)->allocator; in AllDeclarationsByNameFromProgram()
1079 auto programE2p = reinterpret_cast<const parser::Program *>(program); in AllDeclarationsByNameFromProgram()
1098 auto toPush = reinterpret_cast<es2panda_AstNode *>(elem); in AllDeclarationsByNameFromProgram()
1110 auto *ctxImpl = reinterpret_cast<Context *>(ctx); in GenerateTsDeclarationsFromContext()
1111 auto *checker = reinterpret_cast<ark::es2panda::checker::ETSChecker *>(ctxImpl->checker); in GenerateTsDeclarationsFromContext()
1127 auto *ctxImpl = reinterpret_cast<Context *>(ctx); in GenerateStaticDeclarationsFromContext()
1139 auto *ctx = reinterpret_cast<Context *>(context); in InsertETSImportDeclarationAndParse()
1140 auto *parserProgram = reinterpret_cast<parser::Program *>(program); in InsertETSImportDeclarationAndParse()
1141 auto *importDeclE2p = reinterpret_cast<ir::ETSImportDeclaration *>(importDeclaration); in InsertETSImportDeclarationAndParse()