Skip to content

Scope funk doesn't match on Class methods - ruby #760

@richardmcmillen

Description

@richardmcmillen

I was hoping to try and fix this myself as a way to get familiar with how cursorless + tree sitter works but it might take me a bit to get up to speed. Here is the issue:

Given this code:

class Test
  class << self
    # `take funk` doesn't work
    def baz
    end
  end

  # `take funk` doesn't work
  def self.foo
    new.process
  end

  # `take funk` doesn't work
  def Test.bar
    new.process
  end

  # `take funk` works :D
  def process
    puts "process"
  end
end

Current use cases/scopes not covered:

  • "change funk" on a function defined self.
  • "change funk" on a function defined ClassName.
  • "change funk" on a function defined within class << self .... end block

Metadata

Metadata

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions