mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
430abc54e8
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> |
||
---|---|---|
.. | ||
binary | ||
ast_membench.dart | ||
ast_membench.sh | ||
binary_bench.dart | ||
class_hierarchy_basic.dart | ||
class_hierarchy_bench.dart | ||
class_hierarchy_membench.dart | ||
class_hierarchy_test.dart | ||
clone_test.dart | ||
constant_equals_test.dart | ||
convert_field_to_setter_getter.dart | ||
dart_type_equivalence_test.dart | ||
equivalence_test.dart | ||
equivalent_dill_test.dart | ||
flatten_test.dart | ||
future_value_type_test.dart | ||
graph_test.dart | ||
heap_test.dart | ||
import_table_test.dart | ||
indentation_test.dart | ||
legacy_erasure_test.dart | ||
load_concat_dill_keeps_source_test.dart | ||
metadata_test.dart | ||
nnbd_top_merge_test.dart | ||
non_null_test.dart | ||
norm_test.dart | ||
reference_name_test.dart | ||
relink_test.dart | ||
serialize_bench.dart | ||
text_serializer_from_kernel_nodes_test.dart | ||
text_serializer_test.dart | ||
text_util_test.dart | ||
type_hashcode_quality.dart | ||
type_hashcode_test.dart | ||
type_parser.dart | ||
type_parser_test.dart | ||
type_substitute_bounds_test.dart | ||
type_substitution_identity_test.dart | ||
typedef_unalias_test.dart | ||
union_find_test.dart | ||
verify_bench.dart | ||
verify_test.dart |