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>
27 lines
759 B
Plaintext
27 lines
759 B
Plaintext
library;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
import "org-dartlang-testcase:///const_patterns.dart" as prefix;
|
|
|
|
class Class extends core::Object /*hasConstConstructor*/ {
|
|
const constructor •([dynamic a = null]) → self::Class
|
|
: super core::Object::•()
|
|
;
|
|
const constructor named() → self::Class
|
|
: super core::Object::•()
|
|
;
|
|
method call() → dynamic
|
|
;
|
|
method test(dynamic o) → dynamic async
|
|
;
|
|
}
|
|
class GenericClass<T extends core::Object? = dynamic> extends core::Object /*hasConstConstructor*/ {
|
|
const constructor •({dynamic a = null}) → self::GenericClass<self::GenericClass::T%>
|
|
: super core::Object::•()
|
|
;
|
|
}
|
|
static const field core::int value = 42;
|
|
static method func() → void
|
|
;
|