• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dart-lang / native / 21942795171
74%

Build:
DEFAULT BRANCH: main
Ran 12 Feb 2026 10:33AM UTC
Jobs 3
Files 86
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Feb 2026 10:26AM UTC coverage: 74.172% (-0.08%) from 74.255%
21942795171

push

github

web-flow
[record_use] Rework `Definition`s (#3075)

This change addresses the ambiguity issues in how we identify Dart definitions. The new API ensures we can unambiguously capture and reference all kinds of statically resolved symbols across classes, extensions, and extension types.

Related bugs:

* https://github.com/dart-lang/native/issues/2888
* https://github.com/dart-lang/native/issues/3062

### Key Changes

#### 1. Structured `Name` with Kinds and Disambiguators
Each segment in the path is now a `Name` object containing:
* `name`: The string identifier.
* `kind`: A `DefinitionKind` (e.g., `classKind`, `methodKind`, `getterKind`, `setterKind`, `operatorKind`).
* `disambiguators`: A `Set<DefinitionDisambiguator>` used to distinguish between `static` and `instance` members, which is critical for extensions and extension types.

The `kind` and `disambiguators` are null. Setting them non-null will be done in a follow up PR.

#### 2. Canonical URI `toString()`
Implemented a "smart" `toString()` that produces valid, URI-friendly strings for use in tooling and documentation.
* **Format:** `library#kind:name@disambiguator::kind:name`
* **Example:** `package:my_pkg/foo.dart#class:MyClass::method:myMethod@static`

(Taken from discussions on https://github.com/dart-lang/language/issues/4616)

37 of 58 new or added lines in 2 files covered. (63.79%)

5982 of 8065 relevant lines covered (74.17%)

73.87 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
21
67.69
-16.31% pkgs/record_use/lib/src/definition.dart
Subprojects
ID Flag name Job ID Ran Files Coverage
1 native_pkgs_ubuntu 21942795171.1 12 Feb 2026 10:33AM UTC 86
70.28
GitHub Action Run
2 native_pkgs_macos 21942795171.2 12 Feb 2026 10:35AM UTC 86
71.1
GitHub Action Run
3 native_pkgs_windows 21942795171.3 12 Feb 2026 10:38AM UTC 86
72.65
GitHub Action Run
Source Files on build 21942795171
  • Tree
  • List 86
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21942795171
  • 73ba13f9 on github
  • Prev Build on main (#21908296133)
  • Next Build on main (#21944971754)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc