flutter / flutter/devtools

Use dot-shorthand syntax for doubles when possible

Offen
#9,328 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
analysis-server-change-needed P3 property editor
Vorherrschende Sprache
Dart
Sterne
1.7k
Forks
404
Ø Merge
6 T. 17 Std.
Gemergte PRs (30 T.)
18

Beschreibung

If a user has a double property that could support dot shorthand syntax but isn't, e.g.:

* `double.infinity` -> `.infinity`
* `double.nan` -> `.nan`

We could display the dot-shorthand version to help users discover this new language feature. This would require the analysis server to send the current Dart version to the Property Editor Client so that the Property Editor Client can determine whether dot-shorthand syntax is supported.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.