@@ -756,13 +756,13 @@ class FieldDeclaration extends ExprParent, @fielddecl, Annotatable {
756756/** A class or instance field. */
757757class Field extends Member , ExprParent , @field, Variable {
758758 /** Gets the declared type of this field. */
759- override Type getType ( ) { fields ( this , _, result , _, _ ) }
759+ override Type getType ( ) { fields ( this , _, result , _) }
760760
761761 /** Gets the Kotlin type of this field. */
762762 override KotlinType getKotlinType ( ) { fieldsKotlinType ( this , result ) }
763763
764764 /** Gets the type in which this field is declared. */
765- override RefType getDeclaringType ( ) { fields ( this , _, _, result , _ ) }
765+ override RefType getDeclaringType ( ) { fields ( this , _, _, result ) }
766766
767767 /**
768768 * Gets the field declaration in which this field is declared.
@@ -794,18 +794,12 @@ class Field extends Member, ExprParent, @field, Variable {
794794 }
795795
796796 /**
797- * Gets the source declaration of this field.
798- *
799- * For fields that are members of a parameterized
800- * instance of a generic type, the source declaration is the
801- * corresponding field in the generic type.
802- *
803- * For all other fields, the source declaration is the field itself.
797+ * DEPRECATED: The result is always `this`.
804798 */
805- Field getSourceDeclaration ( ) { fields ( this , _ , _ , _ , result ) }
799+ deprecated Field getSourceDeclaration ( ) { result = this }
806800
807- /** Holds if this field is the same as its source declaration . */
808- predicate isSourceDeclaration ( ) { this . getSourceDeclaration ( ) = this }
801+ /** DEPRECATED: This always holds . */
802+ deprecated predicate isSourceDeclaration ( ) { any ( ) }
809803
810804 override predicate isPublic ( ) {
811805 Member .super .isPublic ( )
0 commit comments