Lines Matching refs:parameter
689 ThrowSyntaxError("Rest parameter should be the last one.", param->Start());
698 ThrowSyntaxError("Required parameter follows default parameter(s).", param->Start());
705 ThrowSyntaxError("Both optional and rest parameters are not allowed in function's parameter list.",
795 // Note! array is required for the rest parameter.
817 ThrowSyntaxError("Rest parameter must be the last formal parameter.");
1341 ir::AnnotatedExpression *parameter;
1345 parameter = AllocNode<ir::Identifier>(Lexer()->GetToken().Ident(), Allocator());
1346 if (parameter->AsIdentifier()->Decorators().empty()) {
1347 parameter->SetRange(Lexer()->GetToken().Loc());
1349 parameter->SetRange(
1350 {parameter->AsIdentifier()->Decorators().front()->Start(), Lexer()->GetToken().End()});
1366 parameter = AllocNode<ir::SpreadElement>(ir::AstNodeType::REST_ELEMENT, Allocator(), restIdent);
1367 parameter->SetRange({startLoc, Lexer()->GetToken().End()});
1377 return parameter;
1381 static constexpr char const NO_DEFAULT_FOR_REST[] = "Rest parameter cannot have the default value.";
1382 static constexpr char const ONLY_ARRAY_FOR_REST[] = "Rest parameter should be of an array type.";
1552 ThrowSyntaxError("Unexpected token in catch parameter, expected an identifier");