Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Unified Diff: pkg/fasta/test/classes.dart.direct.expect

Issue 2631613003: Add Fasta tests. (Closed)
Patch Set: Address review comments. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/fasta/test/classes.dart ('k') | pkg/fasta/test/classes.dart.outline.expect » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/fasta/test/classes.dart.direct.expect
diff --git a/pkg/fasta/test/classes.dart.direct.expect b/pkg/fasta/test/classes.dart.direct.expect
new file mode 100644
index 0000000000000000000000000000000000000000..db0cfb89f5dd979c89a86b040b34dcd8fce81e7d
--- /dev/null
+++ b/pkg/fasta/test/classes.dart.direct.expect
@@ -0,0 +1,31 @@
+library;
+import self as self;
+import "dart:core" as core;
+
+class A extends core::Object {
+ final field core::int x;
+ final field core::int y;
+ constructor •(dynamic y) → void
+ : self::A::y = y, self::A::x = 42, super core::Object::•()
+ ;
+ method method() → dynamic {
+ core::print("A.method x: ${this.x} y: ${this.y}");
+ core::print(this);
+ core::print(this.runtimeType);
+ }
+}
+class B extends self::A {
+ constructor •(dynamic x) → void
+ : super self::A::•(x)
+ ;
+ method method() → dynamic {
+ core::print("B.method x: ${this.x} y: ${this.y}");
+ this.{=self::A::method}();
+ }
+}
+static method main() → dynamic {
+ self::A a = new self::A::•(87);
+ self::B b = new self::B::•(117);
+ a.method();
+ b.method();
+}
« no previous file with comments | « pkg/fasta/test/classes.dart ('k') | pkg/fasta/test/classes.dart.outline.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698