Home
last modified time | relevance | path

Searched refs:is_rest (Results 1 – 6 of 6) sorted by relevance

/external/v8/src/parsing/
Dparser.h88 int initializer_end_position, bool is_rest) in Parameter()
94 is_rest(is_rest) {} in Parameter()
100 bool is_rest; member
103 return pattern->IsVariableProxy() && initializer == nullptr && !is_rest; in is_simple()
910 bool is_rest) {
911 parameters->UpdateArityAndFunctionLength(initializer != nullptr, is_rest);
919 initializer_end_position, is_rest);
938 is_optional, parameter->is_rest, has_duplicate, ast_value_factory(),
Dpreparser.h855 Parameter(ZonePtrList<VariableProxy>* variables, bool is_rest) in Parameter()
856 : variables_(variables), is_rest(is_rest) {} in Parameter()
862 bool is_rest : 1; member
1663 bool is_rest) {
1667 pattern.variables_, is_rest));
1669 parameters->UpdateArityAndFunctionLength(!initializer.IsNull(), is_rest);
1690 parameter->is_rest, ast_value_factory(),
1700 parameter->is_rest, ast_value_factory(),
Dparser.cc105 bool is_rest = true; in DefaultConstructor() local
108 constructor_args_name, VariableMode::kTemporary, is_optional, is_rest, in DefaultConstructor()
572 bool is_rest = false; in DoParseProgram() local
575 is_rest, &is_duplicate, in DoParseProgram()
2405 bool is_rest = expr->IsSpread(); in AddArrowFunctionFormalParameters() local
2406 if (is_rest) { in AddArrowFunctionFormalParameters()
2410 DCHECK_IMPLIES(parameters->is_simple, !is_rest); in AddArrowFunctionFormalParameters()
2427 end_pos, is_rest); in AddArrowFunctionFormalParameters()
3090 const bool is_rest = false; in ParseFunction() local
3094 kNoSourcePosition, is_rest); in ParseFunction()
Dparser-base.h76 void UpdateArityAndFunctionLength(bool is_optional, bool is_rest) { in UpdateArityAndFunctionLength()
77 if (!is_optional && !is_rest && function_length == arity) { in UpdateArityAndFunctionLength()
3781 bool is_rest = parameters->has_rest; in ParseFormalParameter() local
3795 if (is_rest) { in ParseFormalParameter()
3812 scanner()->location().end_pos, is_rest); in ParseFormalParameter()
/external/v8/src/ast/
Dscopes.cc1022 const AstRawString* name, VariableMode mode, bool is_optional, bool is_rest, in DeclareParameter() argument
1027 DCHECK(!is_optional || !is_rest); in DeclareParameter()
1041 has_rest_ = is_rest; in DeclareParameter()
1051 const AstRawString* name, bool is_rest, AstValueFactory* ast_value_factory, in DeclareParameterName() argument
1055 DCHECK(!has_rest_ || is_rest); in DeclareParameterName()
1057 has_rest_ = is_rest; in DeclareParameterName()
Dscopes.h725 bool is_optional, bool is_rest, bool* is_duplicate,
730 Variable* DeclareParameterName(const AstRawString* name, bool is_rest,