| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 class Type extends Element { | 5 class Type extends Element { |
| 6 bool isTested; | 6 bool isTested = false; |
| 7 bool isChecked = false; |
| 7 | 8 |
| 8 /** | 9 /** |
| 9 * For core types (int, String, etc) this is the generated type assertion | 10 * For core types (int, String, etc) this is the generated type assertion |
| 10 * function (uses JS "typeof"). This field is null for all other types. | 11 * function (uses JS "typeof"). This field is null for all other types. |
| 11 */ | 12 */ |
| 12 String typeCheckCode; | 13 String typeCheckCode; |
| 13 | 14 |
| 14 Member _typeMember; | 15 Member _typeMember; |
| 15 | 16 |
| 16 /** Stubs used to call into this method dynamically. Lazy initialized. */ | 17 /** Stubs used to call into this method dynamically. */ |
| 17 Map<String, VarMember> varStubs; | 18 Map<String, VarMember> varStubs; |
| 18 | 19 |
| 19 /** Cache of [MemberSet]s that have been resolved. */ | 20 /** Cache of [MemberSet]s that have been resolved. */ |
| 20 Map<String, MemberSet> _resolvedMembers; | 21 Map<String, MemberSet> _resolvedMembers; |
| 21 | 22 |
| 22 Type(String name): isTested = false, _resolvedMembers = {}, super(name, null); | 23 Type(String name): _resolvedMembers = {}, varStubs = {}, super(name, null); |
| 23 | 24 |
| 24 void markUsed() {} | 25 void markUsed() {} |
| 25 abstract void genMethod(Member method); | 26 abstract void genMethod(Member method); |
| 26 | 27 |
| 27 TypeMember get typeMember() { | 28 TypeMember get typeMember() { |
| 28 if (_typeMember == null) { | 29 if (_typeMember == null) { |
| 29 _typeMember = new TypeMember(this); | 30 _typeMember = new TypeMember(this); |
| 30 } | 31 } |
| 31 return _typeMember; | 32 return _typeMember; |
| 32 } | 33 } |
| (...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 } | 725 } |
| 725 | 726 |
| 726 void setDefinition(Definition def) { | 727 void setDefinition(Definition def) { |
| 727 assert(definition == null); | 728 assert(definition == null); |
| 728 definition = def; | 729 definition = def; |
| 729 if (definition is TypeDefinition && definition.nativeType != null) { | 730 if (definition is TypeDefinition && definition.nativeType != null) { |
| 730 isNative = true; | 731 isNative = true; |
| 731 } | 732 } |
| 732 if (definition != null && definition.typeParameters != null) { | 733 if (definition != null && definition.typeParameters != null) { |
| 733 _concreteTypes = {}; | 734 _concreteTypes = {}; |
error: old chunk mismatch |
None
| OLD | NEW |