Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AST::InPatternNode node #183

Merged
merged 1 commit into from May 26, 2021
Merged

Commits on May 10, 2021

  1. Add AST::InPatternNode node

    This PR adds `AST::InPatternNode` node.
    It aims to make access to `in` pattern node of the pattern matching syntax
    convenient and readable.
    
    For example, pattern matching syntax AST can use `in_pattern.body` and
    prevents the following error:
    
    ```console
    NoMethodError:
      undefined method `body' for s(:in_pattern,
        s(:array_pattern,
          s(:match_var, :a)), nil,
        s(:int, 1)):RuboCop::AST::Node
    ```
    koic committed May 10, 2021
    Copy the full SHA
    05b3f40 View commit details
    Browse the repository at this point in the history