Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ExposeNodeContext#nesting_nodes attribute reader#3863

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
janko wants to merge1 commit intoShopify:main
base:main
Choose a base branch
Loading
fromjanko:node-context-nesting-nodes

Conversation

@janko
Copy link
Contributor

@jankojanko commentedDec 11, 2025
edited
Loading

I needed this for implementingShopify/ruby-lsp-rails#669, where I had to check whether a node is within an instance method of a subclass ofActiveRecord::Migration[x.y] (seerelevant code).

Since the latter isn't a direct class reference, I couldn't use the indexer to check the superclass of the migration class, as that was returning a fallback::Object.

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

Reviewers

No reviews

Assignees

@vinistockvinistock

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@janko@vinistock

[8]ページ先頭

©2009-2025 Movatter.jp