OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 types; | |
6 | |
7 class CancelTypeInferenceException { | 5 class CancelTypeInferenceException { |
8 final Node node; | 6 final Node node; |
9 final String reason; | 7 final String reason; |
10 | 8 |
11 CancelTypeInferenceException(this.node, this.reason); | 9 CancelTypeInferenceException(this.node, this.reason); |
12 } | 10 } |
13 | 11 |
14 /** | 12 /** |
15 * A singleton concrete type. More precisely, a [BaseType] is one of the | 13 * A singleton concrete type. More precisely, a [BaseType] is one of the |
16 * following: | 14 * following: |
(...skipping 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1247 Element element = elements[node]; | 1245 Element element = elements[node]; |
1248 inferrer.addCaller(element, currentMethod); | 1246 inferrer.addCaller(element, currentMethod); |
1249 return inferrer.getSendReturnType(element, null, | 1247 return inferrer.getSendReturnType(element, null, |
1250 analyzeArguments(node.arguments)); | 1248 analyzeArguments(node.arguments)); |
1251 } | 1249 } |
1252 | 1250 |
1253 void internalError(String reason, {Node node}) { | 1251 void internalError(String reason, {Node node}) { |
1254 inferrer.fail(node, reason); | 1252 inferrer.fail(node, reason); |
1255 } | 1253 } |
1256 } | 1254 } |
OLD | NEW |