Repository navigation
Add Dart and Flutter - #8
Open
MaurizioSodano wants to merge 9 commits into
Open
MaurizioSodano wants to merge 9 commits into
MaurizioSodano wants to merge 9 commits into
Conversation
Refs #2 Claude-Session: https://claude.ai/code/session_01L2LePAtan3pdyUWbr64gpS
Refs #2 Claude-Session: https://claude.ai/code/session_01L2LePAtan3pdyUWbr64gpS
The Dart commits were written on top of Kotlin: define _INTERPOLATIONS and the string_literal check, import child_of_type, and drop the Kotlin fingerprint pins.
Dart and Swift were added at the same insertion points. Kept both, and took master's consolidated shape where master simplified the code the Dart branch extended: - discover.py: master's single _TEST_SUFFIXES list, with `_test.dart` added; kept DART_TEST_DIRS and DART_GENERATED_SUFFIXES because Dart's test folders and generated files are Dart-only rules. - astnorm.py: kept master's _INTERPOLATED and _is_literal. Dart's `template_substitution` is a separate set scoped to `string`, because folding it into _INTERPOLATED would stop treating TypeScript template strings as literals and changes their fingerprints. - extract.py, cli.py, pyproject.toml, README.md: both languages listed.
Dart support
Brings upstream Swift support into dart-support and fixes the Dart merge typos. Co-authored-by: Mathieu Rousseau <mathieu.rousseau.31@gmail.com>
The full definition follows _dart_holder; the stub had a docstring and no body, so Python rebound it silently. Claude-Session: https://claude.ai/code/session_019tjHW6DS2TihFZdCwmwQnc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Dart (and Flutter) to dryer.
externalmembers, locals or closures.const Padding(...), cascades (..add(1)) andsuper.initState().?.is part of the shape. A string with${}is not a plain literal..dart_tool,integration_test/and*_test.dartare skipped; the Dart-only test folders do not affect other languages.Run on a Flutter monorepo (
packages+apps): 1,842 pairs in 16 s.Tests:
tests/test_dart.py(95 total pass). It pins the fingerprints of Java, TypeScript and Python samples, so this change does not alter them. Theparse_argsCRAP 16 is onmasteralready.https://claude.ai/code/session_01L2LePAtan3pdyUWbr64gpS