Skip to content

In which cases does astMapper(...).statement(...) return nil? #88

@gthb

Description

@gthb

The return types of all methods on IAstPartialMapper include | nil. In what case might that be returned?

In my case I'm calling astMapper(...).statement(stmt) where stmt is a SelectFromStatement. Staring at AstDefaultMapper.selection, that returns assignChanged(val, ...) and assignChanged returns the same type as its first argument. So I fully expect to get a SelectFromStatement back. What's the nil there for? And if I do get a nil, how would I get at some more information about what went wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions