Lines Matching defs:Parser
14 #include "src/parser.h"
328 Scope* Parser::NewScope(Scope* parent, ScopeType scope_type) {
337 // Parser's target_stack_ (the stack of potential 'break' and
400 // Implementation of Parser
764 Parser::Parser(CompilationInfo* info)
795 FunctionLiteral* Parser::ParseProgram() {
807 // Initialize parser state.
855 FunctionLiteral* Parser::DoParseProgram(CompilationInfo* info,
946 FunctionLiteral* Parser::ParseLazy() {
956 // Initialize parser state.
981 FunctionLiteral* Parser::ParseLazy(Utf16CharacterStream* source) {
1044 void* Parser::ParseSourceElements(ZoneList<Statement*>* processor,
1124 Statement* Parser::ParseModuleElement(ZoneStringList* labels,
1172 Statement* Parser::ParseModuleDeclaration(ZoneStringList* names, bool* ok) {
1208 Module* Parser::ParseModule(bool* ok) {
1235 Module* Parser::ParseModuleLiteral(bool* ok) {
1288 Module* Parser::ParseModulePath(bool* ok) {
1323 Module* Parser::ParseModuleVariable(bool* ok) {
1341 Module* Parser::ParseModuleUrl(bool* ok) {
1370 Module* Parser::ParseModuleSpecifier(bool* ok) {
1383 Block* Parser::ParseImportDeclaration(bool* ok) {
1436 Statement* Parser::ParseExportDeclaration(bool* ok) {
1512 Statement* Parser::ParseBlockElement(ZoneStringList* labels,
1537 Statement* Parser::ParseStatement(ZoneStringList* labels, bool* ok) {
1647 VariableProxy* Parser::NewUnresolved(
1659 void Parser::Declare(Declaration* declaration, bool resolve, bool* ok) {
1814 Statement* Parser::ParseNativeDeclaration(bool* ok) {
1853 Statement* Parser::ParseFunctionDeclaration(ZoneStringList* names, bool* ok) {
1890 Block* Parser::ParseBlock(ZoneStringList* labels, bool* ok) {
1917 Block* Parser::ParseScopedBlock(ZoneStringList* labels, bool* ok) {
1951 Block* Parser::ParseVariableStatement(VariableDeclarationContext var_context,
1970 Block* Parser::ParseVariableDeclarations(
2305 Statement* Parser::ParseExpressionOrLabelledStatement(ZoneStringList* labels,
2371 IfStatement* Parser::ParseIfStatement(ZoneStringList* labels, bool* ok) {
2393 Statement* Parser::ParseContinueStatement(bool* ok) {
2423 Statement* Parser::ParseBreakStatement(ZoneStringList* labels, bool* ok) {
2459 Statement* Parser::ParseReturnStatement(bool* ok) {
2501 Statement* Parser::ParseWithStatement(ZoneStringList* labels, bool* ok) {
2530 CaseClause* Parser::ParseCaseClause(bool* default_seen_ptr, bool* ok) {
2563 SwitchStatement* Parser::ParseSwitchStatement(ZoneStringList* labels,
2591 Statement* Parser::ParseThrowStatement(bool* ok) {
2610 TryStatement* Parser::ParseTryStatement(bool* ok) {
2717 DoWhileStatement* Parser::ParseDoWhileStatement(ZoneStringList* labels,
2745 WhileStatement* Parser::ParseWhileStatement(ZoneStringList* labels, bool* ok) {
2763 bool Parser::CheckInOrOf(bool accept_OF,
2777 void Parser::InitializeForEachStatement(ForEachStatement* stmt,
2875 Statement* Parser::DesugarLetBindingsInForStatement(
3037 Statement* Parser::ParseForStatement(ZoneStringList* labels, bool* ok) {
3241 DebuggerStatement* Parser::ParseDebuggerStatement(bool* ok) {
3255 void Parser::ReportInvalidCachedData(Handle<String> name, bool* ok) {
3304 FunctionLiteral* Parser::ParseFunctionLiteral(
3503 // To make this additional case work, both Parser and PreParser implement a
3587 void Parser::SkipLazyFunctionBody(Handle<String> function_name,
3665 ZoneList<Statement*>* Parser::ParseEagerFunctionBody(
3724 PreParser::PreParseResult Parser::ParseLazyFunctionBodyWithPreParser(
3749 Expression* Parser::ParseV8Intrinsic(bool* ok) {
3804 Literal* Parser::GetLiteralUndefined(int position) {
3810 void Parser::CheckConflictingVarDeclarations(Scope* scope, bool* ok) {
3827 // Parser support
3830 bool Parser::TargetStackContainsLabel(Handle<String> label) {
3840 BreakableStatement* Parser::LookupBreakTarget(Handle<String> label, bool* ok) {
3855 IterationStatement* Parser::LookupContinueTarget(Handle<String> label,
3872 void Parser::RegisterTargetUse(Label* target, Target* stop) {
3883 void Parser::ThrowPendingError() {
4356 // don't want to scan the regexp twice unless it is necessary. This mini-parser
4715 // The Parser interface.
4786 RegExpParser parser(input, &result->error, multiline, zone);
4787 RegExpTree* tree = parser.ParsePattern();
4788 if (parser.failed()) {
4795 int capture_count = parser.captures_started();
4796 result->simple = tree->IsAtom() && parser.simple() && capture_count == 0;
4797 result->contains_anchor = parser.contains_anchor();
4800 return !parser.failed();
4804 bool Parser::Parse() {