| 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 analyzer.test.generated.resolver_test; | 5 library analyzer.test.generated.resolver_test; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analyzer/dart/element/element.dart'; | 9 import 'package:analyzer/dart/element/element.dart'; |
| 10 import 'package:analyzer/dart/element/type.dart'; | 10 import 'package:analyzer/dart/element/type.dart'; |
| (...skipping 13003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13014 check("f2", _isListOf(_isInt)); | 13014 check("f2", _isListOf(_isInt)); |
| 13015 check("f3", _isListOf(_isListOf(_isInt))); | 13015 check("f3", _isListOf(_isListOf(_isInt))); |
| 13016 } | 13016 } |
| 13017 } | 13017 } |
| 13018 | 13018 |
| 13019 /** | 13019 /** |
| 13020 * Strong mode static analyzer end to end tests | 13020 * Strong mode static analyzer end to end tests |
| 13021 */ | 13021 */ |
| 13022 @reflectiveTest | 13022 @reflectiveTest |
| 13023 class StrongModeStaticTypeAnalyzer2Test extends _StaticTypeAnalyzer2TestShared { | 13023 class StrongModeStaticTypeAnalyzer2Test extends _StaticTypeAnalyzer2TestShared { |
| 13024 void fail_genericMethod_functionExpressionInvocation_explicit() { | 13024 void test_genericMethod_functionExpressionInvocation_explicit() { |
| 13025 _resolveTestUnit(r''' | 13025 _resolveTestUnit(r''' |
| 13026 class C<E> { | 13026 class C<E> { |
| 13027 /*=T*/ f/*<T>*/(/*=T*/ e) => null; | 13027 /*=T*/ f/*<T>*/(/*=T*/ e) => null; |
| 13028 static /*=T*/ g/*<T>*/(/*=T*/ e) => null; | 13028 static /*=T*/ g/*<T>*/(/*=T*/ e) => null; |
| 13029 static final h = g; | 13029 static final h = g; |
| 13030 } | 13030 } |
| 13031 | 13031 |
| 13032 /*=T*/ topF/*<T>*/(/*=T*/ e) => null; | 13032 /*=T*/ topF/*<T>*/(/*=T*/ e) => null; |
| 13033 var topG = topF; | 13033 var topG = topF; |
| 13034 void test/*<S>*/(/*=T*/ pf/*<T>*/(/*=T*/ e)) { | 13034 void test/*<S>*/(/*=T*/ pf/*<T>*/(/*=T*/ e)) { |
| (...skipping 3563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16598 | 16598 |
| 16599 void _resolveTestUnit(String code) { | 16599 void _resolveTestUnit(String code) { |
| 16600 testCode = code; | 16600 testCode = code; |
| 16601 testSource = addSource(testCode); | 16601 testSource = addSource(testCode); |
| 16602 LibraryElement library = resolve2(testSource); | 16602 LibraryElement library = resolve2(testSource); |
| 16603 assertNoErrors(testSource); | 16603 assertNoErrors(testSource); |
| 16604 verify([testSource]); | 16604 verify([testSource]); |
| 16605 testUnit = resolveCompilationUnit(testSource, library); | 16605 testUnit = resolveCompilationUnit(testSource, library); |
| 16606 } | 16606 } |
| 16607 } | 16607 } |
| OLD | NEW |