Skip to content

Explain when check_node, when check_edge #129

Description

@filipsch

There are two distinct ways to walk down the AST: you can navigate to nodes with check_node(), or walk down edged with check_edge(), or you can do a combination of that. For @sumedh10 it wasn't clear what the best way is. A knowledge article should be added to sqlwhat.readthedocs.io to explain what is best in which situation.

Examples for this can be found here

(a bit similar to check_arg by index or name)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions