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

Unified Diff: pkg/dev_compiler/tool/input_sdk/patch/mirrors_patch.dart

Issue 2698353003: unfork DDC's copy of most SDK libraries (Closed)
Patch Set: revert core_patch 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 side-by-side diff with in-line comments
Download patch
Index: pkg/dev_compiler/tool/input_sdk/patch/mirrors_patch.dart
diff --git a/pkg/dev_compiler/tool/input_sdk/patch/mirrors_patch.dart b/pkg/dev_compiler/tool/input_sdk/patch/mirrors_patch.dart
index 758b1647a6b7893e56999662b6539089c7431597..eb6319c591d9f7d977ba472d608697c325b30708 100644
--- a/pkg/dev_compiler/tool/input_sdk/patch/mirrors_patch.dart
+++ b/pkg/dev_compiler/tool/input_sdk/patch/mirrors_patch.dart
@@ -10,6 +10,12 @@ import 'dart:_js_mirrors' as js;
@patch
class MirrorSystem {
@patch
+ LibraryMirror findLibrary(Symbol libraryName) {
+ return libraries.values.singleWhere(
+ (library) => library.simpleName == libraryName);
+ }
+
+ @patch
static String getName(Symbol symbol) => js.getName(symbol);
@patch

Powered by Google App Engine
This is Rietveld 408576698