Files
sdk/pkg/analysis_server/lib
Kallen Tu 386a147b58 [linter] Primary constructors - Add lint 'var_with_no_type_annotation'
This new lint fires when a formal parameter is declared with `var` and
no type annotation.

We're adding this lint to ease the migration for when primary
constructors is enabled. Adding a quick-fix for this lint will come in a
follow-up CL.

Tests:
- Class methods, extension methods, extension type methods, mixin
methods, constructors, setters, functions
- Initializing formals
- Super parameters
- Function typed parameters
- Named parameters, positional parameters, optional parameters, required
parameters,

Bug: https://github.com/dart-lang/sdk/issues/61591
Change-Id: Ib09c87e234cde4be024af0b9d8a1e3e0a371e777
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/481620
Commit-Queue: Kallen Tu <kallentu@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2026-02-20 09:34:45 -08:00
..