Declare(declaration, mode != VAR, CHECK_OK);
nvars++;
if (declaration_scope->num_var_or_const() > kMaxNumFunctionLocals) {
- ReportMessageAt(scanner()->location(), "too_many_variables");
+ ReportMessage("too_many_variables");
*ok = false;
return NULL;
}
if (!label.is_null()) {
message = "unknown_label";
}
- ParserTraits::ReportMessageAt(scanner()->location(), message, label);
+ ParserTraits::ReportMessage(message, label);
*ok = false;
return NULL;
}
if (!label.is_null()) {
message = "unknown_label";
}
- ParserTraits::ReportMessageAt(scanner()->location(), message, label);
+ ParserTraits::ReportMessage(message, label);
*ok = false;
return NULL;
}
scope_->DeclareParameter(param_name, VAR);
num_parameters++;
if (num_parameters > Code::kMaxArguments) {
- ReportMessageAt(scanner()->location(), "too_many_parameters");
+ ReportMessage("too_many_parameters");
*ok = false;
return NULL;
}
default:
const char* name = Token::String(token);
ASSERT(name != NULL);
- Traits::ReportMessageAt(
- source_location, "unexpected_token", name);
+ Traits::ReportMessageAt(source_location, "unexpected_token", name);
}
}
IdentifierT name = this->GetSymbol(scanner());
if (allow_eval_or_arguments == kDontAllowEvalOrArguments &&
strict_mode() == STRICT && this->IsEvalOrArguments(name)) {
- ReportMessageAt(scanner()->location(), "strict_eval_arguments");
+ ReportMessage("strict_eval_arguments");
*ok = false;
}
return name;
IdentifierT js_pattern = this->NextLiteralString(scanner(), TENURED);
if (!scanner()->ScanRegExpFlags()) {
Next();
- ReportMessageAt(scanner()->location(), "invalid_regexp_flags");
+ ReportMessage("invalid_regexp_flags");
*ok = false;
return Traits::EmptyExpression();
}
true, CHECK_OK_CUSTOM(NullExpressionList));
result->Add(argument, zone_);
if (result->length() > Code::kMaxArguments) {
- ReportMessageAt(scanner()->location(), "too_many_arguments");
+ ReportMessage("too_many_arguments");
*ok = false;
return this->NullExpressionList();
}
if (IsDataDataConflict(old_type, type)) {
// Both are data properties.
if (strict_mode_ == SLOPPY) return;
- parser()->ReportMessageAt(scanner()->location(),
- "strict_duplicate_property");
+ parser()->ReportMessage("strict_duplicate_property");
} else if (IsDataAccessorConflict(old_type, type)) {
// Both a data and an accessor property with the same name.
- parser()->ReportMessageAt(scanner()->location(),
- "accessor_data_property");
+ parser()->ReportMessage("accessor_data_property");
} else {
ASSERT(IsAccessorAccessorConflict(old_type, type));
// Both accessors of the same type.
- parser()->ReportMessageAt(scanner()->location(),
- "accessor_get_set");
+ parser()->ReportMessage("accessor_get_set");
}
*ok = false;
}