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

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

Issue 1952683002: Resolve URIs of parts of imported libraries relative to importing library sources. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « pkg/analyzer/lib/src/summary/resynthesize.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/src/dart/element/element.dart'; 9 import 'package:analyzer/src/dart/element/element.dart';
10 import 'package:analyzer/src/generated/engine.dart' 10 import 'package:analyzer/src/generated/engine.dart'
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 @override 605 @override
606 TestSummaryResynthesizer encodeDecodeLibrarySource(Source source) { 606 TestSummaryResynthesizer encodeDecodeLibrarySource(Source source) {
607 return _encodeLibrary(source); 607 return _encodeLibrary(source);
608 } 608 }
609 609
610 @override 610 @override
611 @failingTest 611 @failingTest
612 void test_inferred_function_type_in_generic_class_constructor() { 612 void test_inferred_function_type_in_generic_class_constructor() {
613 super.test_inferred_function_type_in_generic_class_constructor(); 613 super.test_inferred_function_type_in_generic_class_constructor();
614 } 614 }
615
616 @override
617 @failingTest
618 void test_type_reference_to_import_part_in_subdir() {
619 super.test_type_reference_to_import_part_in_subdir();
620 }
621 } 615 }
622 616
623 /** 617 /**
624 * Abstract mixin for serializing ASTs and resynthesizing elements from it. 618 * Abstract mixin for serializing ASTs and resynthesizing elements from it.
625 */ 619 */
626 abstract class _AstResynthesizeTestMixin { 620 abstract class _AstResynthesizeTestMixin {
627 final Set<Source> serializedSources = new Set<Source>(); 621 final Set<Source> serializedSources = new Set<Source>();
628 final PackageBundleAssembler bundleAssembler = new PackageBundleAssembler(); 622 final PackageBundleAssembler bundleAssembler = new PackageBundleAssembler();
629 final Map<String, UnlinkedUnitBuilder> uriToUnit = 623 final Map<String, UnlinkedUnitBuilder> uriToUnit =
630 <String, UnlinkedUnitBuilder>{}; 624 <String, UnlinkedUnitBuilder>{};
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 } 727 }
734 728
735 UnlinkedUnit definingUnit = _getUnlinkedUnit(librarySource); 729 UnlinkedUnit definingUnit = _getUnlinkedUnit(librarySource);
736 LinkedLibraryBuilder linkedLibrary = 730 LinkedLibraryBuilder linkedLibrary =
737 prelink(definingUnit, getPart, getImport); 731 prelink(definingUnit, getPart, getImport);
738 linkedLibrary.dependencies.skip(1).forEach((LinkedDependency d) { 732 linkedLibrary.dependencies.skip(1).forEach((LinkedDependency d) {
739 _serializeLibrary(resolveRelativeUri(d.uri)); 733 _serializeLibrary(resolveRelativeUri(d.uri));
740 }); 734 });
741 } 735 }
742 } 736 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/resynthesize.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698