OLD | NEW |
1 library test; | 1 library test; |
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 Base<T extends core::Object, U extends core::Object> extends core
::Object { | 5 abstract class Base<T extends core::Object, U extends core::Object> extends core
::Object { |
6 constructor •() → void | 6 constructor •() → void |
7 : super core::Object::•() | 7 : super core::Object::•() |
8 ; | 8 ; |
9 abstract operator [](core::String s) → self::Base::T; | 9 operator [](core::String s) → self::Base::T |
10 abstract operator []=(core::String s, self::Base::U v) → void; | 10 return this.{self::Base::getValue}(s); |
| 11 operator []=(core::String s, self::Base::U v) → void |
| 12 return this.{self::Base::setValue}(s, v); |
| 13 abstract method getValue(core::String s) → self::Base::T; |
| 14 abstract method setValue(core::String s, self::Base::U v) → void; |
11 } | 15 } |
12 abstract class Test1 extends self::Base<core::int, core::int> { | 16 abstract class Test1 extends self::Base<core::int, core::int> { |
13 constructor •() → void | 17 constructor •() → void |
14 : super self::Base::•() | 18 : super self::Base::•() |
15 ; | 19 ; |
16 method test() → void { | 20 method test() → void { |
17 core::int v1 = let final dynamic #t1 = "x" in let final dynamic #t2 = self::
getInt() in let final dynamic #t3 = super.{self::Base::[]=}(#t1, #t2) in #t2; | 21 core::int v1 = let final dynamic #t1 = "x" in let final dynamic #t2 = self::
getInt() in let final dynamic #t3 = super.{self::Base::[]=}(#t1, #t2) in #t2; |
18 core::num v2 = let final dynamic #t4 = "x" in let final dynamic #t5 = self::
getNum() in let final dynamic #t6 = super.{self::Base::[]=}(#t4, #t5) in #t5; | 22 core::num v2 = let final dynamic #t4 = "x" in let final dynamic #t5 = self::
getNum() in let final dynamic #t6 = super.{self::Base::[]=}(#t4, #t5) in #t5; |
19 core::int v4 = let final dynamic #t7 = "x" in let final dynamic #t8 = super.
{self::Base::[]}(#t7) in #t8.{core::num::==}(null) ? let final dynamic #t9 = sel
f::getInt() in let final dynamic #t10 = super.{self::Base::[]=}(#t7, #t9) in #t9
: #t8; | 23 core::int v4 = let final dynamic #t7 = "x" in let final dynamic #t8 = super.
{self::Base::[]}(#t7) in #t8.{core::num::==}(null) ? let final dynamic #t9 = sel
f::getInt() in let final dynamic #t10 = super.{self::Base::[]=}(#t7, #t9) in #t9
: #t8; |
20 core::num v5 = let final dynamic #t11 = "x" in let final dynamic #t12 = supe
r.{self::Base::[]}(#t11) in #t12.{core::num::==}(null) ? let final dynamic #t13
= self::getNum() in let final dynamic #t14 = super.{self::Base::[]=}(#t11, #t13)
in #t13 : #t12; | 24 core::num v5 = let final dynamic #t11 = "x" in let final dynamic #t12 = supe
r.{self::Base::[]}(#t11) in #t12.{core::num::==}(null) ? let final dynamic #t13
= self::getNum() in let final dynamic #t14 = super.{self::Base::[]=}(#t11, #t13)
in #t13 : #t12; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 core::double v11 = let final dynamic #t271 = "x" in let final dynamic #t272
= super.{self::Base::[]}(#t271) in let final dynamic #t273 = super.{self::Base::
[]=}(#t271, #t272.{core::double::+}(1)) in #t272; | 160 core::double v11 = let final dynamic #t271 = "x" in let final dynamic #t272
= super.{self::Base::[]}(#t271) in let final dynamic #t273 = super.{self::Base::
[]=}(#t271, #t272.{core::double::+}(1)) in #t272; |
157 } | 161 } |
158 } | 162 } |
159 static method getInt() → core::int | 163 static method getInt() → core::int |
160 return 0; | 164 return 0; |
161 static method getNum() → core::num | 165 static method getNum() → core::num |
162 return 0; | 166 return 0; |
163 static method getDouble() → core::double | 167 static method getDouble() → core::double |
164 return 0.0; | 168 return 0.0; |
165 static method main() → dynamic {} | 169 static method main() → dynamic {} |
OLD | NEW |