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

Go to Imports with static declarations not working #59823

Open
FMorschel opened this issue Dec 30, 2024 · 2 comments
Open

Go to Imports with static declarations not working #59823

FMorschel opened this issue Dec 30, 2024 · 2 comments
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P3 A lower priority bug or feature request type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@FMorschel
Copy link
Contributor

FMorschel commented Dec 30, 2024

Repro:

a.dart

class A {
  static const a = 1;
}

main.dart

import 'a.dart';

void foo(A a) {}

void bar() {
  A.a;
}

On foo parameter, I can use the Go to Imports command, but not inside bar.

I'll work on this.

CC @DanTup


Edit

Continued work for #56584.

@FMorschel FMorschel added the area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. label Dec 30, 2024
@keertip keertip added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) P3 A lower priority bug or feature request labels Dec 30, 2024
@FMorschel
Copy link
Contributor Author

@bwilkerson should this command work only on the type name or on the static declaration too (thinking of dart-lang/language#3835 and #57036)?

@FMorschel
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P3 A lower priority bug or feature request type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants