allow overriding stub-AST bindings calculation