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

Unified Diff: tools/patch_sdk.dart

Issue 2923043004: Use the correct sources for dartium in patched_sdk for vm (Closed)
Patch Set: Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/patch_sdk.dart
diff --git a/tools/patch_sdk.dart b/tools/patch_sdk.dart
index 2feead9f779ea63bdc04ae6720afeaa0545de0ef..64038458e20e667185fccd0c72cc514f3e8ffb32 100644
--- a/tools/patch_sdk.dart
+++ b/tools/patch_sdk.dart
@@ -94,7 +94,7 @@ Future _main(List<String> argv) async {
var libContents = readInputFile(path.join(
sdkLibIn, '_internal', 'sdk_library_metadata', 'lib', 'libraries.dart'));
if (forVm) libContents = _updateLibraryMetadata(sdkOut, libContents);
- var sdkLibraries = _getSdkLibraries(libContents);
+ var sdkLibraries = _getSdkLibraries(libContents, forDart2js);
Map<String, String> locations = <String, String>{};
@@ -624,8 +624,8 @@ class _StringEdit implements Comparable<_StringEdit> {
}
}
-List<SdkLibrary> _getSdkLibraries(String contents) {
- var libraryBuilder = new SdkLibrariesReader_LibraryBuilder(true);
+List<SdkLibrary> _getSdkLibraries(String contents, bool useDart2js) {
+ var libraryBuilder = new SdkLibrariesReader_LibraryBuilder(useDart2js);
parseCompilationUnit(contents).accept(libraryBuilder);
return libraryBuilder.librariesMap.sdkLibraries;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698