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

Associate word refer with 'search for references in Scala code' functionality #26

Open
kiritsuku opened this issue Mar 8, 2017 · 0 comments
Labels

Comments

@kiritsuku
Copy link
Owner

The following test for NlqTest does not pass yet:

  @Test
  def xxx(): Unit = {
    indexData(Artifact(Project("p"), "o", "n", "v1"),
      "x.scala"  """
        class A {
          def f = 0
          val a1 = f
          def a2 = {
            val a3 = 0
            f
          }
          var a4 = 0
        }
        trait B {
          def b1: A
          def b2 = b1.f
        }
      """)
    nlqRequest("list names of decls that refer to def A.f").sortedAsList === Seq(
      "a1",
      "a2",
      "b2"
    )
  }

The word refer needs to be associated with the code that searched for references within Scala code.

@kiritsuku kiritsuku added the nlq label Mar 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant