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

Support singleton constants resolution (and/or indexing) #1939

Open
st0012 opened this issue Apr 15, 2024 · 0 comments
Open

Support singleton constants resolution (and/or indexing) #1939

st0012 opened this issue Apr 15, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request server This pull request should be included in the server gem's release notes

Comments

@st0012
Copy link
Member

st0012 commented Apr 15, 2024

Example:

class Foo
  BAR = 10

  class << self
    B # suggest BAR
    CAT = 20
    C # suggest CAT

    def bar
      B # suggest BAR
      C # suggest CAT
    end
  end
end
module Qux
  BAZ = 321
end

module Baz
  prepend Qux
end

class Foo
  BAR = 123
  extend Baz

  class << self
    B # suggest BAR
  end
end
@st0012 st0012 added enhancement New feature or request server This pull request should be included in the server gem's release notes labels Apr 15, 2024
@st0012 st0012 self-assigned this Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request server This pull request should be included in the server gem's release notes
Projects
None yet
Development

No branches or pull requests

1 participant