Lines Matching refs:startLoc
312 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseTsModuleDeclaration() local
316 return ParseTsAmbientExternalModuleDeclaration(startLoc, isDeclare); in ParseTsModuleDeclaration()
325 return ParseTsAmbientExternalModuleDeclaration(startLoc, isDeclare); in ParseTsModuleDeclaration()
329 return ParseTsModuleOrNamespaceDelaration(startLoc, isDeclare, isExport); in ParseTsModuleDeclaration()
332 …aration *ParserImpl::ParseTsAmbientExternalModuleDeclaration(const lexer::SourcePosition &startLoc, in ParseTsAmbientExternalModuleDeclaration() argument
368 moduleDecl->SetRange({startLoc, lexer_->GetToken().End()}); in ParseTsAmbientExternalModuleDeclaration()
374 …eDeclaration *ParserImpl::ParseTsModuleOrNamespaceDelaration(const lexer::SourcePosition &startLoc, in ParseTsModuleOrNamespaceDelaration() argument
444 moduleDecl->SetRange({startLoc, lexer_->GetToken().End()}); in ParseTsModuleOrNamespaceDelaration()
451 …qualsDeclaration *ParserImpl::ParseTsImportEqualsDeclaration(const lexer::SourcePosition &startLoc, in ParseTsImportEqualsDeclaration() argument
489 importEqualsDecl->SetRange({startLoc, lexer_->GetToken().End()}); in ParseTsImportEqualsDeclaration()
496 …rtDeclaration *ParserImpl::ParseTsNamespaceExportDeclaration(const lexer::SourcePosition &startLoc) in ParseTsNamespaceExportDeclaration() argument
516 namespaceExportDecl->SetRange({startLoc, lexer_->GetToken().End()}); in ParseTsNamespaceExportDeclaration()
529 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseTsModuleBlock() local
538 blockNode->SetRange({startLoc, lexer_->GetToken().End()}); in ParseTsModuleBlock()
663 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseClassDeclaration() local
669 auto location = classDefinition->Ident() ? classDefinition->Ident()->Start() : startLoc; in ParseClassDeclaration()
680 classDecl->SetRange({startLoc, endLoc}); in ParseClassDeclaration()
935 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseBlockStatement() local
944 blockNode->SetRange({startLoc, lexer_->GetToken().End()}); in ParseBlockStatement()
962 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseBreakStatement() local
983 breakStatement->SetRange({startLoc, lexer_->GetToken().End()}); in ParseBreakStatement()
1005 breakStatement->SetRange({startLoc, lexer_->GetToken().End()}); in ParseBreakStatement()
1032 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseContinueStatement() local
1038 continueStatement->SetRange({startLoc, lexer_->GetToken().End()}); in ParseContinueStatement()
1046 continueStatement->SetRange({startLoc, endLoc}); in ParseContinueStatement()
1066 continueStatement->SetRange({startLoc, lexer_->GetToken().End()}); in ParseContinueStatement()
1078 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseDoWhileStatement() local
1100 doWhileStatement->SetRange({startLoc, lexer_->GetToken().End()}); in ParseDoWhileStatement()
1116 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseFunctionDeclaration() local
1138 func->SetStart(startLoc); in ParseFunctionDeclaration()
1146 Binder()->AddDecl<binder::FunctionDecl>(startLoc, declflag, isDeclare, Allocator(), in ParseFunctionDeclaration()
1172 func->SetStart(startLoc); in ParseFunctionDeclaration()
1192 const lexer::SourcePosition &startLoc = func->Start(); in AddFunctionToBinder() local
1206 Binder()->ThrowRedeclaration(startLoc, currentDecl->Name()); in AddFunctionToBinder()
1211 Binder()->ThrowRedeclaration(startLoc, currentDecl->Name()); in AddFunctionToBinder()
1452 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseForStatement() local
1549 forStatement->SetRange({startLoc, endLoc}); in ParseForStatement()
1557 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseIfStatement() local
1589 ifStatement->SetRange({startLoc, endLoc}); in ParseIfStatement()
1636 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseReturnStatement() local
1654 returnStatement->SetRange({startLoc, endLoc}); in ParseReturnStatement()
1714 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseSwitchStatement() local
1744 switchStatement->SetRange({startLoc, lexer_->GetToken().End()}); in ParseSwitchStatement()
1754 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseThrowStatement() local
1771 throwStatement->SetRange({startLoc, endLoc}); in ParseThrowStatement()
1868 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseTryStatement() local
1904 tryStatement->SetRange({startLoc, endLoc}); in ParseTryStatement()
1949 … const lexer::SourcePosition &startLoc, in ParseVariableDeclaratorInitializer() argument
1969 declarator->SetRange({startLoc, endLoc}); in ParseVariableDeclaratorInitializer()
1977 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseVariableDeclarator() local
2027 declarator = ParseVariableDeclaratorInitializer(init, flags, startLoc, isDeclare); in ParseVariableDeclarator()
2042 declarator->SetRange({startLoc, endLoc}); in ParseVariableDeclarator()
2058 … decl = Binder()->AddDecl<binder::VarDecl>(startLoc, declflag, isDeclare, binding->Name()); in ParseVariableDeclarator()
2060 … decl = Binder()->AddDecl<binder::LetDecl>(startLoc, declflag, isDeclare, binding->Name()); in ParseVariableDeclarator()
2062 … decl = Binder()->AddDecl<binder::ConstDecl>(startLoc, declflag, isDeclare, binding->Name()); in ParseVariableDeclarator()
2073 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseVariableDeclaration() local
2114 declaration->SetRange({startLoc, endLoc}); in ParseVariableDeclaration()
2121 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseWhileStatement() local
2140 whileStatement->SetRange({startLoc, endLoc}); in ParseWhileStatement()
2244 void ParserImpl::AddExportStarEntryItem(const lexer::SourcePosition &startLoc, const ir::StringLite… in AddExportStarEntryItem() argument
2260 … auto *decl = Binder()->AddDecl<binder::ConstDecl>(startLoc, binder::DeclarationFlags::EXPORT, in AddExportStarEntryItem()
2377 …efaultDeclaration *ParserImpl::ParseExportDefaultDeclaration(const lexer::SourcePosition &startLoc, in ParseExportDefaultDeclaration() argument
2422 exportDeclaration->SetRange({startLoc, endLoc}); in ParseExportDefaultDeclaration()
2445 …:ExportAllDeclaration *ParserImpl::ParseExportAllDeclaration(const lexer::SourcePosition &startLoc) in ParseExportAllDeclaration() argument
2461 AddExportStarEntryItem(startLoc, source, exported); in ParseExportAllDeclaration()
2464 exportDeclaration->SetRange({startLoc, endLoc}); in ParseExportAllDeclaration()
2471 …portNamedDeclaration *ParserImpl::ParseExportNamedSpecifiers(const lexer::SourcePosition &startLoc, in ParseExportNamedSpecifiers() argument
2531 exportDeclaration->SetRange({startLoc, endPos}); in ParseExportNamedSpecifiers()
2537 …ortNamedDeclaration *ParserImpl::ParseNamedExportDeclaration(const lexer::SourcePosition &startLoc, in ParseNamedExportDeclaration() argument
2660 exportDeclaration->SetRange({startLoc, endLoc}); in ParseNamedExportDeclaration()
2678 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseExportDeclaration() local
2696 return ParseExportDefaultDeclaration(startLoc, std::move(decorators)); in ParseExportDeclaration()
2699 return ParseExportAllDeclaration(startLoc); in ParseExportDeclaration()
2702 return ParseExportNamedSpecifiers(startLoc, isType); in ParseExportDeclaration()
2705 return ParseTsImportEqualsDeclaration(startLoc, true); in ParseExportDeclaration()
2709 return ParseExportDefaultDeclaration(startLoc, std::move(decorators), true); in ParseExportDeclaration()
2716 return ParseTsNamespaceExportDeclaration(startLoc); in ParseExportDeclaration()
2722 …ir::ExportNamedDeclaration *exportDecl = ParseNamedExportDeclaration(startLoc, std::move(decorator… in ParseExportDeclaration()
2975 lexer::SourcePosition startLoc = lexer_->GetToken().Start(); in ParseImportDeclaration() local
3001 astNode->SetRange({startLoc, lexer_->GetToken().End()}); in ParseImportDeclaration()
3021 importDeclaration->SetRange({startLoc, endLoc}); in ParseImportDeclaration()