dart-sdk/pkg/front_end
Paul Berry 1b18e8f5ac Flow analysis: account for initializers of implicitly typed variables.
Previously, initializers of implicitly typed variables did not
contribute to the SSA tracking performed by flow analysis (see
https://github.com/dart-lang/language/issues/1785).  This change fixes
the bug, however the fix is conditioned on the "constructor tearoffs"
language feature to avoid compatibility issues (we don't want someone
to publish a package taking advantage of the fix, without realizing
that it makes their package unusable on older SDKs).

TEST=standard trybots
Bug: https://github.com/dart-lang/language/issues/1785
Change-Id: I1143440c7a9795b059e8f4b84e3f4125cd80732c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/211306
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2021-08-27 15:01:15 +00:00
..
benchmarks/ikg [kernel,front_end] Migrate first wave of pkg/kernel and pkg/front_end 2021-01-18 15:40:21 +00:00
lib Flow analysis: account for initializers of implicitly typed variables. 2021-08-27 15:01:15 +00:00
parser_testcases Parser: Reduce the set of disambiguation tokens for resolving < ambiguities. 2021-08-27 14:56:16 +00:00
test Flow analysis: account for initializers of implicitly typed variables. 2021-08-27 15:01:15 +00:00
testcases [cfe] Add test for duplicate instantiation 2021-08-26 17:39:38 +00:00
tool [cfe] Handle explicit instantiation in implicit creation syntax 2021-08-26 11:59:48 +00:00
analysis_options.yaml
analysis_options_no_lints.yaml [cfe] Refactor ClassHierarchyBuilder to use Tuple for computation 2021-01-19 19:52:13 +00:00
error_recovery.yaml
LICENSE Update LICENSE 2021-04-07 10:28:38 +00:00
messages.status [cfe] Add UnresolvedKind for fine grained unresolved reporting 2021-08-25 09:51:54 +00:00
messages.yaml [cfe] Add UnresolvedKind for fine grained unresolved reporting 2021-08-25 09:51:54 +00:00
PRESUBMIT.py [python3] Migrate PRESUBMIT.py files 2021-08-16 08:29:54 +00:00
pubspec.yaml [kernel,front_end] Migrate first wave of pkg/kernel and pkg/front_end 2021-01-18 15:40:21 +00:00
README.md
testing.json [CFE] First pass at internal test utility 2021-06-22 08:12:58 +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.