[#8] Add Dart language support#32
Open
LahaLuhem wants to merge 17 commits into
Open
Conversation
org.jetbrains.intellij.platform 2.10.5 requires ≥ 8.13
>2.11.0 requires Gradle 9.0.0
Author
|
@nikolaikopernik Not sure about the Gradle plugin bumps. I chose to start building on top of cleaner versions |
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 to the languages the plugin scores (alongside Java, Kotlin, Python).
Scope
and named constructors with non-trivial bodies. Default generative
constructors and body-less named constructors are intentionally excluded.
||patterns,whenguards, sealed/base/final/interface modifiers, records.??scores like an OR sequence;??=,!,?.score 0.async/async*/sync*/await/yieldadd no points themselves —only the structural code inside them does.
Tests
Ported the Java/Python fixtures (
LogicalOperations,ExceptionStatements,LoopStatements,Recursion,ExamplesFromArticle) plus Dart-specificfixtures (
NullSafety,PatternMatching,SwitchExpressions,AsyncGenerators). All pass via./gradlew test.Build
bundledPlugin("Dart", "253.28294.51")dependency.Manual verification in
./gradlew runIdeconfirmed hints render correctlyand the "High code complexity" inspection picks up Dart methods.
Note: also bumps IntelliJ Platform Gradle Plugin 2.10.5→2.11.0 and Gradle
wrapper 8.5→8.14.3 (required to depend on the Dart plugin)