OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_PREPARSER_H | 5 #ifndef V8_PREPARSER_H |
6 #define V8_PREPARSER_H | 6 #define V8_PREPARSER_H |
7 | 7 |
8 #include "src/bailout-reason.h" | 8 #include "src/bailout-reason.h" |
9 #include "src/expression-classifier.h" | 9 #include "src/expression-classifier.h" |
10 #include "src/func-name-inferrer.h" | 10 #include "src/func-name-inferrer.h" |
(...skipping 1827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1838 void ParseStatementList(int end_token, bool* ok, | 1838 void ParseStatementList(int end_token, bool* ok, |
1839 Scanner::BookmarkScope* bookmark = nullptr); | 1839 Scanner::BookmarkScope* bookmark = nullptr); |
1840 Statement ParseStatement(bool* ok); | 1840 Statement ParseStatement(bool* ok); |
1841 Statement ParseSubStatement(bool* ok); | 1841 Statement ParseSubStatement(bool* ok); |
1842 Statement ParseFunctionDeclaration(bool* ok); | 1842 Statement ParseFunctionDeclaration(bool* ok); |
1843 Statement ParseClassDeclaration(bool* ok); | 1843 Statement ParseClassDeclaration(bool* ok); |
1844 Statement ParseBlock(bool* ok); | 1844 Statement ParseBlock(bool* ok); |
1845 Statement ParseVariableStatement(VariableDeclarationContext var_context, | 1845 Statement ParseVariableStatement(VariableDeclarationContext var_context, |
1846 bool* ok); | 1846 bool* ok); |
1847 Statement ParseVariableDeclarations(VariableDeclarationContext var_context, | 1847 Statement ParseVariableDeclarations(VariableDeclarationContext var_context, |
1848 int* num_decl, | 1848 int* num_decl, bool* is_lexical, |
| 1849 bool* is_binding_pattern, |
1849 Scanner::Location* first_initializer_loc, | 1850 Scanner::Location* first_initializer_loc, |
1850 Scanner::Location* bindings_loc, | 1851 Scanner::Location* bindings_loc, |
1851 bool* ok); | 1852 bool* ok); |
1852 Statement ParseExpressionOrLabelledStatement(bool* ok); | 1853 Statement ParseExpressionOrLabelledStatement(bool* ok); |
1853 Statement ParseIfStatement(bool* ok); | 1854 Statement ParseIfStatement(bool* ok); |
1854 Statement ParseContinueStatement(bool* ok); | 1855 Statement ParseContinueStatement(bool* ok); |
1855 Statement ParseBreakStatement(bool* ok); | 1856 Statement ParseBreakStatement(bool* ok); |
1856 Statement ParseReturnStatement(bool* ok); | 1857 Statement ParseReturnStatement(bool* ok); |
1857 Statement ParseWithStatement(bool* ok); | 1858 Statement ParseWithStatement(bool* ok); |
1858 Statement ParseSwitchStatement(bool* ok); | 1859 Statement ParseSwitchStatement(bool* ok); |
(...skipping 2392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4251 return; | 4252 return; |
4252 } | 4253 } |
4253 has_seen_constructor_ = true; | 4254 has_seen_constructor_ = true; |
4254 return; | 4255 return; |
4255 } | 4256 } |
4256 } | 4257 } |
4257 } // namespace internal | 4258 } // namespace internal |
4258 } // namespace v8 | 4259 } // namespace v8 |
4259 | 4260 |
4260 #endif // V8_PREPARSER_H | 4261 #endif // V8_PREPARSER_H |
OLD | NEW |