Java: Deprecate Field.getSourceDeclaration() and Field.isSourceDeclaration()

Also follows the removal of the sourceid column of fields.
This commit is contained in:
Ian Lynagh
2024-09-18 11:27:20 +01:00
parent 0be52f9660
commit bda779a58d
11 changed files with 24 additions and 41 deletions

View File

@@ -40,7 +40,7 @@ class ImmutableField extends Field {
this.getType() instanceof ImmutableType and
// The field is only assigned to in a constructor or static initializer of the type it is declared in.
forall(FieldAccess fw, AnyAssignment ae |
fw.getField().getSourceDeclaration() = this and
fw.getField() = this and
fw = ae.getDest()
|
ae.getEnclosingCallable().getDeclaringType() = this.getDeclaringType() and