| 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_test; | 5 part of dart2js.semantics_visitor_test; |
| 6 | 6 |
| 7 class SemanticDeclarationTestVisitor extends SemanticTestVisitor { | 7 class SemanticDeclarationTestVisitor extends SemanticTestVisitor { |
| 8 SemanticDeclarationTestVisitor(TreeElements elements) : super(elements); | 8 SemanticDeclarationTestVisitor(TreeElements elements) : super(elements); |
| 9 | 9 |
| 10 @override | 10 @override |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 element: function, parameters: parameters, body: body)); | 84 element: function, parameters: parameters, body: body)); |
| 85 applyParameters(parameters, arg); | 85 applyParameters(parameters, arg); |
| 86 apply(body, arg); | 86 apply(body, arg); |
| 87 } | 87 } |
| 88 | 88 |
| 89 @override | 89 @override |
| 90 visitRedirectingFactoryConstructorDeclaration( | 90 visitRedirectingFactoryConstructorDeclaration( |
| 91 FunctionExpression node, | 91 FunctionExpression node, |
| 92 ConstructorElement constructor, | 92 ConstructorElement constructor, |
| 93 NodeList parameters, | 93 NodeList parameters, |
| 94 InterfaceType redirectionType, | 94 ResolutionInterfaceType redirectionType, |
| 95 ConstructorElement redirectionTarget, | 95 ConstructorElement redirectionTarget, |
| 96 arg) { | 96 arg) { |
| 97 visits.add(new Visit(VisitKind.VISIT_REDIRECTING_FACTORY_CONSTRUCTOR_DECL, | 97 visits.add(new Visit(VisitKind.VISIT_REDIRECTING_FACTORY_CONSTRUCTOR_DECL, |
| 98 element: constructor, | 98 element: constructor, |
| 99 parameters: parameters, | 99 parameters: parameters, |
| 100 target: redirectionTarget, | 100 target: redirectionTarget, |
| 101 type: redirectionType)); | 101 type: redirectionType)); |
| 102 applyParameters(parameters, arg); | 102 applyParameters(parameters, arg); |
| 103 } | 103 } |
| 104 | 104 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 124 visits.add(new Visit(VisitKind.VISIT_STATIC_FUNCTION_DECL, | 124 visits.add(new Visit(VisitKind.VISIT_STATIC_FUNCTION_DECL, |
| 125 element: function, parameters: parameters, body: body)); | 125 element: function, parameters: parameters, body: body)); |
| 126 applyParameters(parameters, arg); | 126 applyParameters(parameters, arg); |
| 127 apply(body, arg); | 127 apply(body, arg); |
| 128 } | 128 } |
| 129 | 129 |
| 130 @override | 130 @override |
| 131 visitSuperConstructorInvoke( | 131 visitSuperConstructorInvoke( |
| 132 Send node, | 132 Send node, |
| 133 ConstructorElement superConstructor, | 133 ConstructorElement superConstructor, |
| 134 InterfaceType type, | 134 ResolutionInterfaceType type, |
| 135 NodeList arguments, | 135 NodeList arguments, |
| 136 CallStructure callStructure, | 136 CallStructure callStructure, |
| 137 arg) { | 137 arg) { |
| 138 visits.add(new Visit(VisitKind.VISIT_SUPER_CONSTRUCTOR_INVOKE, | 138 visits.add(new Visit(VisitKind.VISIT_SUPER_CONSTRUCTOR_INVOKE, |
| 139 element: superConstructor, | 139 element: superConstructor, |
| 140 type: type, | 140 type: type, |
| 141 arguments: arguments, | 141 arguments: arguments, |
| 142 selector: callStructure)); | 142 selector: callStructure)); |
| 143 super.visitSuperConstructorInvoke( | 143 super.visitSuperConstructorInvoke( |
| 144 node, superConstructor, type, arguments, callStructure, arg); | 144 node, superConstructor, type, arguments, callStructure, arg); |
| 145 } | 145 } |
| 146 | 146 |
| 147 @override | 147 @override |
| 148 visitImplicitSuperConstructorInvoke(FunctionExpression node, | 148 visitImplicitSuperConstructorInvoke(FunctionExpression node, |
| 149 ConstructorElement superConstructor, InterfaceType type, arg) { | 149 ConstructorElement superConstructor, ResolutionInterfaceType type, arg) { |
| 150 visits.add(new Visit(VisitKind.VISIT_IMPLICIT_SUPER_CONSTRUCTOR_INVOKE, | 150 visits.add(new Visit(VisitKind.VISIT_IMPLICIT_SUPER_CONSTRUCTOR_INVOKE, |
| 151 element: superConstructor, type: type)); | 151 element: superConstructor, type: type)); |
| 152 super | 152 super |
| 153 .visitImplicitSuperConstructorInvoke(node, superConstructor, type, arg); | 153 .visitImplicitSuperConstructorInvoke(node, superConstructor, type, arg); |
| 154 } | 154 } |
| 155 | 155 |
| 156 @override | 156 @override |
| 157 visitThisConstructorInvoke(Send node, ConstructorElement thisConstructor, | 157 visitThisConstructorInvoke(Send node, ConstructorElement thisConstructor, |
| 158 NodeList arguments, CallStructure callStructure, arg) { | 158 NodeList arguments, CallStructure callStructure, arg) { |
| 159 visits.add(new Visit(VisitKind.VISIT_THIS_CONSTRUCTOR_INVOKE, | 159 visits.add(new Visit(VisitKind.VISIT_THIS_CONSTRUCTOR_INVOKE, |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 | 361 |
| 362 @override | 362 @override |
| 363 visitStaticSetterDeclaration(FunctionExpression node, MethodElement setter, | 363 visitStaticSetterDeclaration(FunctionExpression node, MethodElement setter, |
| 364 NodeList parameters, Node body, arg) { | 364 NodeList parameters, Node body, arg) { |
| 365 visits.add(new Visit(VisitKind.VISIT_STATIC_SETTER_DECL, | 365 visits.add(new Visit(VisitKind.VISIT_STATIC_SETTER_DECL, |
| 366 element: setter, parameters: parameters, body: body)); | 366 element: setter, parameters: parameters, body: body)); |
| 367 applyParameters(parameters, arg); | 367 applyParameters(parameters, arg); |
| 368 apply(body, arg); | 368 apply(body, arg); |
| 369 } | 369 } |
| 370 } | 370 } |
| OLD | NEW |