Skip to content

DDC source map hover info is often missing #32083

Closed
@jmesserly

Description

@jmesserly

Hover on many expressions does not work correctly:

var _baz = new Bar();

class Bar {
  int id = 42;
  String _name = "bar";
}

class Foo {
  bool _flag = false; // field names should be hoverable
  Bar _bar = new Bar();
  List<Bar> _bars = [new Bar(), new Bar()];

  bool get check => _flag && _bar.id == 42; // _flag points at `dart.test` helper

  void dump() {
    _flag = true;
    var x = _flag ? _bar.id : this._bar.id; // this._bar doesn't work, shows full expr value
    var z = _baz.id;
    var self = this;
    var w = self._bar.id; // self._bar doesn't work
    var name = _bar._name;
    print(this._bars[1]); // indexing doesn't work (not clear if we can fix)
    print(check);
    print(x + z);
  }
}

void main() {
  var foo = new Foo();
  foo.dump();
}

Metadata

Metadata

Assignees

Labels

P1A high priority bug; for example, a single project is unusable or has many test failuresdev-compiler-uxweb-dev-compiler

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions