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

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

Issue 2615903003: Fix for resynthesizing libraries with invalid part URIs. (Closed)
Patch Set: Un-fail other tests. Created 3 years, 11 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/test/src/summary/resynthesize_ast_test.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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 test.src.serialization.elements_test; 5 library test.src.serialization.elements_test;
6 6
7 import 'package:analyzer/dart/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
8 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; 8 import 'package:analyzer/dart/ast/standard_resolution_map.dart';
9 import 'package:analyzer/dart/constant/value.dart'; 9 import 'package:analyzer/dart/constant/value.dart';
10 import 'package:analyzer/dart/element/element.dart'; 10 import 'package:analyzer/dart/element/element.dart';
(...skipping 4291 matching lines...) Expand 10 before | Expand all | Expand 10 after
4302 void named({x: 1}) {} 4302 void named({x: 1}) {}
4303 '''); 4303 ''');
4304 } 4304 }
4305 4305
4306 test_parts() { 4306 test_parts() {
4307 addSource('/a.dart', 'part of my.lib;'); 4307 addSource('/a.dart', 'part of my.lib;');
4308 addSource('/b.dart', 'part of my.lib;'); 4308 addSource('/b.dart', 'part of my.lib;');
4309 checkLibrary('library my.lib; part "a.dart"; part "b.dart";'); 4309 checkLibrary('library my.lib; part "a.dart"; part "b.dart";');
4310 } 4310 }
4311 4311
4312 test_parts_invalidUri() {
4313 allowMissingFiles = true;
4314 addSource('/foo/bar.dart', 'part of my.lib;');
4315 checkLibrary('library my.lib; part "foo/";');
4316 }
4317
4312 test_propagated_type_refers_to_closure() { 4318 test_propagated_type_refers_to_closure() {
4313 checkLibrary(''' 4319 checkLibrary('''
4314 void f() { 4320 void f() {
4315 var x = () => 0; 4321 var x = () => 0;
4316 var y = x; 4322 var y = x;
4317 } 4323 }
4318 '''); 4324 ''');
4319 } 4325 }
4320 4326
4321 test_setter_documented() { 4327 test_setter_documented() {
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
4840 fail('Unexpectedly tried to get unlinked summary for $uri'); 4846 fail('Unexpectedly tried to get unlinked summary for $uri');
4841 } 4847 }
4842 return serializedUnit; 4848 return serializedUnit;
4843 } 4849 }
4844 4850
4845 @override 4851 @override
4846 bool hasLibrarySummary(String uri) { 4852 bool hasLibrarySummary(String uri) {
4847 return true; 4853 return true;
4848 } 4854 }
4849 } 4855 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/src/summary/resynthesize_ast_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698