dart-sdk/pkg/front_end
Martin Kustermann 6fae002f59 [sdk] Use {List,Set}.of() instead of {List,Set}.from()
The `{List,Set}.from` take an `Iterable` and perform a `is Iterable<T>`
type check inside.

The `{List,Set}.of` in comparison take a `Iterable<T>` and do not
perform a type check.

TEST=ci

CoreLibraryReviewExempt: Optimizes implementation, no API changes.
Change-Id: I99f138bfbdedac15752b01bfdf0bbec258bb9107
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/374561
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2024-07-04 10:32:30 +00:00
..
benchmarks [cfe] Cleanup imports 2024-06-27 08:54:39 +00:00
lib/src [cfe] Turn wildcard locals into ExpressionStatements or EmptyStatements. 2024-07-02 22:56:49 +00:00
outline_extraction_testcases
parser_testcases [analyzer][cfe] Introduce parsing for null-aware elements 2024-06-28 09:49:30 +00:00
test [CFE] Auto-add coverage-ignore comments 2024-06-28 13:01:39 +00:00
testcases [sdk] Use {List,Set}.of() instead of {List,Set}.from() 2024-07-04 10:32:30 +00:00
tool [CFE] Auto-add coverage-ignore comments 2024-06-28 13:01:39 +00:00
analysis_options.yaml
analysis_options_no_lints.yaml
error_recovery.yaml
LICENSE
messages.status [dart:js_interop] Add static error for converted functions that contain named params 2024-06-14 19:42:10 +00:00
messages.yaml [dart:js_interop] Add static error for converted functions that contain named params 2024-06-14 19:42:10 +00:00
OWNERS
PRESUBMIT.py
presubmit_helper.dart [cfe] Move src/fasta/ subfolders to src/ 2024-06-25 10:05:21 +00:00
presubmit_helper_spawn.dart
pubspec.yaml add package:_macros (SDK vendored) and package:macros (pub published) 2024-03-26 18:40:00 +00:00
README.md
testing.json [cfe] Move fasta/codes/ to src/ and rename to cfe_codes* 2024-06-20 09:36:39 +00:00
testing_with_lints.json

Front end for Dart

This package provides a low-level API for use by compiler back ends that wish to implement the Dart language. It is intended for eventual use by dev_compiler, dart2js, and the Dart VM. In addition, it will share implementation details with the analyzer package--this will be accomplished by having the analyzer package import (and re-export) parts of this package's private implementation.

End-users should use the dart analyze command-line tool to analyze their Dart code.

Integrators that want to write tools that analyze Dart code should use the analyzer package.

Note: A previous version of this package was published on pub.dev. It has now been marked DISCONTINUED as it is not intended for direct consumption, as per the notes above.