| 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 part of dart2js.semantics_visitor; | 5 part of dart2js.semantics_visitor; |
| 6 | 6 |
| 7 /// Interface for bulk handling of a [Node] in a semantic visitor. | 7 /// Interface for bulk handling of a [Node] in a semantic visitor. |
| 8 abstract class BulkHandle<R, A> { | 8 abstract class BulkHandle<R, A> { |
| 9 /// Handle [node] either regardless of semantics or to report that [node] is | 9 /// Handle [node] either regardless of semantics or to report that [node] is |
| 10 /// unhandled. [message] contains a message template for the latter case: | 10 /// unhandled. [message] contains a message template for the latter case: |
| (...skipping 7682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7693 @override | 7693 @override |
| 7694 internalError(Spannable spannable, String message) { | 7694 internalError(Spannable spannable, String message) { |
| 7695 throw new SpannableAssertionFailure(spannable, message); | 7695 throw new SpannableAssertionFailure(spannable, message); |
| 7696 } | 7696 } |
| 7697 | 7697 |
| 7698 @override | 7698 @override |
| 7699 R visitNode(Node node) { | 7699 R visitNode(Node node) { |
| 7700 node.visitChildren(this); | 7700 node.visitChildren(this); |
| 7701 return null; | 7701 return null; |
| 7702 } | 7702 } |
| 7703 |
| 7704 @override |
| 7705 R visitTypeAnnotation(TypeAnnotation node) { |
| 7706 // Skip [Send] contained in type annotations, like `prefix.Type`. |
| 7707 return null; |
| 7708 } |
| 7703 } | 7709 } |
| 7704 | 7710 |
| 7705 /// Mixin that groups all non-compound `visitStaticX` and `visitTopLevelX` | 7711 /// Mixin that groups all non-compound `visitStaticX` and `visitTopLevelX` |
| 7706 /// method by delegating calls to `handleStaticX` methods. | 7712 /// method by delegating calls to `handleStaticX` methods. |
| 7707 /// | 7713 /// |
| 7708 /// This mixin is useful for the cases where both top level members and static | 7714 /// This mixin is useful for the cases where both top level members and static |
| 7709 /// class members are handled uniformly. | 7715 /// class members are handled uniformly. |
| 7710 abstract class BaseImplementationOfStaticsMixin<R, A> | 7716 abstract class BaseImplementationOfStaticsMixin<R, A> |
| 7711 implements SemanticSendVisitor<R, A> { | 7717 implements SemanticSendVisitor<R, A> { |
| 7712 R handleStaticFieldGet( | 7718 R handleStaticFieldGet( |
| (...skipping 4662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12375 NewExpression node, | 12381 NewExpression node, |
| 12376 ConstructorElement constructor, | 12382 ConstructorElement constructor, |
| 12377 InterfaceType type, | 12383 InterfaceType type, |
| 12378 NodeList arguments, | 12384 NodeList arguments, |
| 12379 CallStructure callStructure, | 12385 CallStructure callStructure, |
| 12380 A arg) { | 12386 A arg) { |
| 12381 return handleConstructorInvoke( | 12387 return handleConstructorInvoke( |
| 12382 node, constructor, type, arguments, callStructure, arg); | 12388 node, constructor, type, arguments, callStructure, arg); |
| 12383 } | 12389 } |
| 12384 } | 12390 } |
| OLD | NEW |