Sam Rawlins

Results 125 issues of Sam Rawlins

The idea here is to allow (and encourage) users to write a `@Deprecated` message as if it were a doc comment, using square brackets to refer to elements, and to...

area-analyzer
P3
analyzer-ux
type-enhancement

If a private class, mixin, or enum is never referenced outside of an is-expression, and is referenced in the right side of an is-expression, and the is-expression is part of...

area-analyzer
analyzer-hint
type-enhancement
P4

The `@alwaysThrows` annotation can be replaced with a return type of `Never`. A `@deprecated` annotation on `alwaysThrows` would report for pre-null safe code, so we should not do that. Instead,...

area-analyzer
P3
analyzer-hint
type-enhancement

The records spec does not currently use the word 'const' or 'constant'. Can a record be const? Something like ```dart const x = 'one'; const y = 'two'; const r...

question
patterns

One of the five paragraphs under Motivation is about `Future.wait`: https://github.com/dart-lang/language/blob/df9574472a7a84aa518b88794c5ec9ff6349f170/working/0546-patterns/records-feature-specification.md > You've probably noticed this if you've ever used `Future.wait()` to wait on a couple of futures of different...

patterns

The [introduction to switch expressions](https://github.com/dart-lang/language/blob/master/working/0546-patterns/patterns-feature-specification.md#switch-expression) briefly compares them to conditional expressions, which are allowed in const contexts. Are switch expressions? E.g. this is legal and I imagine useful. ```dart const...

patterns-later

I'd like a buildozer command that copies a rule. Right now buildozer has `copy ` to copy attribute values, and `new ` to make a new rule, but I would...

## unreachable_from_main ## Description The description does not need to change. ## Details As implemented now (in https://github.com/dart-lang/linter/pull/3513), `unreachable_from_main` only checks top-level members. It would be great to extend this...

lint proposal
status: pending

## prefer_extension_accessor_to_top_level_function ## Description Prefer an extension accessor (getter or setter) to a top-level function with one parameter. ## Details I am really enjoying extensions. There are many static or...

lint proposal
status: pending