Files
sdk/pkg/front_end/testcases/incremental/initializer_implicit_null.yaml.world.2.expect
T
Johnni Winther 85991680ac [cfe] Include (super)-initializing-formal modifier in ast-to-text
This adds the initializer-formal and super-initializer-formal modifiers to the ast-to-text output.

These flags are used by backends, so we should expect when these are present.

Triggered by discussion on https://github.com/dart-lang/sdk/issues/62645

TEST=existing

Change-Id: I3eec128c912249bc907931bcf01b52c0ec1eda62
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/494080
Reviewed-by: Jens Johansen <jensj@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2026-04-09 06:22:54 -07:00

26 lines
678 B
Plaintext

main = <No Member>;
library from "org-dartlang-test:///lib.dart" as lib {
class A extends dart.core::Object {
final field dart.core::int? a;
constructor •([initializing-formal dart.core::int? a = #C1]) → lib::A
: lib::A::a = a, super dart.core::Object::•()
;
}
}
library from "org-dartlang-test:///main.dart" as main {
import "org-dartlang-test:///lib.dart";
abstract class B extends dart.core::Object /*isMixinDeclaration*/ {
}
class C extends lib::A implements main::B /*isEliminatedMixin*/ {
synthetic constructor •([dart.core::int? a = #C1]) → main::C
: super lib::A::•(a)
;
}
}
constants {
#C1 = null
}