Skip to content

Jump to definition and dotted imports #815

Open

Description

@rfindler

With this file in y.rhm:

#lang rhombus
export y
def y = 1

and this file (in the same directory) open in drracket:

#lang rhombus
import:
  "y.rhm"
  "y.rhm" open

y
y.y

You’ll see that the y by itself has “jump to definition” but the y.y doesn’t. Helpfully, the first y in the y.y has a link up to the import line, so I guess that it would be ideal if the second y in the y.y had the syntax information that triggered the jump-to-definition.

Judging from the file drracket-tool-text-lib/drracket/private/syncheck/traversals.rkt, Check Syntax looks at identifier-binding to find these, using the module-path index in the first element of the result list to get a filename.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions