anchor.diff:        return;
       } else {
         if (element.isFactory) {
  -        _resolver.errorReporter.reportErrorForNode(
  +        _errorReporter.reportErrorForNode(
               CompileTimeErrorCode.NON_GENERATIVE_CONSTRUCTOR, node, [element]);
         }
       }
  
positive.code:       if (labelScope == null) {
          // There are no labels in scope, so by definition the label is
          // undefined.
          _resolver.errorReporter.reportErrorForNode(
              CompileTimeErrorCode.LABEL_UNDEFINED, labelNode, [labelNode.name]);
          return null;
        }
  
negative.code:    */
    DartType _getStaticType(Expression expression, {bool read = false}) {
      if (expression is NullLiteral) {
        return _typeProvider.nullType;
      }
      DartType type = read
          ? getReadType(expression, elementTypeProvider: _elementTypeProvider)
  