dart-lang / dart-lang/source_gen

Allow `TypeChecker` to be extended.

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

Description

Currently, TypeChecker has a private constructor that prevents outside extension, but does not prevent implementing.

This results in a strange state where anyone wanting their own custom type checkers don't get the convenience of only implementing `isExactly` and must implement the entire interface.

Contributor guide

Open the contributing guide

Research direction

Start by locating the TypeChecker definition and inspecting its private constructor and interface. Confirm how an external custom checker currently has to implement the full interface, then make the extension path support implementing only isExactly and verify that existing TypeChecker behavior remains intact.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.