Merge: modelbuilder_base: Define ANode as nullable
authorJean Privat <jean@pryen.org>
Mon, 20 Apr 2020 13:14:26 +0000 (09:14 -0400)
committerJean Privat <jean@pryen.org>
Mon, 20 Apr 2020 13:14:26 +0000 (09:14 -0400)
commit9a1a82f52e8eff52d68763d66ea96bf243a6bdce
tree3deb923c011125142327ab66a5f6426d185cdf64
parent8ba146ebe261e590a36fc4e455c08445fc88e851
parente7d83131a3e22698fc547ba137c85e0520cdb0d0
Merge: modelbuilder_base: Define ANode as nullable

Definition of ANode as nullable. When you create entities manually there is not necessarily a current attachment point (in the ast). It is therefore more practical to provide a service with the ANode which can be null.

In addition, the `fun error (n: nullable ANode, text: String)` method that will be called already handles this case.

Pull-Request: #2816