commit | b07c7798ca8efcec0dec507ec3853b045860b410 | [log] [tgz] |
---|---|---|
author | Paul Berry <paulberry@google.com> | Thu Mar 24 20:51:21 2022 +0000 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Mar 24 20:51:21 2022 +0000 |
tree | ef16d3bc7c94b1304b0801ad39a39cd59e699638 | |
parent | 464bece5290efa31bb4eaeadf6c7f28c373d47d1 [diff] |
Push logic for constraining argument types into `InvocationInferrer._visitArguments`. This allows us to avoid some redundant computation (we don't have to match up arguments to the corresponding parameters twice). It also paves the way for supporting improved type inference of `fold` (https://github.com/dart-lang/language/issues/731) because it will allow us to resolve some arguments (gathering more constraints), then compute a new set of inferred types, then resolve more arguments, and so on, rather than forcing us to do all the constraint gathering at the end. Change-Id: I67d8b8228390ced14281145a4614f66c8e3c7e73 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/238622 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Samuel Rawlins <srawlins@google.com> Commit-Queue: Paul Berry <paulberry@google.com>
Dart is:
Optimized for UI: Develop with a programming language specialized around the needs of user interface creation.
Productive: Make changes iteratively: use hot reload to see the result instantly in your running app.
Fast on all platforms: Compile to ARM & x64 machine code for mobile, desktop, and backend. Or compile to JavaScript for the web.
Dart's flexible compiler technology lets you run Dart code in different ways, depending on your target platform and goals:
Dart Native: For programs targeting devices (mobile, desktop, server, and more), Dart Native includes both a Dart VM with JIT (just-in-time) compilation and an AOT (ahead-of-time) compiler for producing machine code.
Dart Web: For programs targeting the web, Dart Web includes both a development time compiler (dartdevc) and a production time compiler (dart2js).
Dart is free and open source.
See LICENSE and PATENT_GRANT.
Visit dart.dev to learn more about the language, tools, and to find codelabs.
Browse pub.dev for more packages and libraries contributed by the community and the Dart team.
Our API reference documentation is published at api.dart.dev, based on the stable release. (We also publish docs from our beta and dev channels, as well as from the primary development branch).
If you want to build Dart yourself, here is a guide to getting the source, preparing your machine to build the SDK, and building.
There are more documents on our wiki.
The easiest way to contribute to Dart is to file issues.
You can also contribute patches, as described in Contributing.