dart-sdk/pkg/front_end/testcases
Kallen Tu 48cadec309 [cfe] Top level function wildcard parameters are non-binding.
This CL prevents function wildcard parameter collisions and avoids adding function wildcard parameters to scope.

Bug: https://github.com/dart-lang/sdk/issues/55655
Change-Id: I5a8b85ceef15b355f6a36a1d1d19df038980331d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/371941
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Kallen Tu <kallentu@google.com>
2024-06-18 18:23:55 +00:00
..
class_modifiers [cfe] Update expectations after change to test suite 2024-05-30 11:25:43 +00:00
const_functions
constructor_tearoffs [cfe] Remove Env.isNonNullableByDefault 2024-06-03 06:42:54 +00:00
dart2js Add expectation tests for Function.toJS lowerings 2024-06-14 22:28:40 +00:00
dart2wasm
dartdevc Add expectation tests for Function.toJS lowerings 2024-06-14 22:28:40 +00:00
dartino
enhanced_enums
expression [cfe] Introduce compilation unit 2024-06-10 13:41:24 +00:00
extension_types [cfe] Update expectations after change to test suite 2024-05-30 11:25:43 +00:00
extensions [cfe] Update expectations after change to test suite 2024-05-30 11:25:43 +00:00
general [cfe] isWildcard set only with experiment on. 2024-06-12 14:25:59 +00:00
generic_metadata
implicit_getter_calls
incremental [cfe] Process imports/exports separately 2024-06-17 12:43:51 +00:00
inference [cfe] Remove Env.isNonNullableByDefault 2024-06-03 06:42:54 +00:00
inference_new
inference_update_1
inference_update_2
inference_update_3
instantiate_to_bound
late_lowering
late_lowering_sentinel
macros [cfe] Allow augmenting top-level members in the same file 2024-05-30 13:32:25 +00:00
named_arguments_anywhere
nnbd
no_such_method_forwarders
none
nonfunction_type_aliases
offsets
patterns [cfe] isWildcard set only with experiment on. 2024-06-12 14:25:59 +00:00
rasta
records [cfe] isWildcard set only with experiment on. 2024-06-12 14:25:59 +00:00
regress
runtime_checks
runtime_checks_new
sealed_class
set_literals
static_field_lowering
super_parameters [cfe] Update expectations after change to test suite 2024-05-30 11:25:43 +00:00
triple_shift
unified_collections
unscheduled_experiments
variance
wildcard_variables [cfe] Top level function wildcard parameters are non-binding. 2024-06-18 18:23:55 +00:00
expression.status
incremental.status
incremental_bulk_compiler_full.status
incremental_bulk_compiler_smoke.status
incremental_dartino.status
modular.status [cfe] Remove isNonNullableByDefault from TypeSchemaEnvironment 2024-05-30 12:34:59 +00:00
outline.status [cfe] Update expectations after change to test suite 2024-05-30 11:25:43 +00:00
OWNERS
README.md
sdk.status
strong.status [cfe] Change wildcard tests to not use main(). 2024-06-17 20:22:46 +00:00
textual_outline.status
weak.status

Overview

The testcases in this directory and its subdirectory are all compiled in various different configurations designed to test various aspects of Fasta (or more generally, package:front_end).

The configurations are described below.

The source of truth for these configurations is the file pkg/front_end/testing.json.

Updating all expectations

To update test expectations for all tests at once, run:

dart pkg/front_end/tool/update_expectations.dart

Note that this takes a long time and should only be used when many tests need updating.

Updating expectations for a single test

To update the expectations for a specific test, provide the folder and test name as an argument.

For example, if you want to update the test expectations for a test, such as pkg/front_end/testcases/general/abstract_instantiation.dart, then run:

dart pkg/front_end/tool/update_expectations.dart general/abstract_instantiation

Updating expectations for all tests in a folder

If you want to update the test expectations for a specific folder of tests such as the pkg/front_end/testcases/general/ folder, then run:

dart pkg/front_end/tool/update_expectations.dart general/...

Dart 1.0 Outlines

./pkg/front_end/tool/fasta testing -DupdateExpectations=true outline/test1 outline/test2 ...

Dart 2.0 (strong mode)

./pkg/front_end/tool/fasta testing -DupdateExpectations=true -DupdateComments=true strong/test1 strong/test2 ...

Note: strong mode configuration additionally parses comments in the test file and can precisely match internal details of the compiler such as the inferred type of an expression or if a warning was emitted at a given location.