| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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.semantics_visitor; | 5 library dart2js.semantics_visitor; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../constants/expressions.dart'; | 8 import '../constants/expressions.dart'; |
| 9 import '../elements/elements.dart'; | 9 import '../elements/elements.dart'; |
| 10 import '../elements/names.dart'; | 10 import '../elements/names.dart'; |
| (...skipping 3948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3959 /// Invocation of a constructor on an unresolved [type] with [arguments]. | 3959 /// Invocation of a constructor on an unresolved [type] with [arguments]. |
| 3960 /// | 3960 /// |
| 3961 /// For instance: | 3961 /// For instance: |
| 3962 /// | 3962 /// |
| 3963 /// m() => new Unresolved(true, 42); | 3963 /// m() => new Unresolved(true, 42); |
| 3964 /// | 3964 /// |
| 3965 /// where [type] is the malformed type `Unresolved`. | 3965 /// where [type] is the malformed type `Unresolved`. |
| 3966 /// | 3966 /// |
| 3967 // TODO(johnniwinther): Change [type] to [MalformedType] when is it not | 3967 // TODO(johnniwinther): Change [type] to [MalformedType] when is it not |
| 3968 // `dynamic`. | 3968 // `dynamic`. |
| 3969 R visitUnresolvedClassConstructorInvoke(NewExpression node, Element element, | 3969 R visitUnresolvedClassConstructorInvoke( |
| 3970 ResolutionDartType type, NodeList arguments, Selector selector, A arg); | 3970 NewExpression node, |
| 3971 ErroneousElement element, |
| 3972 ResolutionDartType type, |
| 3973 NodeList arguments, |
| 3974 Selector selector, |
| 3975 A arg); |
| 3971 | 3976 |
| 3972 /// Constant invocation of a non-constant constructor. | 3977 /// Constant invocation of a non-constant constructor. |
| 3973 /// | 3978 /// |
| 3974 /// For instance: | 3979 /// For instance: |
| 3975 /// | 3980 /// |
| 3976 /// class C { | 3981 /// class C { |
| 3977 /// C(a, b); | 3982 /// C(a, b); |
| 3978 /// } | 3983 /// } |
| 3979 /// m() => const C(true, 42); | 3984 /// m() => const C(true, 42); |
| 3980 /// | 3985 /// |
| (...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4712 /// | 4717 /// |
| 4713 /// For instance `this._(42)` in: | 4718 /// For instance `this._(42)` in: |
| 4714 /// | 4719 /// |
| 4715 /// class C { | 4720 /// class C { |
| 4716 /// C() : this._(42); | 4721 /// C() : this._(42); |
| 4717 /// } | 4722 /// } |
| 4718 /// | 4723 /// |
| 4719 R errorUnresolvedThisConstructorInvoke( | 4724 R errorUnresolvedThisConstructorInvoke( |
| 4720 Send node, Element element, NodeList arguments, Selector selector, A arg); | 4725 Send node, Element element, NodeList arguments, Selector selector, A arg); |
| 4721 } | 4726 } |
| OLD | NEW |