| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library test.declarations_model; | 5 library test.declarations_model; |
| 6 | 6 |
| 7 var libraryVariable; | 7 var libraryVariable; |
| 8 get libraryGetter => null; | 8 get libraryGetter => null; |
| 9 set librarySetter(x) => x; | 9 set librarySetter(x) => x; |
| 10 libraryMethod() => null; | 10 libraryMethod() => null; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 static set inheritedStaticSetter(x) => x; | 82 static set inheritedStaticSetter(x) => x; |
| 83 static inheritedStaticMethod() => null; | 83 static inheritedStaticMethod() => null; |
| 84 | 84 |
| 85 static var _inheritedStaticVariable; | 85 static var _inheritedStaticVariable; |
| 86 static get _inheritedStaticGetter => null; | 86 static get _inheritedStaticGetter => null; |
| 87 static set _inheritedStaticSetter(x) => x; | 87 static set _inheritedStaticSetter(x) => x; |
| 88 static _inheritedStaticMethod() => null; | 88 static _inheritedStaticMethod() => null; |
| 89 | 89 |
| 90 Superclass.inheritedGenerativeConstructor(this.inheritedInstanceVariable); | 90 Superclass.inheritedGenerativeConstructor(this.inheritedInstanceVariable); |
| 91 Superclass.inheritedRedirectingConstructor(x) | 91 Superclass.inheritedRedirectingConstructor(x) |
| 92 : this.inheritedGenerativeConstructor(x*2); | 92 : this.inheritedGenerativeConstructor(x * 2); |
| 93 factory Superclass.inheritedNormalFactory(y) | 93 factory Superclass.inheritedNormalFactory(y) => |
| 94 => new Superclass.inheritedRedirectingConstructor(y*3); | 94 new Superclass.inheritedRedirectingConstructor(y * 3); |
| 95 factory Superclass.inheritedRedirectingFactory(z) | 95 factory Superclass.inheritedRedirectingFactory(z) = |
| 96 = Superclass.inheritedNormalFactory; | 96 Superclass.inheritedNormalFactory; |
| 97 | 97 |
| 98 Superclass._inheritedGenerativeConstructor(this._inheritedInstanceVariable); | 98 Superclass._inheritedGenerativeConstructor(this._inheritedInstanceVariable); |
| 99 Superclass._inheritedRedirectingConstructor(x) | 99 Superclass._inheritedRedirectingConstructor(x) |
| 100 : this._inheritedGenerativeConstructor(x*2); | 100 : this._inheritedGenerativeConstructor(x * 2); |
| 101 factory Superclass._inheritedNormalFactory(y) | 101 factory Superclass._inheritedNormalFactory(y) => |
| 102 => new Superclass._inheritedRedirectingConstructor(y*3); | 102 new Superclass._inheritedRedirectingConstructor(y * 3); |
| 103 factory Superclass._inheritedRedirectingFactory(z) | 103 factory Superclass._inheritedRedirectingFactory(z) = |
| 104 = Superclass._inheritedNormalFactory; | 104 Superclass._inheritedNormalFactory; |
| 105 } | 105 } |
| 106 | 106 |
| 107 abstract class Class<C> | 107 abstract class Class<C> extends Superclass<C> |
| 108 extends Superclass<C> with Mixin<C> implements Interface<C> { | 108 with Mixin<C> |
| 109 implements Interface<C> { |
| 109 operator +(x) => null; | 110 operator +(x) => null; |
| 110 | 111 |
| 111 abstractMethod(); | 112 abstractMethod(); |
| 112 | 113 |
| 113 var instanceVariable; | 114 var instanceVariable; |
| 114 get instanceGetter => null; | 115 get instanceGetter => null; |
| 115 set instanceSetter(x) => x; | 116 set instanceSetter(x) => x; |
| 116 instanceMethod() => null; | 117 instanceMethod() => null; |
| 117 | 118 |
| 118 var _instanceVariable; | 119 var _instanceVariable; |
| 119 get _instanceGetter => null; | 120 get _instanceGetter => null; |
| 120 set _instanceSetter(x) => x; | 121 set _instanceSetter(x) => x; |
| 121 _instanceMethod() => null; | 122 _instanceMethod() => null; |
| 122 | 123 |
| 123 static var staticVariable; | 124 static var staticVariable; |
| 124 static get staticGetter => null; | 125 static get staticGetter => null; |
| 125 static set staticSetter(x) => x; | 126 static set staticSetter(x) => x; |
| 126 static staticMethod() => null; | 127 static staticMethod() => null; |
| 127 | 128 |
| 128 static var _staticVariable; | 129 static var _staticVariable; |
| 129 static get _staticGetter => null; | 130 static get _staticGetter => null; |
| 130 static set _staticSetter(x) => x; | 131 static set _staticSetter(x) => x; |
| 131 static _staticMethod() => null; | 132 static _staticMethod() => null; |
| 132 | 133 |
| 133 Class.generativeConstructor(this.instanceVariable) | 134 Class.generativeConstructor(this.instanceVariable) |
| 134 : super.inheritedGenerativeConstructor(0); | 135 : super.inheritedGenerativeConstructor(0); |
| 135 Class.redirectingConstructor(x) | 136 Class.redirectingConstructor(x) : this.generativeConstructor(x * 2); |
| 136 : this.generativeConstructor(x*2); | 137 factory Class.normalFactory(y) => new ConcreteClass(y * 3); |
| 137 factory Class.normalFactory(y) => new ConcreteClass(y*3); | |
| 138 factory Class.redirectingFactory(z) = Class.normalFactory; | 138 factory Class.redirectingFactory(z) = Class.normalFactory; |
| 139 | 139 |
| 140 Class._generativeConstructor(this._instanceVariable) | 140 Class._generativeConstructor(this._instanceVariable) |
| 141 : super._inheritedGenerativeConstructor(0); | 141 : super._inheritedGenerativeConstructor(0); |
| 142 Class._redirectingConstructor(x) : this._generativeConstructor(x*2); | 142 Class._redirectingConstructor(x) : this._generativeConstructor(x * 2); |
| 143 factory Class._normalFactory(y) => new ConcreteClass(y*3); | 143 factory Class._normalFactory(y) => new ConcreteClass(y * 3); |
| 144 factory Class._redirectingFactory(z) = Class._normalFactory; | 144 factory Class._redirectingFactory(z) = Class._normalFactory; |
| 145 } | 145 } |
| 146 | 146 |
| 147 // This is just here as a target of Class's factories to appease the analyzer. | 147 // This is just here as a target of Class's factories to appease the analyzer. |
| 148 class ConcreteClass<CC> extends Class<CC> { | 148 class ConcreteClass<CC> extends Class<CC> { |
| 149 abstractMethod() {} | 149 abstractMethod() {} |
| 150 | 150 |
| 151 operator /(x) => null; | 151 operator /(x) => null; |
| 152 | 152 |
| 153 var interfaceInstanceVariable; | 153 var interfaceInstanceVariable; |
| 154 get interfaceInstanceGetter => null; | 154 get interfaceInstanceGetter => null; |
| 155 set interfaceInstanceSetter(x) => null; | 155 set interfaceInstanceSetter(x) => null; |
| 156 interfaceInstanceMethod() => null; | 156 interfaceInstanceMethod() => null; |
| 157 | 157 |
| 158 var _interfaceInstanceVariable; | 158 var _interfaceInstanceVariable; |
| 159 get _interfaceInstanceGetter => null; | 159 get _interfaceInstanceGetter => null; |
| 160 set _interfaceInstanceSetter(x) => null; | 160 set _interfaceInstanceSetter(x) => null; |
| 161 _interfaceInstanceMethod() => null; | 161 _interfaceInstanceMethod() => null; |
| 162 | 162 |
| 163 ConcreteClass(x) : super.generativeConstructor(x); | 163 ConcreteClass(x) : super.generativeConstructor(x); |
| 164 } | 164 } |
| 165 | 165 |
| 166 class _PrivateClass {} | 166 class _PrivateClass {} |
| OLD | NEW |