| 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 library dart2js.typechecker; | 5 library dart2js.typechecker; |
| 6 | 6 |
| 7 import 'common.dart'; | 7 import 'common.dart'; |
| 8 import 'common/names.dart' show | 8 import 'common/names.dart' show |
| 9 Identifiers; | 9 Identifiers; |
| 10 import 'common/resolution.dart' show | 10 import 'common/resolution.dart' show |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 if (element.isField) { | 68 if (element.isField) { |
| 69 visitor.analyzingInitializer = true; | 69 visitor.analyzingInitializer = true; |
| 70 } | 70 } |
| 71 resolvedAst.node.accept(visitor); | 71 resolvedAst.node.accept(visitor); |
| 72 }); | 72 }); |
| 73 }); | 73 }); |
| 74 } | 74 } |
| 75 } | 75 } |
| 76 | 76 |
| 77 /** | 77 /** |
| 78 * Class used to report different warnings for differrent kinds of members. | 78 * Class used to report different warnings for different kinds of members. |
| 79 */ | 79 */ |
| 80 class MemberKind { | 80 class MemberKind { |
| 81 static const MemberKind METHOD = const MemberKind("method"); | 81 static const MemberKind METHOD = const MemberKind("method"); |
| 82 static const MemberKind OPERATOR = const MemberKind("operator"); | 82 static const MemberKind OPERATOR = const MemberKind("operator"); |
| 83 static const MemberKind GETTER = const MemberKind("getter"); | 83 static const MemberKind GETTER = const MemberKind("getter"); |
| 84 static const MemberKind SETTER = const MemberKind("setter"); | 84 static const MemberKind SETTER = const MemberKind("setter"); |
| 85 | 85 |
| 86 final String name; | 86 final String name; |
| 87 | 87 |
| 88 const MemberKind(this.name); | 88 const MemberKind(this.name); |
| (...skipping 1910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1999 | 1999 |
| 2000 visitTypedef(Typedef node) { | 2000 visitTypedef(Typedef node) { |
| 2001 // Do not typecheck [Typedef] nodes. | 2001 // Do not typecheck [Typedef] nodes. |
| 2002 } | 2002 } |
| 2003 | 2003 |
| 2004 visitNode(Node node) { | 2004 visitNode(Node node) { |
| 2005 reporter.internalError(node, | 2005 reporter.internalError(node, |
| 2006 'Unexpected node ${node.getObjectDescription()} in the type checker.'); | 2006 'Unexpected node ${node.getObjectDescription()} in the type checker.'); |
| 2007 } | 2007 } |
| 2008 } | 2008 } |
| OLD | NEW |