OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 MemberSet { | 5 class MemberSet { |
6 final String name; | 6 final String name; |
7 final List<Member> members; | 7 final List<Member> members; |
8 final bool isVar; | 8 final bool isVar; |
9 String jsname; | 9 String jsname; |
10 bool jsnameUnique = false; | |
11 | 10 |
12 bool _treatAsField; | 11 bool _treatAsField; |
13 Type _returnTypeForGet; | 12 Type _returnTypeForGet; |
14 bool _preparedForSet = false; | 13 bool _preparedForSet = false; |
15 List<InvokeKey> _invokes; | 14 List<InvokeKey> _invokes; |
16 | 15 |
17 MemberSet(Member member, [bool isVar=false]): | 16 MemberSet(Member member, [bool isVar=false]): |
18 name = member.name, members = [member], jsname = member.jsname, | 17 name = member.name, members = [member], jsname = member.jsname, |
19 isVar = isVar; | 18 isVar = isVar; |
20 | 19 |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 returnType = world.varType; | 290 returnType = world.varType; |
292 } | 291 } |
293 } | 292 } |
294 } | 293 } |
295 if (returnType == null) { | 294 if (returnType == null) { |
296 // TODO(jimhug): Warning here for no match anywhere in the world? | 295 // TODO(jimhug): Warning here for no match anywhere in the world? |
297 returnType = world.varType; | 296 returnType = world.varType; |
298 } | 297 } |
299 } | 298 } |
300 } | 299 } |
OLD | NEW |