nitlang / nit

Nit language
http://nitlanguage.org
Apache License 2.0
238 stars 64 forks source link

modelbuilder_base: Define ANode as nullable #2816

Closed Delja closed 4 years ago

Delja commented 4 years ago

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.