• Home
  • Raw
  • Download

Lines Matching full:reinterpret_cast

96     char *res = reinterpret_cast<char *>(allocator->Alloc(utf8.size() + 1));  in StringViewToCString()
111 char *res = reinterpret_cast<char *>(allocator->Alloc(utf8.size() + 1)); in StringViewToCString()
122 char *res = reinterpret_cast<char *>(allocator->Alloc(str.length() + 1)); in StdStringToCString()
162 auto import = reinterpret_cast<const es2panda_AstNode *>(dynamicImportData->import); in DynamicImportDataToE2p()
163 auto specifier = reinterpret_cast<const es2panda_AstNode *>(dynamicImportData->specifier); in DynamicImportDataToE2p()
164 auto variable = reinterpret_cast<es2panda_Variable *>(dynamicImportData->variable); in DynamicImportDataToE2p()
175 auto import = reinterpret_cast<const es2panda_AstNode *>(dynamicImportData.import); in DynamicImportDataToE2p()
176 auto specifier = reinterpret_cast<const es2panda_AstNode *>(dynamicImportData.specifier); in DynamicImportDataToE2p()
177 auto variable = reinterpret_cast<es2panda_Variable *>(dynamicImportData.variable); in DynamicImportDataToE2p()
188 char *res = reinterpret_cast<char *>(allocator->Alloc(len + 1)); in ArenaStrdup()
216 return reinterpret_cast<es2panda_Config *>(res); in CreateConfig()
224 auto *cfg = reinterpret_cast<ConfigImpl *>(config); in DestroyConfig()
247 auto *cfg = reinterpret_cast<ConfigImpl *>(config); in CreateContext()
283 return reinterpret_cast<es2panda_Context *>(res); in CreateContext()
295 return reinterpret_cast<es2panda_Context *>(res); in CreateContextFromFile()
303 return reinterpret_cast<es2panda_Context *>(res); in CreateContextFromFile()
516 auto *ctx = reinterpret_cast<Context *>(context); in ProceedToState()
543 return reinterpret_cast<es2panda_Context *>(ctx); in ProceedToState()
548 auto *ctx = reinterpret_cast<Context *>(context); in DestroyContext()
563 auto *s = reinterpret_cast<Context *>(context); in ContextState()
569 auto *s = reinterpret_cast<Context *>(context); in ContextErrorMessage()
575 auto *ctx = reinterpret_cast<Context *>(context); in ContextProgram()
576 return reinterpret_cast<es2panda_Program *>(ctx->parserProgram); in ContextProgram()
581 auto *pgm = reinterpret_cast<parser::Program *>(program); in ProgramAst()
582 return reinterpret_cast<es2panda_AstNode *>(pgm->Ast()); in ProgramAst()
590 auto *pgm = reinterpret_cast<parser::Program *>(program); in ProgramExternalSources()
599 return reinterpret_cast<es2panda_ExternalSource **>(vec->data()); in ProgramExternalSources()
604 auto *entry = reinterpret_cast<ExternalSourceEntry *>(eSource); in ExternalSourceName()
611 auto *entry = reinterpret_cast<ExternalSourceEntry *>(eSource); in ExternalSourcePrograms()
613 return reinterpret_cast<es2panda_Program **>(entry->second->data()); in ExternalSourcePrograms()
618 auto *node = reinterpret_cast<ir::AstNode *>(ast); in AstNodeForEach()
620 …node->IterateRecursively([=](ir::AstNode *child) { func(reinterpret_cast<es2panda_AstNode *>(child… in AstNodeForEach()
626 auto &n = reinterpret_cast<ir::NumberLiteral *>(node)->Number(); \
645 auto *allocator = reinterpret_cast<Context *>(context)->allocator; in SET_NUMBER_LITERAL_IMPL()
652 auto *allocator = reinterpret_cast<Context *>(context)->allocator; in CreateSourcePosition()
653 …return reinterpret_cast<es2panda_SourcePosition *>(allocator->New<lexer::SourcePosition>(index, li… in CreateSourcePosition()
659 auto *allocator = reinterpret_cast<Context *>(context)->allocator; in CreateSourceRange()
660 auto startE2p = *(reinterpret_cast<lexer::SourcePosition *>(start)); in CreateSourceRange()
661 auto endE2p = *(reinterpret_cast<lexer::SourcePosition *>(end)); in CreateSourceRange()
662 …return reinterpret_cast<es2panda_SourceRange *>(allocator->New<lexer::SourceRange>(startE2p, endE2… in CreateSourceRange()
667 return reinterpret_cast<lexer::SourcePosition *>(position)->index; in SourcePositionIndex()
672 return reinterpret_cast<lexer::SourcePosition *>(position)->line; in SourcePositionLine()
678 auto *allocator = reinterpret_cast<Context *>(context)->allocator; in SourceRangeStart()
679 auto E2pRange = reinterpret_cast<lexer::SourceRange *>(range); in SourceRangeStart()
680 …return reinterpret_cast<es2panda_SourcePosition *>(allocator->New<lexer::SourcePosition>(E2pRange-… in SourceRangeStart()
686 auto *allocator = reinterpret_cast<Context *>(context)->allocator; in SourceRangeEnd()
687 auto E2pRange = reinterpret_cast<lexer::SourceRange *>(range); in SourceRangeEnd()
688 …return reinterpret_cast<es2panda_SourcePosition *>(allocator->New<lexer::SourcePosition>(E2pRange-… in SourceRangeEnd()