dart-lang / dart-lang/source_gen

Revivable has no way of specifying type arguments

Open
#478 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
494
Forks
115
Avg merge
12h 13m
Merged PRs (30d)
3

Description

For instance how would I revive the default value of `c`?

```dart
class A {
void m([C c = const C()]) {}
}

class C {
const C();
}
```

I think Reviver needs a `typeArguments` getter.

Contributor guide

Open the contributing guide

Research direction

Start by locating the Revivable and Reviver APIs and tracing how default values are revived. Done means the API can specify type arguments so a default value such as const C() can be revived.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
build-system, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.