Skip to content

Fix prefix hover and go to definition for parts with imports #60645

Open
@FMorschel

Description

@FMorschel

Consider:

main.dart:

import 'dart:async' as alias;

part 'part.dart';

part.dart

part of 'main.dart';

import 'dart:math' as alias;

void foo(int a, int b) => alias.max(a, b);
alias.FutureOr bar() {}

I was under the impression that when creating alias inside part, it would override the main definition for it. But I might be mistaken.

If this is intended, then the "Go to definition" and hover for the import prefix should take this into consideration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-serverIssues related to some aspect of the analysis serverfeature-enhanced-partsRegarding the 'enhanced-parts' feature

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions