Lines Matching refs:parsing_result

2283   DeclarationParsingResult parsing_result;  in ParseVariableStatement()  local
2284 ParseVariableDeclarations(var_context, &parsing_result, CHECK_OK); in ParseVariableStatement()
2287 Block* result = parsing_result.BuildInitializationBlock(names, CHECK_OK); in ParseVariableStatement()
2293 DeclarationParsingResult* parsing_result, in ParseVariableDeclarations() argument
2309 parsing_result->descriptor.parser = this; in ParseVariableDeclarations()
2310 parsing_result->descriptor.declaration_kind = DeclarationDescriptor::NORMAL; in ParseVariableDeclarations()
2311 parsing_result->descriptor.declaration_pos = peek_position(); in ParseVariableDeclarations()
2312 parsing_result->descriptor.initialization_pos = peek_position(); in ParseVariableDeclarations()
2313 parsing_result->descriptor.mode = VAR; in ParseVariableDeclarations()
2318 parsing_result->descriptor.needs_init = false; in ParseVariableDeclarations()
2330 parsing_result->descriptor.mode = CONST_LEGACY; in ParseVariableDeclarations()
2335 parsing_result->descriptor.mode = CONST; in ParseVariableDeclarations()
2337 parsing_result->descriptor.needs_init = true; in ParseVariableDeclarations()
2341 parsing_result->descriptor.mode = LET; in ParseVariableDeclarations()
2342 parsing_result->descriptor.needs_init = true; in ParseVariableDeclarations()
2347 parsing_result->descriptor.scope = scope_; in ParseVariableDeclarations()
2348 parsing_result->descriptor.hoist_scope = nullptr; in ParseVariableDeclarations()
2369 if (IsLexicalVariableMode(parsing_result->descriptor.mode)) { in ParseVariableDeclarations()
2396 (parsing_result->descriptor.mode == CONST || in ParseVariableDeclarations()
2397 parsing_result->descriptor.mode == CONST_LEGACY)) { in ParseVariableDeclarations()
2398 parsing_result->descriptor.needs_init = false; in ParseVariableDeclarations()
2413 if (!parsing_result->first_initializer_loc.IsValid()) { in ParseVariableDeclarations()
2414 parsing_result->first_initializer_loc = variable_loc; in ParseVariableDeclarations()
2444 if ((parsing_result->descriptor.mode == CONST || is_pattern) && in ParseVariableDeclarations()
2458 if (value == NULL && parsing_result->descriptor.needs_init) { in ParseVariableDeclarations()
2462 parsing_result->declarations.Add(DeclarationParsingResult::Declaration( in ParseVariableDeclarations()
2467 parsing_result->bindings_loc = in ParseVariableDeclarations()
3555 DeclarationParsingResult parsing_result; in ParseForStatement() local
3559 ParseVariableDeclarations(kForStatement, &parsing_result, CHECK_OK); in ParseForStatement()
3560 is_const = parsing_result.descriptor.mode == CONST; in ParseForStatement()
3562 int num_decl = parsing_result.declarations.length(); in ParseForStatement()
3574 parsing_result.bindings_loc, in ParseForStatement()
3580 parsing_result.declarations[0]; in ParseForStatement()
3581 if (parsing_result.first_initializer_loc.IsValid() && in ParseForStatement()
3583 IsLexicalVariableMode(parsing_result.descriptor.mode) || in ParseForStatement()
3586 ReportMessageAt(parsing_result.first_initializer_loc, in ParseForStatement()
3590 ReportMessageAt(parsing_result.first_initializer_loc, in ParseForStatement()
3600 if (!IsLexicalVariableMode(parsing_result.descriptor.mode) && in ParseForStatement()
3607 nullptr, 2, true, parsing_result.descriptor.declaration_pos); in ParseForStatement()
3655 auto descriptor = parsing_result.descriptor; in ParseForStatement()
3681 if (IsLexicalVariableMode(parsing_result.descriptor.mode)) { in ParseForStatement()
3715 init = parsing_result.BuildInitializationBlock( in ParseForStatement()
3716 IsLexicalVariableMode(parsing_result.descriptor.mode) in ParseForStatement()