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

Unified Diff: src/parsing/preparser.h

Issue 2882973002: [coverage] Block coverage with support for IfStatements (Closed)
Patch Set: Address comments Created 3 years, 6 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
« no previous file with comments | « src/parsing/parser-base.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/preparser.h
diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h
index c394891b3c1de710b131516f79b653e55e15e55f..bb64164ae60b6edcdc5fa8fe81b44ac9032d7094 100644
--- a/src/parsing/preparser.h
+++ b/src/parsing/preparser.h
@@ -721,8 +721,9 @@ class PreParserFactory {
PreParserStatement NewIfStatement(PreParserExpression condition,
PreParserStatement then_statement,
- PreParserStatement else_statement,
- int pos) {
+ PreParserStatement else_statement, int pos,
+ SourceRange then_range = {},
+ SourceRange else_range = {}) {
// This must return a jump statement iff both clauses are jump statements.
return else_statement.IsJumpStatement() ? then_statement : else_statement;
}
« no previous file with comments | « src/parsing/parser-base.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698