anchor.diff:          }
         } else if (annotationInfo.isContentType) {
           if (isSetter && element.isPublic) {
  -          final returnType = _fieldOrPropertyType(element);
  +          final setter = _setterFor(element);
  +          if (setter == null) {
  +            return;
  +          }
  +          final queryType = setter.parameters.first.type;
             final contentQuery = _getQuery(
               annotationInfo,
               // Avoid emitting the '=' part of the setter.
               element.displayName,
  -            _fieldOrPropertyType(element),
  +            queryType,
             );
             if (contentQuery.first) {
  -            _refuseNonNullableSingleChildQueries(element, returnType!);
  +            _refuseNonNullableSingleChildQueries(element, queryType);
             }
             if (element is FieldElement) {
               _refuseLateQueries(element);
  
positive.code:           if (isField) {
              _refuseLateFinalInputs(element as FieldElement);
            }
            // Resolves specified generic type parameters.
            final setter = _directiveClassElement!.thisType
                .lookUpInheritedSetter(element.displayName)!;
            if (setter.parameters.isEmpty) {
              return CompileContext.current.reportAndRecover(
                BuildError.forElement(
                  element,
                  '@Input setter has no parameters.',
                ),
              );
            }
            final propertyType = setter.parameters.first.type;
            final dynamicType = setter.library.typeProvider.dynamicType;
  
negative.code:         }
        } else if (annotationInfo.isViewType) {
          if (isSetter && element.isPublic) {
            final setter = _setterFor(element);
            if (setter == null) {
              return;
            }
            final queryType = setter.parameters.first.type;
            final viewQuery = _getQuery(
              annotationInfo,
              // Avoid emitting the '=' part of the setter.
              element.displayName,
              queryType,
            );
            if (viewQuery.first) {
              _refuseNonNullableSingleChildQueries(element, queryType);
            }
            if (element is FieldElement) {
              _refuseLateQueries(element);
  