OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 js_ast; | 5 part of js_ast; |
6 | 6 |
7 final _any = new AnyTypeRef._(); | 7 final _any = new AnyTypeRef._(); |
8 final _unknown = new UnknownTypeRef._(); | 8 final _unknown = new UnknownTypeRef._(); |
9 final _null = new NullTypeRef(); | 9 final _null = new NullTypeRef(); |
10 | 10 |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 accept(NodeVisitor visitor) => visitor.visitFunctionTypeRef(this); | 189 accept(NodeVisitor visitor) => visitor.visitFunctionTypeRef(this); |
190 void visitChildren(NodeVisitor visitor) { | 190 void visitChildren(NodeVisitor visitor) { |
191 returnType.accept(visitor); | 191 returnType.accept(visitor); |
192 paramTypes.forEach((n, t) { | 192 paramTypes.forEach((n, t) { |
193 n.accept(visitor); | 193 n.accept(visitor); |
194 t.accept(visitor); | 194 t.accept(visitor); |
195 }); | 195 }); |
196 } | 196 } |
197 _clone() => new FunctionTypeRef(returnType, paramTypes); | 197 _clone() => new FunctionTypeRef(returnType, paramTypes); |
198 } | 198 } |
OLD | NEW |