Purpose of external declarations in public tests

Hello,

why exactly do some of the public tests add external declarations? Since the internal state of the AST factory is not visible to them the only thing this achieves is that tests fail if creating an external declaration fails.

Well, to test whether this method works :slightly_smiling_face:

The ASTFactory is always called in a way consistent with the parser. It also is there.

If all you care about are the points for the AST, simply leave those methods empty, as they should be by default.

The method should never fail.

1 Like