Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: pkg/analyzer/test/src/summary/resynthesize_ast_test.dart

Issue 2647833002: fix #28008, fix #28009 implement FutureOr<T> (Closed)
Patch Set: Merge remote-tracking branch 'origin/master' into 28008_futureort Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 library analyzer.test.src.summary.resynthesize_ast_test; 5 library analyzer.test.src.summary.resynthesize_ast_test;
6 6
7 import 'package:analyzer/dart/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
8 import 'package:analyzer/dart/element/element.dart'; 8 import 'package:analyzer/dart/element/element.dart';
9 import 'package:analyzer/error/error.dart'; 9 import 'package:analyzer/error/error.dart';
10 import 'package:analyzer/src/dart/element/element.dart'; 10 import 'package:analyzer/src/dart/element/element.dart';
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 super.test_unsafeBlockClosureInference_methodCall_implicitTypeParam(); 688 super.test_unsafeBlockClosureInference_methodCall_implicitTypeParam();
689 } 689 }
690 690
691 @override 691 @override
692 @failingTest 692 @failingTest
693 void test_unsafeBlockClosureInference_methodCall_implicitTypeParam_comment() { 693 void test_unsafeBlockClosureInference_methodCall_implicitTypeParam_comment() {
694 super 694 super
695 .test_unsafeBlockClosureInference_methodCall_implicitTypeParam_comment() ; 695 .test_unsafeBlockClosureInference_methodCall_implicitTypeParam_comment() ;
696 } 696 }
697 697
698 @override
698 LibraryElementImpl _checkSource( 699 LibraryElementImpl _checkSource(
699 SummaryResynthesizer resynthesizer, Source source) { 700 SummaryResynthesizer resynthesizer, Source source) {
700 LibraryElementImpl resynthesized = 701 LibraryElementImpl resynthesized =
701 resynthesizer.getLibraryElement(source.uri.toString()); 702 resynthesizer.getLibraryElement(source.uri.toString());
702 LibraryElementImpl original = context.computeLibraryElement(source); 703 LibraryElementImpl original = context.computeLibraryElement(source);
703 checkLibraryElements(original, resynthesized); 704 checkLibraryElements(original, resynthesized);
704 return resynthesized; 705 return resynthesized;
705 } 706 }
706 } 707 }
707 708
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
935 } 936 }
936 937
937 @override 938 @override
938 DartSdk createDartSdk() => AbstractContextTest.SHARED_MOCK_SDK; 939 DartSdk createDartSdk() => AbstractContextTest.SHARED_MOCK_SDK;
939 940
940 @override 941 @override
941 TestSummaryResynthesizer encodeDecodeLibrarySource(Source source) { 942 TestSummaryResynthesizer encodeDecodeLibrarySource(Source source) {
942 return _encodeLibrary(source); 943 return _encodeLibrary(source);
943 } 944 }
944 } 945 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/src/dart/element/element_test.dart ('k') | pkg/analyzer/test/src/summary/resynthesize_common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698