| 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 LocalFunctionElement function, | 236 LocalFunctionElement function, |
| 237 Node rhs, | 237 Node rhs, |
| 238 A arg) { | 238 A arg) { |
| 239 return bulkHandleError(node, arg); | 239 return bulkHandleError(node, arg); |
| 240 } | 240 } |
| 241 | 241 |
| 242 @override | 242 @override |
| 243 R errorNonConstantConstructorInvoke( | 243 R errorNonConstantConstructorInvoke( |
| 244 NewExpression node, | 244 NewExpression node, |
| 245 Element element, | 245 Element element, |
| 246 InterfaceType type, | 246 DartType type, |
| 247 NodeList arguments, | 247 NodeList arguments, |
| 248 CallStructure callStructure, | 248 CallStructure callStructure, |
| 249 A arg) { | 249 A arg) { |
| 250 return bulkHandleError(node, arg); | 250 return bulkHandleError(node, arg); |
| 251 } | 251 } |
| 252 | 252 |
| 253 @override | 253 @override |
| 254 R errorStaticFunctionSet( | 254 R errorStaticFunctionSet( |
| 255 Send node, | 255 Send node, |
| 256 MethodElement function, | 256 MethodElement function, |
| (...skipping 4718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4975 CallStructure callStructure, | 4975 CallStructure callStructure, |
| 4976 A arg) { | 4976 A arg) { |
| 4977 apply(arguments, arg); | 4977 apply(arguments, arg); |
| 4978 return null; | 4978 return null; |
| 4979 } | 4979 } |
| 4980 | 4980 |
| 4981 @override | 4981 @override |
| 4982 R errorNonConstantConstructorInvoke( | 4982 R errorNonConstantConstructorInvoke( |
| 4983 NewExpression node, | 4983 NewExpression node, |
| 4984 Element element, | 4984 Element element, |
| 4985 InterfaceType type, | 4985 DartType type, |
| 4986 NodeList arguments, | 4986 NodeList arguments, |
| 4987 CallStructure callStructure, | 4987 CallStructure callStructure, |
| 4988 A arg) { | 4988 A arg) { |
| 4989 apply(arguments, arg); | 4989 apply(arguments, arg); |
| 4990 return null; | 4990 return null; |
| 4991 } | 4991 } |
| 4992 } | 4992 } |
| 4993 | 4993 |
| 4994 /// [SemanticDeclarationVisitor] that visits subnodes. | 4994 /// [SemanticDeclarationVisitor] that visits subnodes. |
| 4995 class TraversalDeclarationMixin<R, A> | 4995 class TraversalDeclarationMixin<R, A> |
| (...skipping 1795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6791 NewExpression node, | 6791 NewExpression node, |
| 6792 ConstructorElement constructor, | 6792 ConstructorElement constructor, |
| 6793 InterfaceType type, | 6793 InterfaceType type, |
| 6794 NodeList arguments, | 6794 NodeList arguments, |
| 6795 CallStructure callStructure, | 6795 CallStructure callStructure, |
| 6796 A arg) { | 6796 A arg) { |
| 6797 return handleConstructorInvoke( | 6797 return handleConstructorInvoke( |
| 6798 node, constructor, type, arguments, callStructure, arg); | 6798 node, constructor, type, arguments, callStructure, arg); |
| 6799 } | 6799 } |
| 6800 } | 6800 } |
| OLD | NEW |