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

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

Issue 1839643003: Fixes for AST summary generation when variables are missing. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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.in_summary_source_test; 5 library analyzer.test.src.summary.in_summary_source_test;
6 6
7 import 'package:analyzer/src/generated/source_io.dart'; 7 import 'package:analyzer/src/generated/source_io.dart';
8 import 'package:analyzer/src/summary/format.dart'; 8 import 'package:analyzer/src/summary/format.dart';
9 import 'package:analyzer/src/summary/idl.dart'; 9 import 'package:analyzer/src/summary/idl.dart';
10 import 'package:analyzer/src/summary/package_bundle_reader.dart'; 10 import 'package:analyzer/src/summary/package_bundle_reader.dart';
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 factory MockSummaryDataStore.fake(Map<String, String> uriToSummary, 64 factory MockSummaryDataStore.fake(Map<String, String> uriToSummary,
65 {Map<String, String> uriToFallbackModePath: const {}}) { 65 {Map<String, String> uriToFallbackModePath: const {}}) {
66 // Create fake unlinked map. 66 // Create fake unlinked map.
67 // We don't populate the values as it is not needed for the test. 67 // We don't populate the values as it is not needed for the test.
68 var unlinkedMap = new Map<String, UnlinkedUnit>.fromIterable( 68 var unlinkedMap = new Map<String, UnlinkedUnit>.fromIterable(
69 uriToSummary.keys, 69 uriToSummary.keys,
70 value: (uri) => new UnlinkedUnitBuilder( 70 value: (uri) => new UnlinkedUnitBuilder(
71 fallbackModePath: uriToFallbackModePath[uri])); 71 fallbackModePath: uriToFallbackModePath[uri]));
72 return new MockSummaryDataStore(null, unlinkedMap, uriToSummary); 72 return new MockSummaryDataStore(null, unlinkedMap, uriToSummary);
73 } 73 }
74
75 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
74 } 76 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/summarize_ast.dart ('k') | pkg/analyzer/test/src/summary/summary_common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698