Lines Matching refs:startLoc

338     lexer::SourcePosition startLoc = lexer_->GetToken().Start();
342 return ParseTsAmbientExternalModuleDeclaration(startLoc, isDeclare);
357 return ParseTsAmbientExternalModuleDeclaration(startLoc, isDeclare);
361 return ParseTsModuleOrNamespaceDelaration(startLoc, isDeclare, isExport);
364 ir::TSModuleDeclaration *ParserImpl::ParseTsAmbientExternalModuleDeclaration(const lexer::SourcePosition &startLoc,
400 moduleDecl->SetRange({startLoc, lexer_->GetToken().End()});
406 ir::TSModuleDeclaration *ParserImpl::ParseTsModuleOrNamespaceDelaration(const lexer::SourcePosition &startLoc,
455 moduleDecl->SetRange({startLoc, lexer_->GetToken().End()});
489 ir::TSImportEqualsDeclaration *ParserImpl::ParseTsImportEqualsDeclaration(const lexer::SourcePosition &startLoc,
527 importEqualsDecl->SetRange({startLoc, lexer_->GetToken().End()});
534 ir::TSNamespaceExportDeclaration *ParserImpl::ParseTsNamespaceExportDeclaration(const lexer::SourcePosition &startLoc)
554 namespaceExportDecl->SetRange({startLoc, lexer_->GetToken().End()});
567 lexer::SourcePosition startLoc = lexer_->GetToken().Start();
576 blockNode->SetRange({startLoc, lexer_->GetToken().End()});
704 lexer::SourcePosition startLoc = lexer_->GetToken().Start();
714 auto location = classDefinition->Ident() ? classDefinition->Ident()->Start() : startLoc;
726 classDecl->SetRange({startLoc, endLoc});
990 lexer::SourcePosition startLoc = lexer_->GetToken().Start();
999 blockNode->SetRange({startLoc, lexer_->GetToken().End()});
1017 lexer::SourcePosition startLoc = lexer_->GetToken().Start();
1039 breakStatement->SetRange({startLoc, lexer_->GetToken().End()});
1061 breakStatement->SetRange({startLoc, lexer_->GetToken().End()});
1088 lexer::SourcePosition startLoc = lexer_->GetToken().Start();
1094 continueStatement->SetRange({startLoc, lexer_->GetToken().End()});
1102 continueStatement->SetRange({startLoc, endLoc});
1122 continueStatement->SetRange({startLoc, lexer_->GetToken().End()});
1135 lexer::SourcePosition startLoc = lexer_->GetToken().Start();
1162 doWhileStatement->SetRange({startLoc, lexer_->GetToken().End()});
1178 lexer::SourcePosition startLoc = lexer_->GetToken().Start();
1200 func->SetStart(startLoc);
1208 Binder()->AddDecl<binder::FunctionDecl>(startLoc, declflag, isDeclare, Allocator(),
1234 func->SetStart(startLoc);
1254 const lexer::SourcePosition &startLoc = func->Start();
1268 Binder()->ThrowRedeclaration(startLoc, currentDecl->Name());
1274 Binder()->ThrowRedeclaration(startLoc, currentDecl->Name());
1522 lexer::SourcePosition startLoc = lexer_->GetToken().Start();
1619 forStatement->SetRange({startLoc, endLoc});
1627 lexer::SourcePosition startLoc = lexer_->GetToken().Start();
1659 ifStatement->SetRange({startLoc, endLoc});
1705 lexer::SourcePosition startLoc = lexer_->GetToken().Start();
1723 returnStatement->SetRange({startLoc, endLoc});
1783 lexer::SourcePosition startLoc = lexer_->GetToken().Start();
1813 switchStatement->SetRange({startLoc, lexer_->GetToken().End()});
1823 lexer::SourcePosition startLoc = lexer_->GetToken().Start();
1840 throwStatement->SetRange({startLoc, endLoc});
1937 lexer::SourcePosition startLoc = lexer_->GetToken().Start();
1973 tryStatement->SetRange({startLoc, endLoc});
2017 const lexer::SourcePosition &startLoc,
2037 declarator->SetRange({startLoc, endLoc});
2044 lexer::SourcePosition startLoc = lexer_->GetToken().Start();
2052 declarator = ParseVariableDeclaratorInitializer(init, flags, startLoc, isDeclare);
2067 declarator->SetRange({startLoc, endLoc});
2083 decl = Binder()->AddDecl<binder::VarDecl>(startLoc, declflag, isDeclare, binding->Name());
2085 decl = Binder()->AddDecl<binder::LetDecl>(startLoc, declflag, isDeclare, binding->Name());
2087 decl = Binder()->AddDecl<binder::ConstDecl>(startLoc, declflag, isDeclare, binding->Name());
2153 lexer::SourcePosition startLoc = lexer_->GetToken().Start();
2193 declaration->SetRange({startLoc, endLoc});
2200 lexer::SourcePosition startLoc = lexer_->GetToken().Start();
2219 whileStatement->SetRange({startLoc, endLoc});
2345 void ParserImpl::AddExportStarEntryItem(const lexer::SourcePosition &startLoc, const ir::StringLiteral *source,
2361 auto *decl = Binder()->AddDecl<binder::ConstDecl>(startLoc, binder::DeclarationFlags::EXPORT,
2478 ir::ExportDefaultDeclaration *ParserImpl::ParseExportDefaultDeclaration(const lexer::SourcePosition &startLoc,
2529 exportDeclaration->SetRange({startLoc, endLoc});
2552 ir::ExportAllDeclaration *ParserImpl::ParseExportAllDeclaration(const lexer::SourcePosition &startLoc)
2568 AddExportStarEntryItem(startLoc, source, exported);
2578 exportDeclaration->SetRange({startLoc, endLoc});
2585 ir::ExportNamedDeclaration *ParserImpl::ParseExportNamedSpecifiers(const lexer::SourcePosition &startLoc,
2672 exportDeclaration->SetRange({startLoc, endPos});
2678 ir::ExportNamedDeclaration *ParserImpl::ParseNamedExportDeclaration(const lexer::SourcePosition &startLoc,
2830 exportDeclaration->SetRange({startLoc, endLoc});
2849 lexer::SourcePosition startLoc = lexer_->GetToken().Start();
2867 return ParseExportDefaultDeclaration(startLoc, std::move(decorators), std::move(annotations));
2870 return ParseExportAllDeclaration(startLoc);
2873 return ParseExportNamedSpecifiers(startLoc, isType);
2876 return ParseTsImportEqualsDeclaration(startLoc, true);
2885 return ParseExportDefaultDeclaration(startLoc, std::move(decorators), std::move(annotations), true);
2892 return ParseTsNamespaceExportDeclaration(startLoc);
2898 ir::ExportNamedDeclaration *exportDecl = ParseNamedExportDeclaration(startLoc, std::move(decorators),
3224 lexer::SourcePosition startLoc = lexer_->GetToken().Start();
3263 astNode->SetRange({startLoc, lexer_->GetToken().End()});
3297 importDeclaration->SetRange({startLoc, endLoc});
3306 lexer::SourcePosition startLoc = lexer_->GetToken().Start();
3322 assertClause->SetRange({startLoc, lexer_->GetToken().End()});