36641368bb
This changes ast-to-text to mark legacy libraries instead of non-nullable-by-default libraries. TEST=existing Change-Id: Ib01147e4ef48c2c5b2ffc6b23547998344dfdf2e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/307121 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com>
36 lines
850 B
Plaintext
36 lines
850 B
Plaintext
library;
|
|
//
|
|
// Problems in library:
|
|
//
|
|
// pkg/front_end/testcases/patterns/empty_map_pattern.dart:6:7: Error: A map pattern must have at least one entry.
|
|
// Try replacing it with an object pattern 'Map()'.
|
|
// {} => 0,
|
|
// ^
|
|
//
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
static method method(core::Map<dynamic, dynamic> m) → dynamic
|
|
return block {
|
|
core::int #t1;
|
|
final synthesized core::Map<dynamic, dynamic> #0#0 = m;
|
|
#L1:
|
|
{
|
|
{
|
|
if(invalid-expression "pkg/front_end/testcases/patterns/empty_map_pattern.dart:6:7: Error: A map pattern must have at least one entry.
|
|
Try replacing it with an object pattern 'Map()'.
|
|
{} => 0,
|
|
^") {
|
|
#t1 = 0;
|
|
break #L1;
|
|
}
|
|
}
|
|
{
|
|
if(true) {
|
|
#t1 = 1;
|
|
break #L1;
|
|
}
|
|
}
|
|
}
|
|
} =>#t1;
|