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

Side by Side Diff: pkg/front_end/testcases/unused_methods.dart.strong.expect

Issue 2981783002: Set 'isSyntheticDefault' for default constructors. (Closed)
Patch Set: Created 3 years, 5 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 unified diff | Download patch
OLDNEW
1 library; 1 library;
2 import self as self; 2 import self as self;
3 import "dart:core" as core; 3 import "dart:core" as core;
4 4
5 abstract class UsedAsBaseClass extends core::Object { 5 abstract class UsedAsBaseClass extends core::Object {
6 constructor •() → void 6 default constructor •() → void
7 : super core::Object::•() 7 : super core::Object::•()
8 ; 8 ;
9 abstract method usedInSubclass() → void; 9 abstract method usedInSubclass() → void;
10 method calledFromB() → void { 10 method calledFromB() → void {
11 this.{self::UsedAsBaseClass::calledFromSubclass}(); 11 this.{self::UsedAsBaseClass::calledFromSubclass}();
12 } 12 }
13 abstract method calledFromSubclass() → void; 13 abstract method calledFromSubclass() → void;
14 } 14 }
15 abstract class UsedAsInterface extends core::Object { 15 abstract class UsedAsInterface extends core::Object {
16 abstract method usedInSubclass() → void; 16 abstract method usedInSubclass() → void;
17 } 17 }
18 class InstantiatedButMethodsUnused extends core::Object { 18 class InstantiatedButMethodsUnused extends core::Object {
19 constructor •() → void 19 default constructor •() → void
20 : super core::Object::•() 20 : super core::Object::•()
21 ; 21 ;
22 method usedInSubclass() → void 22 method usedInSubclass() → void
23 throw "Method removed by tree-shaking"; 23 throw "Method removed by tree-shaking";
24 } 24 }
25 class ClassA extends self::UsedAsBaseClass implements self::UsedAsInterface, sel f::InstantiatedButMethodsUnused { 25 class ClassA extends self::UsedAsBaseClass implements self::UsedAsInterface, sel f::InstantiatedButMethodsUnused {
26 constructor •() → void 26 default constructor •() → void
27 : super self::UsedAsBaseClass::•() 27 : super self::UsedAsBaseClass::•()
28 ; 28 ;
29 method usedInSubclass() → void { 29 method usedInSubclass() → void {
30 core::print("A"); 30 core::print("A");
31 } 31 }
32 } 32 }
33 class ClassB extends self::UsedAsBaseClass implements self::UsedAsInterface, sel f::InstantiatedButMethodsUnused { 33 class ClassB extends self::UsedAsBaseClass implements self::UsedAsInterface, sel f::InstantiatedButMethodsUnused {
34 constructor •() → void 34 default constructor •() → void
35 : super self::UsedAsBaseClass::•() 35 : super self::UsedAsBaseClass::•()
36 ; 36 ;
37 method usedInSubclass() → void { 37 method usedInSubclass() → void {
38 core::print("B"); 38 core::print("B");
39 this.{self::UsedAsBaseClass::calledFromB}(); 39 this.{self::UsedAsBaseClass::calledFromB}();
40 } 40 }
41 method calledFromSubclass() → void {} 41 method calledFromSubclass() → void {}
42 } 42 }
43 static method baseClassCall(self::UsedAsBaseClass object) → void { 43 static method baseClassCall(self::UsedAsBaseClass object) → void {
44 object.{self::UsedAsBaseClass::usedInSubclass}(); 44 object.{self::UsedAsBaseClass::usedInSubclass}();
(...skipping 13 matching lines...) Expand all
58 self::ClassA a = new self::ClassA::•(); 58 self::ClassA a = new self::ClassA::•();
59 self::exactCallA(a); 59 self::exactCallA(a);
60 self::baseClassCall(a); 60 self::baseClassCall(a);
61 self::interfaceCall(a); 61 self::interfaceCall(a);
62 self::ClassB b = new self::ClassB::•(); 62 self::ClassB b = new self::ClassB::•();
63 self::exactCallB(b); 63 self::exactCallB(b);
64 self::baseClassCall(b); 64 self::baseClassCall(b);
65 self::interfaceCall(b); 65 self::interfaceCall(b);
66 new self::InstantiatedButMethodsUnused::•(); 66 new self::InstantiatedButMethodsUnused::•();
67 } 67 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698