Lines Matching defs:errors
223 // If a caller doesn't care about errors, we can use this trivial reporter that just counts up.
235 IsAssignableVisitor(ErrorReporter* errors) : fErrors(errors) {}
344 bool Analysis::DetectVarDeclarationWithoutScope(const Statement& stmt, ErrorReporter* errors) {
370 if (errors) {
371 errors->error(stmt.fLine, "variable '" + var->name() + "' must be created in a scope");
384 bool Analysis::IsAssignable(Expression& expr, AssignmentInfo* info, ErrorReporter* errors) {
386 return IsAssignableVisitor{errors ? errors : &trivialErrors}.visit(expr, info);
391 ErrorReporter* errors) {
393 if (!Analysis::IsAssignable(*expr, &info, errors)) {
397 if (errors) {
398 errors->error(expr->fLine, "can't assign to expression '" + expr->description() + "'");
488 ES2IndexingVisitor(ErrorReporter& errors) : fErrors(errors) {}
523 void Analysis::ValidateIndexingForES2(const ProgramElement& pe, ErrorReporter& errors) {
524 ES2IndexingVisitor visitor(errors);