characterLocation property

CharacterLocation characterLocation
override

Implementation

@override
CharacterLocation get characterLocation {
  // Handle all synthetic possibilities.  Ordinarily, warnings for
  // explicit setters/getters will be handled by those objects, but
  // if a warning comes up for an enclosing synthetic field we have to
  // put it somewhere.  So pick an accessor.
  if (element.isSynthetic) {
    if (hasExplicitGetter) return getter.characterLocation;
    if (hasExplicitSetter) return setter.characterLocation;
    assert(false, 'Field and accessors can not all be synthetic');
  }
  return super.characterLocation;
}