Lines Matching refs:parameter
1550 "An index signature parameter type must be either "
1748 void TSParser::ValidateFunctionParam(const ArenaVector<ir::Expression *> ¶ms, const ir::Expression *parameter,
1751 if (!parameter->IsIdentifier()) {
1753 if (!parameter->IsRestElement()) {
1758 ThrowSyntaxError("A rest parameter must be last in parameter list");
1763 bool currentIsOptional = parameter->AsIdentifier()->IsOptional();
1765 ThrowSyntaxError("A required parameter cannot follow an optional parameter");
1769 const util::StringView ¶mName = parameter->AsIdentifier()->Name();
1773 ThrowSyntaxError("A 'this' parameter must be the first parameter");
1777 ThrowSyntaxError("A constructor cannot have a 'this' parameter");
1781 ThrowSyntaxError("An arrow function cannot have a 'this' parameter");
1790 ThrowSyntaxError("'constructor' cannot be used as a parameter property name");
1811 ir::Expression *parameter = ParseFunctionParameter();
1812 ValidateFunctionParam(params, parameter, &seenOptional);
1815 parameter->AddDecorators(std::move(decorators));
1818 params.push_back(parameter);
1935 ThrowSyntaxError("Setter must have exactly one formal parameter");
1987 ThrowSyntaxError("Invalid type parameter name");
2019 "An index signature parameter type must be either "
2066 "A parameter initializer is only allowed in a function "