Skip to content

TargetKind has no value for representing a type parameter #49796

Description

@mateusfccp

The Dart specification says:

Metadata can appear before a library, part header, class, typedef, type parameter, constructor, factory, function, parameter, or variable declaration, and before an import, export, or part directive.

This is also the way it's implemented, such that

class A<@Annotation T> {}

is valid code.

However, TargetKind lacks any value that may represent this case.

I propose creating a TargetKind.typeParameter to fulfill this necessity.

Metadata

Metadata

Assignees

Labels

P3A lower priority bug or feature requestdevexp-pkg-metaIssues related to package:metalegacy-area-analyzerUse area-devexp instead.type-enhancementA request for a change that isn't a bug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions