Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Unified Diff: src/parsing/parser-base.h

Issue 2744213003: [debugger] fix switch block source positions. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/parsing/parser-base.h
diff --git a/src/parsing/parser-base.h b/src/parsing/parser-base.h
index b2d80664c3d4594c89235d49b6f67a910a1bfdf1..3b9888006e4dbe9dfb36c0ce7d5ae4d0d6577bef 100644
--- a/src/parsing/parser-base.h
+++ b/src/parsing/parser-base.h
@@ -5194,7 +5194,7 @@ typename ParserBase<Impl>::StatementT ParserBase<Impl>::ParseSwitchStatement(
{
BlockState cases_block_state(zone(), &scope_);
- scope()->set_start_position(scanner()->location().beg_pos);
+ scope()->set_start_position(switch_pos);
scope()->SetNonlinear();
typename Types::Target target(this, switch_statement);

Powered by Google App Engine
This is Rietveld 408576698