Lines Matching refs:parameter
1409 "An index signature parameter type must be 'string', 'number', 'symbol', "
2512 ThrowSyntaxError("Setter must have exactly one formal parameter");
3452 "that contains initialized properties, parameter properties, or private identifiers.",
3653 void ParserImpl::ValidateFunctionParam(const ArenaVector<ir::Expression *> ¶ms, const ir::Expression *parameter,
3656 if (!parameter->IsIdentifier()) {
3658 if (!parameter->IsRestElement()) {
3663 const char *msg = (Extension() == ScriptExtension::JS ? "Rest parameter must be last formal parameter"
3664 : "A rest parameter must be last in parameter list");
3674 bool currentIsOptinal = parameter->AsIdentifier()->IsOptional();
3676 ThrowSyntaxError("A required parameter cannot follow an optional parameter");
3680 const util::StringView ¶mName = parameter->AsIdentifier()->Name();
3684 ThrowSyntaxError("A 'this' parameter must be the first parameter");
3688 ThrowSyntaxError("A constructor cannot have a 'this' parameter");
3692 ThrowSyntaxError("An arrow function cannot have a 'this' parameter");
3701 ThrowSyntaxError("'constructor' cannot be used as a parameter property name");
3730 ir::Expression *parameter = ParseFunctionParameter(isDeclare);
3731 ValidateFunctionParam(params, parameter, &seenOptional);
3733 params.push_back(parameter);
3779 ThrowSyntaxError("'in' modifier can only appear on a type parameter of a class, interface or type alias");
3796 ThrowSyntaxError("'out' modifier can only appear on a type parameter of a class, interface or type alias");
3825 ThrowSyntaxError("Type parameter declaration expected");
3835 ThrowSyntaxError("Invalid type parameter name");
3930 ThrowSyntaxError("Type parameter list cannot be empty.");
4089 "A parameter initializer is only allowed in a function "
4138 ir::TSParameterProperty *ParserImpl::CreateTsParameterProperty(ir::Expression *parameter, ir::ModifierFlags modifiers)
4166 return AllocNode<ir::TSParameterProperty>(accessibility, parameter, readonly, isOverride, isStatic, isExport);
4178 ThrowSyntaxError("A parameter property is only allowed in a constructor implementation.", parameterStart);
4194 ThrowSyntaxError("A parameter property cannot be declared using a rest parameter.", parameterStart);
4202 ThrowSyntaxError("A parameter property may not be declared using a binding pattern.", parameterStart);
4280 ThrowSyntaxError("'await' in formal parameter is invalid.", node->Start());
4331 "' modifier cannot appear on a parameter."},