| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library engine.resolver_test; | 5 library engine.resolver_test; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analyzer/src/generated/ast.dart'; | 9 import 'package:analyzer/src/generated/ast.dart'; |
| 10 import 'package:analyzer/src/generated/element.dart'; | 10 import 'package:analyzer/src/generated/element.dart'; |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 proxyClassElement, | 133 proxyClassElement, |
| 134 provider.stackTraceType.element, | 134 provider.stackTraceType.element, |
| 135 provider.stringType.element, | 135 provider.stringType.element, |
| 136 provider.symbolType.element, | 136 provider.symbolType.element, |
| 137 provider.typeType.element]; | 137 provider.typeType.element]; |
| 138 coreUnit.functions = <FunctionElement>[ | 138 coreUnit.functions = <FunctionElement>[ |
| 139 ElementFactory.functionElement3( | 139 ElementFactory.functionElement3( |
| 140 "identical", | 140 "identical", |
| 141 provider.boolType.element, | 141 provider.boolType.element, |
| 142 <ClassElement>[provider.objectType.element, provider.objectType.elem
ent], | 142 <ClassElement>[provider.objectType.element, provider.objectType.elem
ent], |
| 143 null), |
| 144 ElementFactory.functionElement3( |
| 145 "print", |
| 146 VoidTypeImpl.instance.element, |
| 147 <ClassElement>[provider.objectType.element], |
| 143 null)]; | 148 null)]; |
| 144 TopLevelVariableElement proxyTopLevelVariableElt = | 149 TopLevelVariableElement proxyTopLevelVariableElt = |
| 145 ElementFactory.topLevelVariableElement3( | 150 ElementFactory.topLevelVariableElement3( |
| 146 "proxy", | 151 "proxy", |
| 147 true, | 152 true, |
| 148 false, | 153 false, |
| 149 proxyClassElement.type); | 154 proxyClassElement.type); |
| 150 TopLevelVariableElement deprecatedTopLevelVariableElt = | 155 TopLevelVariableElement deprecatedTopLevelVariableElt = |
| 151 ElementFactory.topLevelVariableElement3( | 156 ElementFactory.topLevelVariableElement3( |
| 152 "deprecated", | 157 "deprecated", |
| (...skipping 13322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13475 // check propagated type | 13480 // check propagated type |
| 13476 FunctionType propagatedType = node.propagatedType as FunctionType; | 13481 FunctionType propagatedType = node.propagatedType as FunctionType; |
| 13477 expect(propagatedType.returnType, test.typeProvider.stringType); | 13482 expect(propagatedType.returnType, test.typeProvider.stringType); |
| 13478 } on AnalysisException catch (e, stackTrace) { | 13483 } on AnalysisException catch (e, stackTrace) { |
| 13479 thrownException[0] = new CaughtException(e, stackTrace); | 13484 thrownException[0] = new CaughtException(e, stackTrace); |
| 13480 } | 13485 } |
| 13481 } | 13486 } |
| 13482 return null; | 13487 return null; |
| 13483 } | 13488 } |
| 13484 } | 13489 } |
| OLD | NEW |