OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef V8_PARSING_PARSING_H_ |
| 6 #define V8_PARSING_PARSING_H_ |
| 7 |
| 8 namespace v8 { |
| 9 namespace internal { |
| 10 |
| 11 class ParseInfo; |
| 12 |
| 13 namespace parsing { |
| 14 |
| 15 // Parses the top-level source code represented by the parse info and sets its |
| 16 // function literal. Returns false (and deallocates any allocated AST |
| 17 // nodes) if parsing failed. |
| 18 bool ParseProgram(ParseInfo* info); |
| 19 |
| 20 // Like ParseProgram but for an individual function. |
| 21 bool ParseFunction(ParseInfo* info); |
| 22 |
| 23 } // namespace parsing |
| 24 } // namespace internal |
| 25 } // namespace v8 |
| 26 |
| 27 #endif // V8_PARSING_PARSING_H_ |
OLD | NEW |