dart-sdk/pkg/kernel/test
Jens Johansen 430abc54e8 [CFE] Add toText to Reference and CanonicalName
Add `toText` to both Reference and CanonicalName.
Change how CanonicalNames are printed through `text_util.dart` to be
more aligned with how the corresponding node would be printed had
it existed (and the CanonicalName thus normally not been used for
printing).
Add a test for (some definition of) common cases where printing should
be the same wherther done though the node, the reference or the
canonical name.
Fix usage of toStringInternal in the constant evaluator (though only
in use through an experiment) and add a test that showed that the
previous output was bad and the new isn't (at least in this case).

Change-Id: I10cbc1a542c7d8b079e0510bbd5eb5173b2e7563
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/242102
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2022-04-25 11:13:44 +00:00
..
binary [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
ast_membench.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
ast_membench.sh
binary_bench.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
class_hierarchy_basic.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
class_hierarchy_bench.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
class_hierarchy_membench.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
class_hierarchy_test.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
clone_test.dart [cfe] Handle field/getter/setter in ReferenceName equality 2021-11-30 12:37:55 +00:00
constant_equals_test.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
convert_field_to_setter_getter.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
dart_type_equivalence_test.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
equivalence_test.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
equivalent_dill_test.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
flatten_test.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
future_value_type_test.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
graph_test.dart [dart:ffi] Only operate on transitive dependencies of dart:ffi 2022-01-17 09:43:14 +00:00
heap_test.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
import_table_test.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
indentation_test.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
legacy_erasure_test.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
load_concat_dill_keeps_source_test.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
metadata_test.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
nnbd_top_merge_test.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
non_null_test.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
norm_test.dart [cfe] Re-own TODOs assigned to 'dmitryas' 2022-04-05 09:04:53 +00:00
reference_name_test.dart [cfe] Handle field/getter/setter in ReferenceName equality 2021-11-30 12:37:55 +00:00
relink_test.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
serialize_bench.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
text_serializer_from_kernel_nodes_test.dart [cfe] Remove old method invocation encoding nodes 2021-07-28 15:44:04 +00:00
text_serializer_test.dart [kernel] Add InvalidExpression.expression 2021-08-04 08:40:18 +00:00
text_util_test.dart [CFE] Add toText to Reference and CanonicalName 2022-04-25 11:13:44 +00:00
type_hashcode_quality.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
type_hashcode_test.dart [kernel] Add annotate_overrides lint 2021-09-01 11:45:17 +00:00
type_parser.dart [kernel] Migrate tests 2021-07-27 12:35:37 +00:00
type_parser_test.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
type_substitute_bounds_test.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
type_substitution_identity_test.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
typedef_unalias_test.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
union_find_test.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
verify_bench.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00
verify_test.dart [kernel] Add always_declare_return_types lint 2021-09-01 16:50:27 +00:00