Meeting minutes for 22.08.2023 #1661
Replies: 2 comments 1 reply
-
I have the following discussion point with regard to #1646. The "bug" in neo4j is fixed (although they say it's completely unsupported) so we could directly use an AstEdge in a single-node property edge. However, this has the drawback that in order to support "on change" events, e.g. to replace a type listener when the edge changes, we need to resort back to overriding the setter. If we would stick with the singleton edge list, the list can take care of this like this: var initializerEdge =
astOptionalEdgeOf<Expression>(
onChanged = { old, new ->
val value = new?.end
exchangeTypeObserver(old, new)
if (value is Reference) {
value.resolutionHelper = this
}
}
) otherwise a setter would be needed like this: var initializerEdge = astOptionalEdgeOf<Expression>()
set(new) {
val value = new?.end
exchangeTypeObserver(field, new)
if (value is Reference) {
value.resolutionHelper = this
}
field = new This only is needed in a couple of places (~ 10), but still not really pretty. The advantage of course is that we do not need a pointless wrapper around an |
Beta Was this translation helpful? Give feedback.
-
Singleton Edge List
C/C++ Function resolution has issues
|
Beta Was this translation helpful? Give feedback.
-
Agenda
Discussed PRs
-[]
Beta Was this translation helpful? Give feedback.
All reactions